Commit 6d2c2181 authored by Paul E. McKenney's avatar Paul E. McKenney Committed by sanglipeng
Browse files

scftorture: Forgive memory-allocation failure if KASAN

stable inclusion
from stable-v5.10.197
commit 3f72fdb20f6d1103ded73b1594ad9c26a6026a24
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I96Q8P

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3f72fdb20f6d1103ded73b1594ad9c26a6026a24



--------------------------------

[ Upstream commit 013608cd ]

Kernels built with CONFIG_KASAN=y quarantine newly freed memory in order
to better detect use-after-free errors.  However, this can exhaust memory
more quickly in allocator-heavy tests, which can result in spurious
scftorture failure.  This commit therefore forgives memory-allocation
failure in kernels built with CONFIG_KASAN=y, but continues counting
the errors for use in detailed test-result analyses.

Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 702676dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment