diff options
author | 2013-05-16 09:50:13 +0800 | |
---|---|---|
committer | 2013-05-21 10:16:39 -0700 | |
commit | ac5a2962b02f57dea76d314ef2521a2170b28ab6 (patch) | |
tree | 07c5b125c8b80182fedd9fd74098b79647f7a08f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | driver core: print sysfs attribute name when warning about bogus permissions (diff) | |
download | linux-dev-ac5a2962b02f57dea76d314ef2521a2170b28ab6.tar.xz linux-dev-ac5a2962b02f57dea76d314ef2521a2170b28ab6.zip |
klist: del waiter from klist_remove_waiters before wakeup waitting process
There is a race between klist_remove and klist_release. klist_remove
uses a local var waiter saved on stack. When klist_release calls
wake_up_process(waiter->process) to wake up the waiter, waiter might run
immediately and reuse the stack. Then, klist_release calls
list_del(&waiter->list) to change previous
wait data and cause prior waiter thread corrupt.
The patch fixes it against kernel 3.9.
Signed-off-by: wang, biao <biao.wang@intel.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions