.. | .. |
---|
158 | 158 | scfs.n_all_wait += scf_stats_p[i].n_all_wait; |
---|
159 | 159 | } |
---|
160 | 160 | 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))) |
---|
162 | 163 | bangstr = "!!! "; |
---|
163 | 164 | pr_alert("%s %sscf_invoked_count %s: %lld single: %lld/%lld single_ofl: %lld/%lld many: %lld/%lld all: %lld/%lld ", |
---|
164 | 165 | SCFTORT_FLAG, bangstr, isdone ? "VER" : "ver", invoked_count, |
---|
.. | .. |
---|
306 | 307 | preempt_disable(); |
---|
307 | 308 | if (scfsp->scfs_prim == SCF_PRIM_SINGLE || scfsp->scfs_wait) { |
---|
308 | 309 | scfcp = kmalloc(sizeof(*scfcp), GFP_ATOMIC); |
---|
309 | | - if (WARN_ON_ONCE(!scfcp)) { |
---|
| 310 | + if (!scfcp) { |
---|
| 311 | + WARN_ON_ONCE(!IS_ENABLED(CONFIG_KASAN)); |
---|
310 | 312 | atomic_inc(&n_alloc_errs); |
---|
311 | 313 | } else { |
---|
312 | 314 | scfcp->scfc_cpu = -1; |
---|