WARNING in rcu_note_context_switch (5)

Status: upstream: reported C repro on 2025/12/26 16:54
Subsystems: net
Labels: prio:low
[Documentation on labels]
Reported-by: syzbot+84d4a405ed798b40c96d@syzkaller.appspotmail.com
Fix commit: 313a123e1fca ipv6: Change allocation flags to match rcu_read_lock section requirements
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu-native-arm64-kvm ci-upstream-linux-next-kasan-gce-root ci-upstream-rust-kasan-gce]
First crash: 222d, last: 20d
Cause bisection: failed (error log, bisect log)
  
✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision Error
35933a25 assessment-security DenialOfService: ❌ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ✅ VMGuestTrigger: ❌ VMHostTrigger: ❌ WARNING in rcu_note_context_switch (5) 2026/05/16 03:41 2026/05/16 03:41 2026/05/16 04:40 efdaf0f9

			
		
44718797 repro WARNING in rcu_note_context_switch (5) 2026/03/07 20:14 2026/03/07 20:14 2026/03/07 20:25 31e9c887

			
		
Discussions (2)
Title Replies (including bot) Last reply
[PATCH net] ipv6: Change allocation flags to match rcu_read_lock section requirements 3 (3) 2026/07/23 16:20
[syzbot] [net?] WARNING in rcu_note_context_switch (5) 0 (3) 2026/07/19 05:47
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in rcu_note_context_switch (4) net -1 1 396d 396d 0/29 closed as invalid on 2025/09/01 08:35
upstream WARNING in rcu_note_context_switch (3) net -1 1 629d 625d 0/29 auto-obsoleted due to no activity on 2025/02/18 17:10
upstream WARNING in rcu_note_context_switch kernel -1 syz, C done 1 2497d 2497d 13/29 fixed on 2019/10/15 23:40
upstream WARNING in rcu_note_context_switch (2) rcu -1 syz, C 13 745d 742d 0/29 auto-obsoleted due to no activity on 2024/09/25 21:55
Last patch testing requests (1)
Created Duration User Patch Repo Result
2026/07/19 05:47 26m zlatistiv@gmail.com patch upstream OK log

Sample crash report:
------------[ cut here ]------------
Voluntary context switch within RCU read-side critical section!
WARNING: kernel/rcu/tree_plugin.h:332 at rcu_note_context_switch+0x859/0x19c0 kernel/rcu/tree_plugin.h:332, CPU#3: syz.0.17/5919
Modules linked in:
CPU: 3 UID: 0 PID: 5919 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:rcu_note_context_switch+0x859/0x19c0 kernel/rcu/tree_plugin.h:332
Code: c1 ea 03 80 3c 02 00 0f 85 9b 0b 00 00 48 8b 53 28 b9 01 00 00 00 4c 89 ef e8 03 d1 fe ff e9 1d f9 ff ff 48 8d 3d 97 cf 36 0f <67> 48 0f b9 3a e9 99 f8 ff ff 48 b8 00 00 00 00 00 fc ff df 48 8d
RSP: 0018:ffffc90006e1f130 EFLAGS: 00010002
RAX: 0000000000000001 RBX: ffff88806a73c540 RCX: ffffffff81eec4df
RDX: 0000000000000000 RSI: ffffffff8c400f00 RDI: ffffffff912608e0
RBP: ffff888024fc8000 R08: 0000000000000000 R09: fffffbfff22446b2
R10: ffffffff91223597 R11: 0000000000000000 R12: 0000000000000000
R13: ffff888024fc84c4 R14: dffffc0000000000 R15: ffffffff91226964
FS:  000055556dd81500(0000) GS:ffff8880d60ea000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc277e73780 CR3: 000000003d9df000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 __schedule+0x277/0x6730 kernel/sched/core.c:7088
 __schedule_loop kernel/sched/core.c:7311 [inline]
 schedule+0xdd/0x2c0 kernel/sched/core.c:7326
 netlink_broadcast_filtered+0xa76/0xf20 net/netlink/af_netlink.c:1553
 nlmsg_multicast_filtered include/net/netlink.h:1165 [inline]
 nlmsg_multicast include/net/netlink.h:1184 [inline]
 nlmsg_notify+0xb1/0x290 net/netlink/af_netlink.c:2599
 __ip6_del_rt_siblings net/ipv6/route.c:4080 [inline]
 ip6_route_del+0x1109/0x1d50 net/ipv6/route.c:4220
 inet6_rtm_delroute+0x27d/0x3b0 net/ipv6/route.c:5657
 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:7076
 netlink_rcv_skb+0x159/0x420 net/netlink/af_netlink.c:2556
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x585/0x850 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x8b0/0xda0 net/netlink/af_netlink.c:1900
 sock_sendmsg_nosec net/socket.c:775 [inline]
 __sock_sendmsg net/socket.c:790 [inline]
 ____sys_sendmsg+0xa4d/0xbe0 net/socket.c:2684
 ___sys_sendmsg+0x190/0x1e0 net/socket.c:2738
 __sys_sendmsg+0x160/0x210 net/socket.c:2770
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc277f9de59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffe1da7618 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fc278225fa0 RCX: 00007fc277f9de59
RDX: 0000000000000000 RSI: 0000200000000280 RDI: 0000000000000004
RBP: 00007fc278033e6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fc278225fac R14: 00007fc278225fa0 R15: 00007fc278225fa0
 </TASK>
----------------
Code disassembly (best guess):
   0:	c1 ea 03             	shr    $0x3,%edx
   3:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   7:	0f 85 9b 0b 00 00    	jne    0xba8
   d:	48 8b 53 28          	mov    0x28(%rbx),%rdx
  11:	b9 01 00 00 00       	mov    $0x1,%ecx
  16:	4c 89 ef             	mov    %r13,%rdi
  19:	e8 03 d1 fe ff       	call   0xfffed121
  1e:	e9 1d f9 ff ff       	jmp    0xfffff940
  23:	48 8d 3d 97 cf 36 0f 	lea    0xf36cf97(%rip),%rdi        # 0xf36cfc1
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	e9 99 f8 ff ff       	jmp    0xfffff8cd
  34:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  3b:	fc ff df
  3e:	48                   	rex.W
  3f:	8d                   	.byte 0x8d

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/07/13 01:33 upstream f4fb100039e9 d78ea535 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in rcu_note_context_switch
2026/07/05 16:12 net 660667cd4066 fcece630 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in rcu_note_context_switch
2026/07/05 06:25 net-next b73bc9ca3686 fcece630 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in rcu_note_context_switch
2026/07/05 08:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a52d6c7160f7 fcece630 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in rcu_note_context_switch
2026/04/20 19:43 upstream c1f49dea2b8f e65da4ee .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in rcu_note_context_switch
2026/02/22 18:56 upstream 32a92f8c8932 6e7b5511 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in rcu_note_context_switch
2026/02/25 15:34 upstream 7dff99b35460 c162cde9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in rcu_note_context_switch
2025/12/22 16:43 upstream 9448598b22c5 d1b870e1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in rcu_note_context_switch
2026/07/05 05:08 net-next b73bc9ca3686 fcece630 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce WARNING in rcu_note_context_switch
2026/05/26 03:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 4b4362973b6f c69befb3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in rcu_note_context_switch
* Struck through repros no longer work on HEAD.