]> Git Repo - linux.git/commit
kasan: initialize shadow to 0xff for tag-based mode
authorAndrey Konovalov <[email protected]>
Fri, 28 Dec 2018 08:30:09 +0000 (00:30 -0800)
committerLinus Torvalds <[email protected]>
Fri, 28 Dec 2018 20:11:43 +0000 (12:11 -0800)
commit080eb83f54cf5b96ae5b6ce3c1896e35c341aff9
tree5104bee028d891c8072b6606b0515c78413af896
parent9577dd7486487722ed8f0773243223f108e8089f
kasan: initialize shadow to 0xff for tag-based mode

A tag-based KASAN shadow memory cell contains a memory tag, that
corresponds to the tag in the top byte of the pointer, that points to that
memory.  The native top byte value of kernel pointers is 0xff, so with
tag-based KASAN we need to initialize shadow memory to 0xff.

[[email protected]: arm64: skip kmemleak for KASAN again\
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/5cc1b789aad7c99cf4f3ec5b328b147ad53edb40.1544099024.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <[email protected]>
Reviewed-by: Andrey Ryabinin <[email protected]>
Reviewed-by: Dmitry Vyukov <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/arm64/mm/kasan_init.c
include/linux/kasan.h
mm/kasan/common.c
This page took 0.055407 seconds and 4 git commands to generate.