Re: [PATCH] char: xillybus: Don't destroy workqueue from work item running on it
From: Greg KH
Date: Sat Aug 03 2024 - 02:56:40 EST
On Thu, Aug 01, 2024 at 03:11:26PM +0300, Eli Billauer wrote:
> Triggered by a kref decrement, destroy_workqueue() may be called from
> within a work item for destroying its own workqueue. This illegal
> situation is averted by adding a module-global workqueue for exclusive
> use of the offending work item. Other work items continue to be queued
> on per-device workqueues to ensure performance.
>
> Reported-by: syzbot+91dbdfecdd3287734d8e@xxxxxxxxxxxxxxxxxxxxxxxxx
> Closes: https://lore.kernel.org/lkml/0000000000000ab25a061e1dfe9f@xxxxxxxxxx/
> Signed-off-by: Eli Billauer <eli.billauer@xxxxxxxxx>
> ---
> drivers/char/xillybus/xillyusb.c | 16 +++++++++++-----
> 1 file changed, 11 insertions(+), 5 deletions(-)
What commit id does this fix? Should it also go to stable kernels?
thanks,
greg k-h