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-27 11:55:28 +01:00
2021-02-05 09:20:53 +00:00
2020-10-01 14:44:08 +01:00
2021-01-25 12:21:02 -08:00
2020-11-04 18:06:14 +01:00
2021-01-13 10:28:55 +01:00
2020-09-11 09:33:54 -07:00
2021-01-21 18:02:19 -08:00
2020-10-16 11:11:19 -07:00
2020-10-16 11:11:19 -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
2021-01-19 18:27:28 +01:00
2021-02-09 20:04:50 +00:00
2021-02-02 02:04:18 +00:00
2021-02-05 09:20:54 -08:00
2020-10-16 11:11:19 -07:00
2020-07-16 12:35:15 -07:00
2020-12-30 11:54:18 +01:00
2020-12-30 11:54:18 +01:00
2020-12-30 11:54:18 +01:00
2020-08-26 09:10:39 -04:00
2020-08-17 20:26:58 -04:00
2020-08-23 17:36:59 -05:00
2020-08-04 14:20:26 -07:00
2020-07-30 11:15:58 -07:00
2020-10-13 09:17:34 -07:00
2021-01-14 16:28:57 +00:00
2020-08-23 17:36:59 -05:00
2020-06-11 15:14:36 +02:00
2020-09-01 09:58:03 +02:00
2021-01-26 19:30:11 +00:00
2020-08-12 10:58:01 -07:00
2021-01-30 13:55:18 +01:00
2020-11-19 11:58:16 -08:00
2021-01-22 18:02:09 +00:00
2021-01-30 14:29:02 +01:00
2020-06-06 23:42:01 +09:00
2020-10-13 09:17:34 -07:00
2020-11-02 12:14:19 -08:00
2020-12-03 16:50:04 +00:00
2020-10-16 11:11:19 -07:00
2021-01-14 16:31:46 +00:00
2021-01-09 13:46:24 +01:00
2020-08-12 10:58:02 -07:00
2021-02-03 23:28:37 +01:00
2020-10-16 11:11:18 -07:00
2020-10-05 13:37:03 +02:00
2020-08-12 10:58:01 -07:00
2020-11-04 09:46:06 -05:00
2021-02-08 20:05:12 -08:00
2021-01-14 16:28:57 +00:00
2021-01-14 16:28:57 +00:00
2020-09-01 09:58:03 +02:00
2020-07-08 11:14:22 +02:00
2020-09-04 17:51:55 +10:00
2020-11-14 11:26:04 -08:00
2020-10-29 17:22:59 -05:00
2020-10-16 11:11:19 -07:00
2021-01-13 10:28:55 +01:00
2020-11-17 12:53:22 -08:00
2020-10-16 11:11:19 -07:00
2020-11-15 14:37:09 +01:00
2020-07-27 14:31:12 -04:00
2020-10-16 11:11:22 -07:00
2020-10-16 11:11:18 -07:00
2020-08-24 18:38:38 -07:00
2021-01-07 17:56:54 -08:00
2020-12-21 18:48:41 +00:00
2021-01-22 10:05:52 -08:00
2021-01-14 11:39:55 -08:00
2021-02-07 15:37:17 +01:00
2020-12-21 17:48:06 +00:00
2020-09-19 13:13:39 -07:00
2020-09-18 14:24:16 +01:00
2020-10-02 21:18:25 +02:00
2020-12-08 19:07:21 +00:00
2020-10-18 09:27:10 -07:00
2020-10-29 06:32:38 +01:00
2020-09-21 12:13:45 +02:00
2020-10-17 15:05:30 -06:00
2020-10-02 19:11:12 -07:00
2020-06-29 12:01:45 -07:00
2020-10-29 17:22:59 -05:00
2020-10-06 10:31:52 -07:00
2020-10-16 11:11:19 -07:00
2020-06-04 19:06:24 -07:00
2020-07-07 11:58:59 -05:00
2020-08-17 09:39:18 -07:00
2021-02-04 23:55:45 +00:00
2021-02-08 20:05:12 -08:00