Files
linux-stable-mirror/kernel
Uladzislau Rezki (Sony) e38c1548fc rcu: Return early if callback is not specified
[ Upstream commit 33b6a1f155 ]

Currently the call_rcu() API does not check whether a callback
pointer is NULL. If NULL is passed, rcu_core() will try to invoke
it, resulting in NULL pointer dereference and a kernel crash.

To prevent this and improve debuggability, this patch adds a check
for NULL and emits a kernel stack trace to help identify a faulty
caller.

Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-17 18:27:48 +02:00
..
2025-06-27 11:04:24 +01:00
2024-07-05 09:12:41 +02:00
2025-03-13 12:47:35 +01:00
2023-12-20 15:44:30 +01:00
2025-06-27 11:04:24 +01:00
2025-06-04 14:37:08 +02:00
2023-01-14 10:15:20 +01:00
2024-10-17 15:08:12 +02:00