diff options
author | Andrey Konovalov <andreyknvl@google.com> | 2023-11-20 18:47:16 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-12-10 16:51:47 -0800 |
commit | f3b5979862994089005d48ad2ce5b6a9735981fe (patch) | |
tree | b3dc5cb43239a07d609dff16c60951f4b71ff853 /lib/stackdepot.c | |
parent | 108be8def46e9422f5a5abc96b0ab8fb6b3fb344 (diff) | |
download | linux-f3b5979862994089005d48ad2ce5b6a9735981fe.tar.gz linux-f3b5979862994089005d48ad2ce5b6a9735981fe.tar.bz2 linux-f3b5979862994089005d48ad2ce5b6a9735981fe.zip |
kasan: remove atomic accesses to stack ring entries
Remove the atomic accesses to entry fields in save_stack_info and
kasan_complete_mode_report_info for tag-based KASAN modes.
These atomics are not required, as the read/write lock prevents the
entries from being read (in kasan_complete_mode_report_info) while being
written (in save_stack_info) and the try_cmpxchg prevents the same entry
from being rewritten (in save_stack_info) in the unlikely case of wrapping
during writing.
Link: https://lkml.kernel.org/r/29f59126d9845c5257b6c29cd7ad113b16f19f47.1700502145.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Evgenii Stepanov <eugenis@google.com>
Cc: Marco Elver <elver@google.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/stackdepot.c')
0 files changed, 0 insertions, 0 deletions