summaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorKees Cook2019-07-17 01:27:24 +0200
committerLinus Torvalds2019-07-17 04:23:22 +0200
commit8e060c21ae2c265a2b596e9e7f9f97ec274151a4 (patch)
tree89311e5adf37740675f8d07edc2a61e496b4c553 /lib/Kconfig.debug
parentlib/test_string.c: add some testcases for strchr and strnchr (diff)
downloadkernel-qcow2-linux-8e060c21ae2c265a2b596e9e7f9f97ec274151a4.tar.gz
kernel-qcow2-linux-8e060c21ae2c265a2b596e9e7f9f97ec274151a4.tar.xz
kernel-qcow2-linux-8e060c21ae2c265a2b596e9e7f9f97ec274151a4.zip
lib/test_overflow.c: avoid tainting the kernel and fix wrap size
This adds __GFP_NOWARN to the kmalloc()-portions of the overflow test to avoid tainting the kernel. Additionally fixes up the math on wrap size to be architecture and page size agnostic. Link: http://lkml.kernel.org/r/201905282012.0A8767E24@keescook Fixes: ca90800a91ba ("test_overflow: Add memory allocation overflow tests") Signed-off-by: Kees Cook <keescook@chromium.org> Reported-by: Randy Dunlap <rdunlap@infradead.org> Suggested-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions