Skip to content

Commit ffcc5ce

Browse files
xairytorvalds
authored andcommitted
kasan: don't duplicate config dependencies
Both KASAN_GENERIC and KASAN_SW_TAGS have common dependencies, move those to KASAN. Link: https://lkml.kernel.org/r/c1cc0d562608a318c607afe22db5ec2a7af72e47.1606161801.git.andreyknvl@google.com Signed-off-by: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Reviewed-by: Marco Elver <elver@google.com> Reviewed-by: Alexander Potapenko <glider@google.com> Tested-by: Vincenzo Frascino <vincenzo.frascino@arm.com> Cc: Andrey Ryabinin <aryabinin@virtuozzo.com> Cc: Branislav Rankov <Branislav.Rankov@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Evgenii Stepanov <eugenis@google.com> Cc: Kevin Brodsky <kevin.brodsky@arm.com> Cc: Vasily Gorbik <gor@linux.ibm.com> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 59fd51b commit ffcc5ce

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎lib/Kconfig.kasan‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ menuconfig KASAN
2424
(HAVE_ARCH_KASAN_SW_TAGS && CC_HAS_KASAN_SW_TAGS)
2525
depends on (SLUB && SYSFS) || (SLAB && !DEBUG_SLAB)
2626
depends on CC_HAS_WORKING_NOSANITIZE_ADDRESS
27+
select CONSTRUCTORS
28+
select STACKDEPOT
2729
help
2830
Enables KASAN (KernelAddressSANitizer) - runtime memory debugger,
2931
designed to find out-of-bounds accesses and use-after-free bugs.
@@ -46,10 +48,7 @@ choice
4648
config KASAN_GENERIC
4749
bool "Generic mode"
4850
depends on HAVE_ARCH_KASAN && CC_HAS_KASAN_GENERIC
49-
depends on (SLUB && SYSFS) || (SLAB && !DEBUG_SLAB)
5051
select SLUB_DEBUG if SLUB
51-
select CONSTRUCTORS
52-
select STACKDEPOT
5352
help
5453
Enables generic KASAN mode.
5554

@@ -70,10 +69,7 @@ config KASAN_GENERIC
7069
config KASAN_SW_TAGS
7170
bool "Software tag-based mode"
7271
depends on HAVE_ARCH_KASAN_SW_TAGS && CC_HAS_KASAN_SW_TAGS
73-
depends on (SLUB && SYSFS) || (SLAB && !DEBUG_SLAB)
7472
select SLUB_DEBUG if SLUB
75-
select CONSTRUCTORS
76-
select STACKDEPOT
7773
help
7874
Enables software tag-based KASAN mode.
7975

0 commit comments

Comments
 (0)