Uladzislau Rezki (Sony)
1b199a17b7
rcu/kvfree: Add kvfree_rcu_mightsleep() and kfree_rcu_mightsleep()
...
[ Upstream commit 608723c41c ]
The kvfree_rcu() and kfree_rcu() APIs are hazardous in that if you forget
the second argument, it works, but might sleep. This sleeping can be a
correctness bug from atomic contexts, and even in non-atomic contexts
it might introduce unacceptable latencies. This commit therefore adds
kvfree_rcu_mightsleep() and kfree_rcu_mightsleep(), which will replace
the single-argument kvfree_rcu() and kfree_rcu(), respectively.
This commit enables a series of commits that switch from single-argument
kvfree_rcu() and kfree_rcu() to their _mightsleep() counterparts. Once
all of these commits land, the single-argument versions will be removed.
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com >
Signed-off-by: Paul E. McKenney <paulmck@kernel.org >
Stable-dep-of: 511e64e13d ("can: gw: fix RCU/BH usage in cgw_create_job()")
Signed-off-by: Sasha Levin <sashal@kernel.org >
2025-05-18 08:20:35 +02:00
..
2024-06-16 13:39:38 +02:00
2024-10-22 15:40:40 +02:00
2024-10-22 15:40:46 +02:00
2024-04-10 16:19:08 +02:00
2025-03-13 12:50:18 +01:00
2024-06-16 13:39:57 +02:00
2025-03-13 12:50:09 +01:00
2024-02-23 08:55:14 +01:00
2024-04-10 16:18:40 +02:00
2025-05-02 07:44:21 +02:00
2025-05-02 07:44:26 +02:00
2024-12-14 19:51:21 +01:00
2025-03-13 12:50:21 +01:00
2024-10-17 15:10:44 +02:00
2024-03-01 13:21:58 +01:00
2024-12-14 19:51:46 +01:00
2025-05-02 07:44:11 +02:00
2024-09-04 13:23:17 +02:00
2025-05-02 07:44:22 +02:00
2024-12-14 19:51:20 +01:00
2024-04-27 17:05:23 +02:00
2024-05-17 11:50:47 +02:00
2025-03-13 12:50:40 +01:00
2024-03-01 13:21:52 +01:00
2024-08-19 05:45:45 +02:00
2024-07-05 09:14:13 +02:00
2024-07-05 09:14:50 +02:00
2024-07-18 13:07:26 +02:00
2024-12-19 18:07:22 +01:00
2024-04-10 16:18:48 +02:00
2024-09-04 13:23:16 +02:00
2024-06-16 13:39:27 +02:00
2024-12-14 19:50:59 +01:00
2024-05-17 11:51:02 +02:00
2024-04-10 16:18:47 +02:00
2024-04-10 16:18:47 +02:00
2024-04-10 16:18:54 +02:00
2024-12-14 19:51:42 +01:00
2025-03-13 12:50:40 +01:00
2024-05-02 16:24:49 +02:00
2024-12-14 19:51:34 +01:00
2024-04-27 17:05:23 +02:00
2024-10-17 15:11:05 +02:00
2024-04-10 16:19:07 +02:00
2024-02-23 08:55:13 +01:00
2024-10-17 15:11:42 +02:00
2025-05-02 07:44:39 +02:00
2025-04-10 14:31:51 +02:00
2024-09-12 11:07:41 +02:00
2024-07-18 13:07:33 +02:00
2025-04-10 14:31:59 +02:00
2024-10-17 15:11:33 +02:00
2024-04-10 16:19:37 +02:00
2025-01-23 17:16:02 +01:00
2024-08-19 05:45:10 +02:00
2024-09-12 11:07:41 +02:00
2025-01-09 13:28:34 +01:00
2024-10-17 15:11:43 +02:00
2024-10-17 15:11:43 +02:00
2025-04-10 14:31:48 +02:00
2025-01-09 13:28:47 +01:00
2024-03-26 18:21:23 -04:00
2025-04-10 14:31:57 +02:00
2024-03-26 18:21:11 -04:00
2024-07-05 09:14:17 +02:00
2024-04-10 16:18:47 +02:00
2024-08-19 05:45:34 +02:00
2024-08-19 05:45:30 +02:00
2024-04-17 11:15:16 +02:00
2024-08-19 05:45:14 +02:00
2024-12-14 19:50:45 +01:00
2025-03-13 12:50:10 +01:00
2024-07-05 09:14:34 +02:00
2024-04-10 16:18:55 +02:00
2025-03-13 12:50:24 +01:00
2024-12-14 19:51:41 +01:00
2024-04-10 16:18:49 +02:00
2024-12-14 19:51:14 +01:00
2024-07-18 13:07:34 +02:00
2024-07-05 09:14:40 +02:00
2025-03-13 12:50:07 +01:00
2024-07-27 10:46:15 +02:00
2024-12-14 19:50:38 +01:00
2024-07-18 13:07:36 +02:00
2024-07-05 09:14:37 +02:00
2024-04-10 16:18:55 +02:00
2024-03-26 18:21:31 -04:00
2024-03-26 18:21:23 -04:00
2024-07-18 13:07:26 +02:00
2025-03-13 12:50:53 +01:00
2024-03-06 14:38:46 +00:00
2024-12-14 19:50:59 +01:00
2024-04-10 16:19:24 +02:00
2024-10-17 15:11:53 +02:00
2024-11-14 13:13:36 +01:00
2024-04-10 16:19:26 +02:00
2025-05-02 07:44:12 +02:00
2024-07-05 09:14:44 +02:00
2024-08-19 05:44:56 +02:00
2024-07-27 10:46:14 +02:00
2025-03-13 12:50:45 +01:00
2025-05-02 07:44:28 +02:00
2024-08-19 05:45:19 +02:00
2025-04-10 14:31:57 +02:00
2024-09-04 13:23:39 +02:00
2025-01-23 17:16:00 +01:00
2025-03-13 12:50:47 +01:00
2024-06-16 13:39:27 +02:00
2025-04-10 14:31:55 +02:00
2024-08-19 05:45:39 +02:00
2024-10-17 15:11:43 +02:00
2024-12-19 18:07:20 +01:00
2024-04-13 13:01:48 +02:00
2024-12-14 19:50:46 +01:00
2025-05-18 08:20:35 +02:00
2024-03-15 10:48:23 -04:00
2024-04-10 16:18:41 +02:00
2025-03-13 12:49:52 +01:00
2025-02-01 18:23:59 +01:00
2024-04-10 16:19:43 +02:00
2024-07-18 13:07:34 +02:00
2024-12-14 19:50:46 +01:00
2024-05-02 16:24:50 +02:00
2024-10-17 15:10:41 +02:00
2025-01-09 13:28:37 +01:00
2025-04-10 14:31:49 +02:00
2024-03-01 13:21:59 +01:00
2024-03-26 18:21:23 -04:00
2024-12-19 18:07:23 +01:00
2024-07-05 09:14:50 +02:00
2025-03-13 12:49:50 +01:00
2024-08-19 05:45:13 +02:00
2024-11-14 13:13:39 +01:00
2024-04-10 16:18:33 +02:00
2025-01-09 13:28:42 +01:00
2024-04-17 11:15:14 +02:00
2024-09-12 11:07:53 +02:00
2025-01-23 17:16:04 +01:00
2024-12-14 19:51:23 +01:00
2024-10-17 15:11:06 +02:00
2024-04-10 16:19:30 +02:00
2024-10-17 15:10:34 +02:00
2025-01-09 13:28:36 +01:00
2025-01-09 13:28:36 +01:00