Le 06/03/2026 à 10:07 PM, 'Christian Brauner' via KUnit Development a
écrit :
In 28aaa9c39945 ("kthread: consolidate kthread exit paths to prevent
use-after-free")
we folded kthread_exit() into do_exit() when we fixed a nasty UAF bug.
We left kthread_exit() around as an alias to do_exit(). Remove it
completely.
Reported-by: Christian Loehle <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Christian Brauner <[email protected]>
---
The KUnit bits of this look fine, and it all works for me.
(That being said, I agree that do_exit() isn't as nice a name.)
Acked-by: David Gow <[email protected]>
Tested-by: David Gow <[email protected]>
Cheers,
-- David