summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@gmail.com>2021-09-03 00:57:53 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2021-09-03 19:58:15 +0300
commitf16de0bcdb55bf18e2533ca625f3e4b4952f254c (patch)
tree154d330c2fc2ccec05d47e93b90c14e4b334b610 /.clang-format
parent756e5a47a5ddf0caa3708f922385a92af9d330b5 (diff)
downloadlinux-f16de0bcdb55bf18e2533ca625f3e4b4952f254c.tar.xz
kasan: test: avoid corrupting memory in kasan_rcu_uaf
kasan_rcu_uaf() writes to freed memory via kasan_rcu_reclaim(), which is only safe with the GENERIC mode (as it uses quarantine). For other modes, this test corrupts kernel memory, which might result in a crash. Turn the write into a read. Link: https://lkml.kernel.org/r/b6f2c3bf712d2457c783fa59498225b66a634f62.1628779805.git.andreyknvl@gmail.com Signed-off-by: Andrey Konovalov <andreyknvl@gmail.com> Reviewed-by: Marco Elver <elver@google.com> Cc: Alexander Potapenko <glider@google.com> Cc: Andrey Ryabinin <aryabinin@virtuozzo.com> Cc: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions