aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
authorRichard Clark <[email protected]>2022-12-13 04:39:36 +0000
committerTejun Heo <[email protected]>2023-01-04 22:25:29 +0000
commit33e3f0a3358b8f9bb54b2661b9c1d37a75664c79 (patch)
treea8e81fcbbdf813c1322c8c8b7156ac9e52650da5 /lib/string.c
parentMerge tag 'x86-urgent-2023-01-04' of git://git.kernel.org/pub/scm/linux/kerne... (diff)
downloadkernel-33e3f0a3358b8f9bb54b2661b9c1d37a75664c79.tar.gz
kernel-33e3f0a3358b8f9bb54b2661b9c1d37a75664c79.zip
workqueue: Add a new flag to spot the potential UAF error
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 <[email protected]> Reviewed-by: Lai Jiangshan <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions