]> git.baikalelectronics.ru Git - kernel.git/commit
kasan: add tag related helper functions
authorAndrey Konovalov <andreyknvl@google.com>
Fri, 28 Dec 2018 08:30:16 +0000 (00:30 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 28 Dec 2018 20:11:43 +0000 (12:11 -0800)
commit3d20f8607ca2c696ba3c8a7f15ab51d59b728f34
tree6d4b0baeb13a2f51dc3b5dd2019b0133b0456ca2
parent43924f2a1044f17b2b231902ab39c2ed8c4628d5
kasan: add tag related helper functions

This commit adds a few helper functions, that are meant to be used to work
with tags embedded in the top byte of kernel pointers: to set, to get or
to reset the top byte.

Link: http://lkml.kernel.org/r/f6c6437bb8e143bc44f42c3c259c62e734be7935.1544099024.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm64/include/asm/kasan.h
arch/arm64/include/asm/memory.h
arch/arm64/mm/kasan_init.c
include/linux/kasan.h
mm/kasan/kasan.h
mm/kasan/tags.c