Re: [PATCH] kthread: remove kthread_exit()
From: David Gow
Date: Sun Mar 08 2026 - 04:42:07 EST
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 <christian.loehle@xxxxxxx>
Link: https://lore.kernel.org/1ff1bce2-8bb4-463c-a631-16e14f4ea7e2@xxxxxxx
Signed-off-by: Christian Brauner <brauner@xxxxxxxxxx>
---
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 <david@xxxxxxxxxxxx>
Tested-by: David Gow <david@xxxxxxxxxxxx>
Cheers,
-- David