Yandong Zhao
2fd8eb4ad8
arm64: neon: Fix function may_use_simd() return error status
...
It does not matter if the caller of may_use_simd() migrates to
another cpu after the call, but it is still important that the
kernel_neon_busy percpu instance that is read matches the cpu the
task is running on at the time of the read.
This means that raw_cpu_read() is not sufficient. kernel_neon_busy
may appear true if the caller migrates during the execution of
raw_cpu_read() and the next task to be scheduled in on the initial
cpu calls kernel_neon_begin().
This patch replaces raw_cpu_read() with this_cpu_read() to protect
against this race.
Cc: <[email protected] >
Fixes: cb84d11e16 ("arm64: neon: Remove support for nested or hardirq kernel-mode NEON")
Acked-by: Ard Biesheuvel <[email protected] >
Reviewed-by: Dave Martin <[email protected] >
Reviewed-by: Mark Rutland <[email protected] >
Signed-off-by: Yandong Zhao <[email protected] >
Signed-off-by: Will Deacon <[email protected] >
2018-07-11 17:02:02 +01:00
..
2017-11-02 11:10:55 +01:00
2018-05-17 17:28:09 +01:00
2018-06-27 18:21:53 +01:00
2018-03-22 13:46:18 +00:00
2017-11-16 13:00:24 -08:00
2018-01-02 16:43:12 +00:00
2017-10-25 15:57:15 +01:00
2018-01-17 13:57:49 +01:00
2018-04-11 18:50:34 +01:00
2017-05-15 18:30:10 +01:00
2018-05-21 19:00:36 +01:00
2018-02-06 22:53:30 +00:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-08 16:28:13 +01:00
2018-05-15 13:29:55 +01:00
2018-06-15 18:10:01 -03:00
2017-06-29 16:32:43 +01:00
2017-11-02 11:10:55 +01:00
2018-05-16 12:21:19 +01:00
2018-04-20 16:20:01 +02:00
2017-11-03 15:24:17 +00:00
2018-05-31 17:34:38 +01:00
2018-06-12 11:34:04 -07:00
2017-11-02 11:10:55 +01:00
2018-05-09 14:28:20 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 15:55:41 +00:00
2017-05-02 11:14:42 +02:00
2018-01-10 16:41:12 +01:00
2018-03-09 08:58:22 +01:00
2018-06-01 15:53:10 +01:00
2018-03-20 10:03:11 +00:00
2018-01-16 15:07:12 +00:00
2017-11-02 11:10:55 +01:00
2017-12-11 13:41:20 +00:00
2018-05-25 12:28:29 +01:00
2018-05-17 18:19:53 +01:00
2018-02-06 22:53:42 +00:00
2017-04-05 18:29:15 +01:00
2018-02-16 18:13:57 +00:00
2017-04-04 16:55:41 +01:00
2017-11-02 11:10:55 +01:00
2018-03-19 13:05:10 +00:00
2017-04-24 13:53:13 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 15:55:41 +00:00
2018-02-06 18:32:43 -08:00
2018-01-03 09:02:11 -08:00
2018-02-06 22:53:14 +00:00
2017-04-05 18:29:15 +01:00
2017-02-27 18:43:45 -08:00
2018-03-19 10:53:10 +00:00
2018-06-12 11:34:04 -07:00
2018-05-04 16:44:54 +01:00
2018-06-21 09:14:44 +01:00
2018-03-19 10:53:21 +00:00
2018-06-08 11:10:58 -07:00
2017-09-18 11:20:19 +01:00
2018-03-27 13:14:49 +01:00
2018-04-11 10:28:38 -07:00
2018-02-16 18:13:57 +00:00
2018-03-19 13:06:46 +00:00
2017-11-02 11:10:55 +01:00
2018-04-24 19:07:35 +01:00
2017-08-04 15:10:12 +01:00
2017-11-02 11:10:55 +01:00
2017-08-15 18:35:00 +01:00
2017-08-15 18:35:00 +01:00
2017-11-02 11:10:55 +01:00
2018-05-07 07:15:41 +02:00
2018-03-27 13:15:29 +01:00
2017-12-05 15:02:41 +01:00
2018-02-16 18:13:57 +00:00
2018-03-06 18:52:34 +00:00
2018-02-10 13:16:35 -08:00
2017-03-09 11:48:47 -08:00
2018-06-27 18:26:20 +01:00
2017-12-11 13:40:25 +00:00
2018-06-12 11:34:04 -07:00
2017-08-09 15:37:49 +01:00
2018-01-14 18:49:50 +00:00
2018-01-14 18:49:50 +00:00
2017-08-10 18:17:32 +01:00
2018-07-11 17:02:02 +01:00
2017-08-21 18:01:04 +01:00
2017-12-22 17:30:33 +00:00
2017-10-25 10:57:25 +02:00
2018-05-15 08:11:15 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-23 13:46:38 +00:00
2018-04-19 13:29:54 +02:00
2017-08-09 12:16:26 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-06-21 09:14:54 +01:00
2018-03-06 18:52:31 +00:00
2018-06-12 11:34:04 -07:00
2017-11-06 16:23:09 +01:00
2018-03-28 15:20:17 +01:00
2018-05-17 17:28:09 +01:00
2018-03-06 18:52:23 +00:00
2018-02-19 13:59:58 +00:00
2017-04-17 12:52:22 -04:00
2017-04-17 12:52:22 -04:00
2018-03-26 18:01:41 +01:00
2018-01-13 10:45:03 +00:00