Messages in this thread |  | | Date | Wed, 4 Jan 2023 12:26:19 -1000 | From | Tejun Heo <> | Subject | Re: [PATCH] workqueue: Add a new flag to spot the potential UAF error |
| |
On Tue, Dec 13, 2022 at 12:39:36PM +0800, Richard Clark wrote: > Currently if the user queues a new work item unintentionally > into a wq after the destroy_workqueue(wq), the work still can > be queued and scheduled without any noticeable kernel message > before the end of a RCU grace period. > > As a debug-aid facility, this commit adds a new flag > __WQ_DESTROYING to spot that issue by triggering a kernel WARN > message. > > Signed-off-by: Richard Clark <richard.xnu.clark@gmail.com>
Applied to wq/for-6.3 w/ whitespace adjustments.
Thanks.
-- tejun
|  |