Skip to content
Commit f69bbc0b authored by Rohan McLure's avatar Rohan McLure Committed by Greg Kroah-Hartman
Browse files

powerpc/kcsan: Exclude udelay to prevent recursive instrumentation



[ Upstream commit 2a7ce82d ]

In order for KCSAN to increase its likelihood of observing a data race,
it sets a watchpoint on memory accesses and stalls, allowing for
detection of conflicting accesses by other kernel threads or interrupts.

Stalls are implemented by injecting a call to udelay in instrumented code.
To prevent recursive instrumentation, exclude udelay from being instrumented.

Signed-off-by: default avatarRohan McLure <rmclure@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230206021801.105268-3-rmclure@linux.ibm.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 07a5f4e6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment