aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_kvm_amd64.h
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2024-04-03 12:20:00 +0200
committerAlexander Potapenko <glider@google.com>2024-04-04 08:55:07 +0000
commit0ee3535ea8ff21d50e44372bb1cfd147e299ab5b (patch)
treecc3584d9b5ec5ce2f0b5da7b33cbe20ea3d33c57 /executor/common_kvm_amd64.h
parent51c4dcff83b0574620c280cc5130ef59cc4a2e32 (diff)
executor: add guard pages around the kcov mapping
Because the executor may place other mappings next to the buffer used by kcov, occasional out-of-bound writes to them may corrupt the coverage, creating garbage PCs (see https://github.com/google/syzkaller/issues/4531). To prevent those, map two extra pages for the kcov buffer, and protect them, so that OOB writes cause a segfault. Fixes https://github.com/google/syzkaller/issues/4532
Diffstat (limited to 'executor/common_kvm_amd64.h')
0 files changed, 0 insertions, 0 deletions