Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
klist: del waiter from klist_remove_waiters before wakeup waitting pr…
…ocess 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. Change-Id: I3c418c9ca5411a8ba934322172e33b93d6a480bb 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> Git-commit: ac5a2962b02f57dea76d314ef2521a2170b28ab6 Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
- Loading branch information