]> Git Repo - linux.git/commit
kasan: add atomic tests
authorPaul Heidekrüger <[email protected]>
Fri, 2 Feb 2024 11:32:59 +0000 (11:32 +0000)
committerAndrew Morton <[email protected]>
Thu, 22 Feb 2024 18:24:53 +0000 (10:24 -0800)
commit4e76c8cc3378a20923965e3345f40f6b8ae0bdba
tree566d18b5db2d11c0a9a094a4a4fca8c6541d50b4
parent09dacb7875395b8761cde921fff767a7cd3ab862
kasan: add atomic tests

Test that KASan can detect some unsafe atomic accesses.

As discussed in the linked thread below, these tests attempt to cover
the most common uses of atomics and, therefore, aren't exhaustive.

Link: https://lkml.kernel.org/r/[email protected]
Link: https://lore.kernel.org/all/[email protected]/T/#u
Signed-off-by: Paul Heidekrüger <[email protected]>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=214055
Acked-by: Mark Rutland <[email protected]>
Cc: Marco Elver <[email protected]>
Cc: Andrey Konovalov <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Vincenzo Frascino <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
mm/kasan/kasan_test.c
This page took 0.052501 seconds and 4 git commands to generate.