Kuniyuki Iwashima
80cc28a4b4
sysctl: Fix data races in proc_dointvec().
...
[ Upstream commit 1f1be04b4d ]
A sysctl variable is accessed concurrently, and there is always a chance
of data-race. So, all readers and writers need some basic protection to
avoid load/store-tearing.
This patch changes proc_dointvec() to use READ_ONCE() and WRITE_ONCE()
internally to fix data-races on the sysctl side. For now, proc_dointvec()
itself is tolerant to a data-race, but we still need to add annotations on
the other subsystem's side.
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2022-07-21 21:20:06 +02:00
..
2022-07-12 16:32:17 +02:00
2022-07-21 21:20:00 +02:00
2022-05-30 09:33:22 +02:00
2022-06-22 14:13:20 +02:00
2021-10-06 15:55:49 +02:00
2022-05-25 09:17:55 +02:00
2021-04-14 08:41:58 +02:00
2022-05-30 09:33:27 +02:00
2021-05-26 12:06:54 +02:00
2022-04-08 14:40:15 +02:00
2022-04-08 14:40:32 +02:00
2022-04-08 14:40:01 +02:00
2022-04-08 14:40:08 +02:00
2022-06-09 10:20:51 +02:00
2022-06-09 10:21:02 +02:00
2022-07-21 21:19:59 +02:00
2022-07-21 21:19:59 +02:00
2021-05-11 14:47:37 +02:00
2020-10-16 11:11:19 -07:00
2022-02-23 12:01:00 +01:00
2020-12-30 11:54:18 +01:00
2021-09-03 10:09:31 +02:00
2020-12-30 11:54:18 +01:00
2022-02-08 18:30:34 +01:00
2022-04-08 14:40:00 +02:00
2022-04-08 14:40:00 +02:00
2020-10-13 09:17:34 -07:00
2021-09-15 09:50:40 +02:00
2022-05-30 09:33:36 +02:00
2021-06-23 14:42:52 +02:00
2021-09-08 08:49:00 +02:00
2022-07-21 21:19:59 +02:00
2020-11-19 11:58:16 -08:00
2022-02-23 12:01:08 +01:00
2021-04-07 15:00:14 +02:00
2021-06-30 08:47:29 -04:00
2020-10-13 09:17:34 -07:00
2020-11-02 12:14:19 -08:00
2021-07-20 16:05:58 +02:00
2020-10-25 14:51:49 -07:00
2021-01-09 13:46:24 +01:00
2021-02-03 23:28:37 +01:00
2022-06-09 10:21:26 +02:00
2021-12-08 09:03:20 +01:00
2021-09-03 10:09:31 +02:00
2021-05-11 14:47:37 +02:00
2021-03-25 09:04:11 +01:00
2021-03-25 09:04:11 +01:00
2022-05-25 09:18:02 +02:00
2020-11-14 11:26:04 -08:00
2020-10-29 17:22:59 -05:00
2021-09-18 13:40:36 +02:00
2021-01-09 13:46:24 +01:00
2021-09-26 14:08:58 +02:00
2022-06-09 10:20:49 +02:00
2020-10-16 11:11:19 -07:00
2020-11-14 11:26:03 -08:00
2020-10-16 11:11:22 -07:00
2021-05-19 10:13:09 +02:00
2022-04-08 14:40:03 +02:00
2022-06-09 10:21:01 +02:00
2021-08-18 08:59:06 +02:00
2021-11-18 14:03:47 +01:00
2022-04-20 09:23:29 +02:00
2021-07-14 16:55:50 +02:00
2022-02-23 12:01:00 +01:00
2021-09-08 08:49:00 +02:00
2020-10-26 12:12:27 +01:00
2020-10-18 09:27:10 -07:00
2021-09-26 14:08:57 +02:00
2022-07-21 21:20:06 +02:00
2020-10-17 15:05:30 -06:00
2021-09-03 10:09:30 +02:00
2022-01-27 10:54:33 +01:00
2021-09-08 08:49:00 +02:00
2021-05-14 09:50:46 +02:00
2021-09-08 08:49:00 +02:00
2021-03-30 14:32:03 +02:00
2022-04-08 14:40:41 +02:00
2021-05-19 10:13:00 +02:00
2022-01-16 09:14:22 +01:00