mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
2ef3cec44c
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 |