Re: [PATCH] workqueue: Fix NULL current_pwq deref in flush dependency check

From: Pavan Kondeti

Date: Mon Sep 28 2026 - 00:00:38 EST


On Sat, Sep 26, 2026 at 10:30:46PM -1000, Tejun Heo wrote:
> Applied to wq/for-7.3-fixes.
>
> - is_chained_work() has the same problem. It dereferences
> worker->current_pwq after checking only worker. It is only reached when
> queueing on a draining or destroying workqueue, but a kworker outside a
> work item would crash there the same way. Can you send a fix for that
> one too?
>
Thanks Tejun. I have sent the fix for is_chained_work() and CC'd stable.

I have also sent a separate fix to cover current_is_workqueue_mem_reclaim()
which is exported but there is only one user (NFS). It does not appear
to me that this can be triggered from NFS code path, so for now I did
not copy stable for this patch.

Thanks,
Pavan