scftorture: Forgive memory-allocation failure if KASAN
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 16 May 2023 02:00:10 +0000 (19:00 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 14 Jul 2023 22:02:57 +0000 (15:02 -0700)
commit013608cd0812bdb21fc26d39ed8fdd2fc76e8b9b
tree77cf8b722c830d4f49927df07e031683a3e78048
parent822e42509997cfc8582ab1108eef1a280524b26a
scftorture: Forgive memory-allocation failure if KASAN

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>
kernel/scftorture.c