linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] scftorture: Avoid kfree from IRQ context.
@ 2024-11-08 10:39 Sebastian Andrzej Siewior
  2024-11-08 10:39 ` [PATCH v3 1/4] scftorture: Avoid additional div operation Sebastian Andrzej Siewior
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Sebastian Andrzej Siewior @ 2024-11-08 10:39 UTC (permalink / raw)
  To: kasan-dev, linux-kernel, linux-mm
  Cc: Paul E. McKenney, Boqun Feng, Marco Elver, Peter Zijlstra,
	Tomas Gleixner, Vlastimil Babka, akpm, cl, iamjoonsoo.kim,
	longman, penberg, rientjes, sfr

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



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-11-08 19:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-08 10:39 [PATCH v3 0/4] scftorture: Avoid kfree from IRQ context Sebastian Andrzej Siewior
2024-11-08 10:39 ` [PATCH v3 1/4] scftorture: Avoid additional div operation Sebastian Andrzej Siewior
2024-11-08 10:39 ` [PATCH v3 2/4] scftorture: Wait until scf_cleanup_handler() completes Sebastian Andrzej Siewior
2024-11-08 10:39 ` [PATCH v3 3/4] scftorture: Move memory allocation outside of preempt_disable region Sebastian Andrzej Siewior
2024-11-08 10:39 ` [PATCH v3 4/4] scftorture: Use a lock-less list to free memory Sebastian Andrzej Siewior
2024-11-08 17:46 ` [PATCH v3 0/4] scftorture: Avoid kfree from IRQ context Boqun Feng
2024-11-08 18:33   ` Paul E. McKenney
2024-11-08 18:45     ` Sebastian Andrzej Siewior
2024-11-08 19:01       ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox