diff options
| author | Alexander Potapenko <glider@google.com> | 2024-04-03 12:20:00 +0200 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2024-04-04 08:55:07 +0000 |
| commit | 0ee3535ea8ff21d50e44372bb1cfd147e299ab5b (patch) | |
| tree | cc3584d9b5ec5ce2f0b5da7b33cbe20ea3d33c57 /pkg/csource/generated.go | |
| parent | 51c4dcff83b0574620c280cc5130ef59cc4a2e32 (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 'pkg/csource/generated.go')
0 files changed, 0 insertions, 0 deletions
