diff options
| author | Alexander Potapenko <glider@google.com> | 2024-01-10 16:17:08 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-01-29 09:09:17 +0000 |
| commit | 991a98f41ea59aba246c9165c8d9539d780a2544 (patch) | |
| tree | c10a0763b334f6b0beb52b6a663785768f2e96d7 /executor/android | |
| parent | e9cba3e0b8c082d74feee5139584c29866f4df60 (diff) | |
pkg/cover: ensure that all PCs returned by kcov have matching callbacks
In the case some modules' addresses are off, certain kernel addresses
returned by kcov may not have corresponding coverage callbacks in the
.ko files. Keep an additional map in the backend to verify those
addresses and report an error if that is the case.
Because GCC < 14 may tail-call coverage callbacks, the described check
is not performed for binaries which mention GCC in their .comment
section.
Also adjust text expectations in pkg/cover/report_test.go, so that
non-GCC targets check for PCs matching the callbacks.
See https://github.com/google/syzkaller/issues/4447 for more details.
Diffstat (limited to 'executor/android')
0 files changed, 0 insertions, 0 deletions
