diff options
author | 2019-01-23 09:44:12 +0900 | |
---|---|---|
committer | 2019-01-25 07:28:29 -0800 | |
commit | 4d43d395fed124631ca02356c711facb90185175 (patch) | |
tree | 6c8e59bb96496aa1a19d3e8b96779b7731a258a2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'drm-fixes-2019-01-25-1' of git://anongit.freedesktop.org/drm/drm (diff) | |
download | wireguard-linux-4d43d395fed124631ca02356c711facb90185175.tar.xz wireguard-linux-4d43d395fed124631ca02356c711facb90185175.zip |
workqueue: Try to catch flush_work() without INIT_WORK().
syzbot found a flush_work() caller who forgot to call INIT_WORK()
because that work_struct was allocated by kzalloc() [1]. But the message
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
by lock_map_acquire() is failing to tell that INIT_WORK() is missing.
Since flush_work() without INIT_WORK() is a bug, and INIT_WORK() should
set ->func field to non-zero, let's warn if ->func field is zero.
[1] https://syzkaller.appspot.com/bug?id=a5954455fcfa51c29ca2ab55b203076337e1c770
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
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