|
@@ -158,7 +158,8 @@ static void scf_torture_stats_print(void)
|
|
|
scfs.n_all_wait += scf_stats_p[i].n_all_wait;
|
|
|
}
|
|
|
if (atomic_read(&n_errs) || atomic_read(&n_mb_in_errs) ||
|
|
|
- atomic_read(&n_mb_out_errs) || atomic_read(&n_alloc_errs))
|
|
|
+ atomic_read(&n_mb_out_errs) ||
|
|
|
+ (!IS_ENABLED(CONFIG_KASAN) && atomic_read(&n_alloc_errs)))
|
|
|
bangstr = "!!! ";
|
|
|
pr_alert("%s %sscf_invoked_count %s: %lld single: %lld/%lld single_ofl: %lld/%lld many: %lld/%lld all: %lld/%lld ",
|
|
|
SCFTORT_FLAG, bangstr, isdone ? "VER" : "ver", invoked_count,
|
|
@@ -306,7 +307,8 @@ static void scftorture_invoke_one(struct scf_statistics *scfp, struct torture_ra
|
|
|
preempt_disable();
|
|
|
if (scfsp->scfs_prim == SCF_PRIM_SINGLE || scfsp->scfs_wait) {
|
|
|
scfcp = kmalloc(sizeof(*scfcp), GFP_ATOMIC);
|
|
|
- if (WARN_ON_ONCE(!scfcp)) {
|
|
|
+ if (!scfcp) {
|
|
|
+ WARN_ON_ONCE(!IS_ENABLED(CONFIG_KASAN));
|
|
|
atomic_inc(&n_alloc_errs);
|
|
|
} else {
|
|
|
scfcp->scfc_cpu = -1;
|