mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-14 13:55:56 +00:00
As noticed by Brian, KMSAN should not be zeroing the origin when
unpoisoning parts of a four-byte uninitialized value, e.g.:
char a[4];
kmsan_unpoison_memory(a, 1);
This led to false negatives, as certain poisoned values could receive zero
origins, preventing those values from being reported.
To fix the problem, check that kmsan_internal_set_shadow_origin() writes
zero origins only to slots which have zero shadow.
Link: https://lkml.kernel.org/r/20240528104807.738758-1-glider@google.com
Fixes:
|
||
|---|---|---|
| .. | ||
| core.c | ||
| hooks.c | ||
| init.c | ||
| instrumentation.c | ||
| kmsan_test.c | ||
| kmsan.h | ||
| Makefile | ||
| report.c | ||
| shadow.c | ||