scftorture: Forgive memory-allocation failure if KASAN
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 16 May 2023 02:00:10 +0000 (19:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Sep 2023 09:11:00 +0000 (11:11 +0200)
commit9f10b4eb1b218223e0e7c8b013ac7d9f621e890c
tree7dafd9a373942b9e540a5181b9086b6bf0384e31
parent83ed0cdb6ae0383dd14b02375c353773836884ed
scftorture: Forgive memory-allocation failure if KASAN

[ Upstream commit 013608cd0812bdb21fc26d39ed8fdd2fc76e8b9b ]

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: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/scftorture.c