]> Git Repo - linux.git/commit
kasan, slab: make freelist stored without tags
authorAndrey Konovalov <[email protected]>
Thu, 21 Feb 2019 06:20:28 +0000 (22:20 -0800)
committerLinus Torvalds <[email protected]>
Thu, 21 Feb 2019 17:01:00 +0000 (09:01 -0800)
commit51dedad06b5f6c3eea7ec1069631b1ef7796912a
treef98818f9d27bb7bcc606d6a610291d12fdeda720
parent219667c23c68eb3dbc0d5662b9246f28477fe529
kasan, slab: make freelist stored without tags

Similarly to "kasan, slub: move kasan_poison_slab hook before
page_address", move kasan_poison_slab() before alloc_slabmgmt(), which
calls page_address(), to make page_address() return value to be
non-tagged.  This, combined with calling kasan_reset_tag() for off-slab
slab management object, leads to freelist being stored non-tagged.

Link: http://lkml.kernel.org/r/dfb53b44a4d00de3879a05a9f04c1f55e584f7a1.1550602886.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <[email protected]>
Tested-by: Qian Cai <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Evgeniy Stepanov <[email protected]>
Cc: Kostya Serebryany <[email protected]>
Cc: Vincenzo Frascino <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/slab.c
This page took 0.049742 seconds and 4 git commands to generate.