Kent Overstreet
ebeff03874
lib/generic-radix-tree.c: Fix rare race in __genradix_ptr_alloc()
...
[ Upstream commit b2f11c6f3e1fc60742673b8675c95b78447f3dae ]
If we need to increase the tree depth, allocate a new node, and then
race with another thread that increased the tree depth before us, we'll
still have a preallocated node that might be used later.
If we then use that node for a new non-root node, it'll still have a
pointer to the old root instead of being zeroed - fix this by zeroing it
in the cmpxchg failure path.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2024-09-12 11:10:25 +02:00
..
2022-08-26 18:40:14 +08:00
2023-05-24 17:32:31 +01:00
2022-12-31 13:31:56 +01:00
2024-07-11 12:47:08 +02:00
2022-06-15 10:29:10 +02:00
2022-07-17 17:31:39 -07:00
2022-07-29 18:12:34 -07:00
2024-08-29 17:30:14 +02:00
2024-02-23 09:12:49 +01:00
2022-10-11 17:42:58 -06:00
2022-11-23 19:50:15 +01:00
2023-12-13 18:39:04 +01:00
2022-06-01 18:29:06 -07:00
2022-08-02 17:14:47 -06:00
2023-07-19 16:21:58 +02:00
2024-04-27 17:07:17 +02:00
2022-06-16 19:58:21 -07:00
2023-03-10 09:33:47 +01:00
2022-09-01 16:55:35 +02:00
2023-08-30 16:11:08 +02:00
2024-03-26 18:20:28 -04:00
2022-09-11 21:55:06 -07:00
2023-06-14 11:15:22 +02:00
2022-10-06 05:57:36 -07:00
2022-10-01 10:22:57 -07:00
2022-06-07 10:27:38 +02:00
2024-02-05 20:12:47 +00:00
2024-08-03 08:49:38 +02:00
2022-09-01 18:04:43 +02:00
2024-05-17 11:56:20 +02:00
2022-09-11 21:55:10 -07:00
2023-12-08 08:51:15 +01:00
2022-07-17 17:31:38 -07:00
2022-11-22 18:50:44 -08:00
2022-10-11 17:42:55 -06:00
2022-10-06 05:57:36 -07:00
2022-09-19 14:35:08 +02:00
2022-09-14 07:04:15 -07:00
2024-09-12 11:10:25 +02:00
2024-01-10 17:10:36 +01:00
2024-01-20 11:50:09 +01:00
2022-10-03 14:03:21 -07:00
2022-10-03 14:03:18 -07:00
2022-09-07 16:37:27 -07:00
2022-10-10 13:04:25 -07:00
2024-05-17 11:55:56 +02:00
2022-10-03 14:02:57 -07:00
2022-10-11 12:01:24 +02:00
2022-11-08 15:57:24 -08:00
2022-07-14 15:45:26 -07:00
2024-08-03 08:49:39 +02:00
2023-09-23 11:11:07 +02:00
2022-06-16 19:58:20 -07:00
2022-09-11 21:55:06 -07:00
2023-02-01 08:34:34 +01:00
2022-07-17 17:31:37 -07:00
2024-01-10 17:10:33 +01:00
2024-06-16 13:41:31 +02:00
2024-03-26 18:20:28 -04:00
2024-03-06 14:45:06 +00:00
2022-12-31 13:31:58 +01:00
2024-08-03 08:49:05 +02:00
2022-10-03 17:34:32 -07:00
2022-10-25 14:57:42 -07:00
2024-04-03 15:19:25 +02:00
2023-08-30 16:11:08 +02:00
2022-10-11 17:42:58 -06:00
2022-08-24 13:46:57 +01:00
2024-08-03 08:49:29 +02:00
2022-07-17 17:31:39 -07:00
2022-09-23 16:46:19 +02:00
2022-09-26 19:46:29 -07:00
2022-06-03 10:34:34 -07:00
2024-06-12 11:03:04 +02:00
2022-07-17 17:31:41 -07:00
2024-05-02 16:29:29 +02:00
2022-09-30 13:21:22 -06:00
2022-09-05 14:51:46 +01:00
2022-10-03 14:03:22 -07:00
2023-08-11 12:08:10 +02:00
2024-03-26 18:20:33 -04:00
2022-06-22 19:20:20 -07:00
2022-09-07 17:04:49 +02:00
2023-08-03 10:24:19 +02:00
2023-10-25 12:03:12 +02:00
2022-07-17 17:14:36 -07:00
2022-10-11 17:42:55 -06:00
2022-10-12 18:51:50 -07:00
2024-06-12 11:03:29 +02:00
2024-01-20 11:50:09 +01:00
2022-10-11 17:42:58 -06:00
2022-10-11 17:42:55 -06:00
2023-11-02 09:35:24 +01:00
2023-10-15 18:32:41 +02:00
2022-10-11 17:42:58 -06:00
2022-10-11 17:42:58 -06:00
2022-07-28 10:38:30 +02:00
2022-10-26 13:39:09 +01:00
2023-09-19 12:28:05 +02:00
2022-10-11 17:42:58 -06:00
2022-10-11 17:42:55 -06:00
2022-06-15 17:41:12 +02:00
2023-07-19 16:21:13 +02:00
2023-01-24 07:24:41 +01:00
2023-02-25 11:25:41 +01:00
2022-10-11 17:42:58 -06:00
2024-01-01 12:39:07 +00:00
2023-09-13 09:43:00 +02:00