]> Git Repo - linux.git/commit
kasan: don't round_up too much
authorAndrey Konovalov <[email protected]>
Tue, 22 Dec 2020 20:03:17 +0000 (12:03 -0800)
committerLinus Torvalds <[email protected]>
Tue, 22 Dec 2020 20:55:09 +0000 (12:55 -0800)
commitd99f6a10c161227ae7a698470b1cff7b33734d4a
treea4e42069430240334d27167b8b7e6f00a2ec1736
parenteeb3160c2419e0f1045537acac7b19cba64112f4
kasan: don't round_up too much

For hardware tag-based mode kasan_poison_memory() already rounds up the
size. Do the same for software modes and remove round_up() from the common
code.

Link: https://lkml.kernel.org/r/47b232474f1f89dc072aeda0fa58daa6efade377.1606162397.git.andreyknvl@google.com
Link: https://linux-review.googlesource.com/id/Ib397128fac6eba874008662b4964d65352db4aa4
Signed-off-by: Andrey Konovalov <[email protected]>
Reviewed-by: Dmitry Vyukov <[email protected]>
Reviewed-by: Marco Elver <[email protected]>
Tested-by: Vincenzo Frascino <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Branislav Rankov <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Evgenii Stepanov <[email protected]>
Cc: Kevin Brodsky <[email protected]>
Cc: Vasily Gorbik <[email protected]>
Cc: Will Deacon <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/kasan/common.c
mm/kasan/shadow.c
This page took 0.052087 seconds and 4 git commands to generate.