hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/kernel/scftorture.c
....@@ -158,7 +158,8 @@
158158 scfs.n_all_wait += scf_stats_p[i].n_all_wait;
159159 }
160160 if (atomic_read(&n_errs) || atomic_read(&n_mb_in_errs) ||
161
- atomic_read(&n_mb_out_errs) || atomic_read(&n_alloc_errs))
161
+ atomic_read(&n_mb_out_errs) ||
162
+ (!IS_ENABLED(CONFIG_KASAN) && atomic_read(&n_alloc_errs)))
162163 bangstr = "!!! ";
163164 pr_alert("%s %sscf_invoked_count %s: %lld single: %lld/%lld single_ofl: %lld/%lld many: %lld/%lld all: %lld/%lld ",
164165 SCFTORT_FLAG, bangstr, isdone ? "VER" : "ver", invoked_count,
....@@ -306,7 +307,8 @@
306307 preempt_disable();
307308 if (scfsp->scfs_prim == SCF_PRIM_SINGLE || scfsp->scfs_wait) {
308309 scfcp = kmalloc(sizeof(*scfcp), GFP_ATOMIC);
309
- if (WARN_ON_ONCE(!scfcp)) {
310
+ if (!scfcp) {
311
+ WARN_ON_ONCE(!IS_ENABLED(CONFIG_KASAN));
310312 atomic_inc(&n_alloc_errs);
311313 } else {
312314 scfcp->scfc_cpu = -1;