Files
android_kernel_samsung_msm8226/lib
wang, biao c7bd62aea1 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.

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>
2013-10-20 16:48:49 -07:00
..
…
2011-10-03 11:40:37 -07:00
…
…
…
2011-10-29 21:20:22 +02:00
…
…
…
2012-03-23 16:58:38 -07:00
…
2012-03-23 16:58:38 -07:00
…
2012-01-31 23:19:47 +02:00
2011-12-08 19:52:43 -05:00
…
…
…
…