aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorPaul E. McKenney <[email protected]>2022-06-16 09:30:37 -0700
committerPaul E. McKenney <[email protected]>2022-07-05 13:33:00 -0700
commit1dcaa3b462265f688613163a1562a65ee53a3311 (patch)
tree7c3e1ed3c67debadeec5e45110fb9d7380d1f321 /scripts/gdb/linux/utils.py
parent08ab707dfc83d6ab7829c1c0f39b0d4530fa42a8 (diff)
context_tracking: Use arch_atomic_read() in __ct_state for KASAN
Context tracking's __ct_state() function can be invoked from noinstr state where RCU is not watching. This means that its use of atomic_read() causes KASAN to invoke the non-noinstr __kasan_check_read() function from the noinstr function __ct_state(). This is problematic because someone tracing the __kasan_check_read() function could get a nasty surprise because of RCU not watching. This commit therefore replaces the __ct_state() function's use of atomic_read() with arch_atomic_read(), which KASAN does not attempt to add instrumention to. Reported-by: kernel test robot <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Marco Elver <[email protected]> Reviewed-by: Marco Elver <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions