kasan: make kasan_cache_create() work with 32-bit slab cache sizes
authorAlexey Dobriyan <[email protected]>
Thu, 5 Apr 2018 23:21:28 +0000 (16:21 -0700)
committerLinus Torvalds <[email protected]>
Fri, 6 Apr 2018 04:36:24 +0000 (21:36 -0700)
commitbe4a7988b35db9e6f95dca818d5e94785840fb58
treed6e19b6f6472fa8ccb6359bf04ea3f729d83c90c
parent0293d1fdd677a09b816df0c7bfe8f60d1b9b956f
kasan: make kasan_cache_create() work with 32-bit slab cache sizes

If SLAB doesn't support 4GB+ kmem caches (it never did), KASAN should
not do it as well.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Alexey Dobriyan <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/kasan.h
mm/kasan/kasan.c
mm/slab.c
mm/slub.c