diff options
author | Andrey Konovalov <andreyknvl@google.com> | 2019-02-20 22:20:28 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-02-21 09:01:00 -0800 |
commit | 51dedad06b5f6c3eea7ec1069631b1ef7796912a (patch) | |
tree | f98818f9d27bb7bcc606d6a610291d12fdeda720 /block/blk-exec.c | |
parent | 219667c23c68eb3dbc0d5662b9246f28477fe529 (diff) | |
download | linux-stable-51dedad06b5f6c3eea7ec1069631b1ef7796912a.tar.gz linux-stable-51dedad06b5f6c3eea7ec1069631b1ef7796912a.tar.bz2 linux-stable-51dedad06b5f6c3eea7ec1069631b1ef7796912a.zip |
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 <andreyknvl@google.com>
Tested-by: Qian Cai <cai@lca.pw>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Evgeniy Stepanov <eugenis@google.com>
Cc: Kostya Serebryany <kcc@google.com>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'block/blk-exec.c')
0 files changed, 0 insertions, 0 deletions