Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'rcu/fixes-for-6.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rcu/linux

Pull RCU fix from Joel Fernandes:
"We recently got a report of a crash [1] with misuse of call_rcu().

Instead of crashing the kernel, a warning and graceful return is
better:

- rcu: Return early if callback is not specified (Uladzislau Rezki)"

Link: https://lore.kernel.org/all/aEnVuzK7VhGSizWj@pc636/ [1]

* tag 'rcu/fixes-for-6.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rcu/linux:
rcu: Return early if callback is not specified

+4
+4
kernel/rcu/tree.c
··· 3072 3072 /* Misaligned rcu_head! */ 3073 3073 WARN_ON_ONCE((unsigned long)head & (sizeof(void *) - 1)); 3074 3074 3075 + /* Avoid NULL dereference if callback is NULL. */ 3076 + if (WARN_ON_ONCE(!func)) 3077 + return; 3078 + 3075 3079 if (debug_rcu_head_queue(head)) { 3076 3080 /* 3077 3081 * Probable double call_rcu(), so leak the callback.