Files
linux-stable-mirror/kernel
Uladzislau Rezki (Sony)andGreg Kroah-Hartman 817662f9bd 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-10 16:03:17 +02:00
..
2024-06-27 13:49:13 +02:00
2025-06-27 11:09:03 +01:00
2024-10-17 15:24:37 +02:00
2024-06-12 11:12:52 +02:00