]> Git Repo - linux.git/commit
kasan, slab: fix conflicts with CONFIG_HARDENED_USERCOPY
authorAndrey Konovalov <[email protected]>
Thu, 21 Feb 2019 06:20:25 +0000 (22:20 -0800)
committerLinus Torvalds <[email protected]>
Thu, 21 Feb 2019 17:01:00 +0000 (09:01 -0800)
commit219667c23c68eb3dbc0d5662b9246f28477fe529
tree39638812a6fd9da34c00cc7465c81035ec09af31
parentdc15a8a2543cb9ebe67998eefe2880ce1a20d42e
kasan, slab: fix conflicts with CONFIG_HARDENED_USERCOPY

Similarly to commit 96fedce27e13 ("kasan: make tag based mode work with
CONFIG_HARDENED_USERCOPY"), we need to reset pointer tags in
__check_heap_object() in mm/slab.c before doing any pointer math.

Link: http://lkml.kernel.org/r/9a5c0f958db10e69df5ff9f2b997866b56b7effc.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.042289 seconds and 4 git commands to generate.