diff options
author | Richard Clark <richard.xnu.clark@gmail.com> | 2022-12-13 07:39:36 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2023-01-05 01:25:29 +0300 |
commit | 33e3f0a3358b8f9bb54b2661b9c1d37a75664c79 (patch) | |
tree | a8e81fcbbdf813c1322c8c8b7156ac9e52650da5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 512dee0c00ad9e9c7ae9f11fc6743702ea40caff (diff) | |
download | linux-33e3f0a3358b8f9bb54b2661b9c1d37a75664c79.tar.xz |
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 <richard.xnu.clark@gmail.com>
Reviewed-by: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions