Files
linux/kernel
Shaleen Agrawal 1e674650ff ANDROID: sched: Fix wake_q length tracking
The current approach to carry the wake_q length is exposed to an
intertask stack access. For example, if A sets the wake_q_head for
B but is preempted before it is able to set it back to NULL,
then B continues to point to an address corresponding to A's stack.
If B is then woken up by another task, it ends up accessing
the address pointing to A's stack. This causes a memory fault.

Replace this with a simple parameter which indicates the number
of tasks that are being woken up as part of the same event. This
avoids saving and accessing on stack pointers.

Bug: 173981591
Change-Id: I0031747d79a27673e680f7b1121eb4896ac7c699
Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
2021-02-09 20:04:50 +00:00
..
2021-01-13 10:28:55 +01:00
2020-09-11 09:33:54 -07:00
2021-02-08 20:05:12 -08:00
2021-02-05 10:38:34 +01:00
2021-01-30 14:29:02 +01:00
2020-08-26 09:10:39 -04:00
2021-01-30 14:29:02 +01:00
2020-08-12 10:58:02 -07:00
2021-02-08 20:05:12 -08:00
2020-11-14 11:26:04 -08:00
2021-01-13 10:28:55 +01:00
2020-07-27 14:31:12 -04:00
2021-02-07 15:37:17 +01:00
2020-10-29 06:32:38 +01:00
2020-09-21 12:13:45 +02:00
2020-06-04 19:06:24 -07:00
2020-07-07 11:58:59 -05:00
2021-02-08 20:05:12 -08:00