[PATCH v3 0/4] scftorture: Avoid kfree from IRQ context.
From: Sebastian Andrzej Siewior
Date: Fri Nov 08 2024 - 05:42:37 EST
Hi,
Paul reported kfree from IRQ context in scftorture which is noticed by
lockdep since the recent PROVE_RAW_LOCK_NESTING switch.
The last patch in this series adresses the issues, the other things
happened on the way.
v2…v3:
- The clean up on module exit must not be done with thread numbers.
Reported by Boqun Feng.
- Move the clean up on module exit prior to torture_cleanup_end().
Reported by Paul.
v1…v2:
- Remove kfree_bulk(). I get more invocations per report without it.
- Pass `cpu' to scf_cleanup_free_list in scftorture_invoker() instead
of scfp->cpu. The latter is the thread number which can be larger
than the number CPUs leading to a crash in such a case. Reported by
Boqun Feng.
- Clean up the per-CPU lists on module exit. Reported by Boqun Feng.
Sebastian