syzbot


WARNING in rcu_note_context_switch (2)

Status: upstream: reported C repro on 2024/07/21 12:53
Subsystems: rcu
[Documentation on labels]
Reported-by: syzbot+784d0a1246a539975f05@syzkaller.appspotmail.com
First crash: 52d, last: 52d
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] [rcu?] WARNING in rcu_note_context_switch (2) 6 (8) 2024/07/23 14:13
[PATCH] nsfs: Fix the missed rcu_read_unlock() invoking in ns_ioctl() 2 (2) 2024/07/22 09:54
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in rcu_note_context_switch kernel C done 1 1803d 1803d 13/27 fixed on 2019/10/15 23:40
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/07/31 22:25 26m retest repro upstream OK log
2024/07/31 21:56 27m retest repro upstream OK log
2024/07/23 13:44 27m eadavis@qq.com patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 51835949dda3 OK log

Sample crash report:
------------[ cut here ]------------
Voluntary context switch within RCU read-side critical section!
WARNING: CPU: 0 PID: 3460 at kernel/rcu/tree_plugin.h:330 rcu_note_context_switch+0x354/0x49c kernel/rcu/tree_plugin.h:330
Modules linked in:
CPU: 0 PID: 3460 Comm: syz-executor248 Not tainted 6.10.0-syzkaller-04472-g51835949dda3 #0
Hardware name: linux,dummy-virt (DT)
pstate: 614000c9 (nZCv daIF +PAN -UAO -TCO +DIT -SSBS BTYPE=--)
pc : rcu_note_context_switch+0x354/0x49c kernel/rcu/tree_plugin.h:330
lr : rcu_note_context_switch+0x354/0x49c kernel/rcu/tree_plugin.h:330
sp : ffff800089523d30
x29: ffff800089523d30 x28: f6f0000005d4a480 x27: 0000000000000000
x26: 0000000000000000 x25: f6f0000005d4a480 x24: ffff800082643318
x23: 0000000000000000 x22: f6f0000005d4a480 x21: fff000007f8d6240
x20: ffff80008261e040 x19: fff000007f8d7040 x18: fffffffffffcb658
x17: fff07ffffd2b9000 x16: ffff800080000000 x15: 0000000000000048
x14: fffffffffffcb6a0 x13: ffff80008266b0a8 x12: 000000000000088b
x11: 00000000000002d9 x10: ffff80008271f500 x9 : ffff80008266b0a8
x8 : 00000000ffffdfff x7 : ffff80008271b0a8 x6 : 00000000000002d9
x5 : fff000007f8cbf48 x4 : 40000000ffffe2d9 x3 : fff07ffffd2b9000
x2 : 0000000000000000 x1 : 0000000000000000 x0 : f6f0000005d4a480
Call trace:
 rcu_note_context_switch+0x354/0x49c kernel/rcu/tree_plugin.h:330
 __schedule+0xb0/0x850 kernel/sched/core.c:6417
 __schedule_loop kernel/sched/core.c:6606 [inline]
 schedule+0x34/0x104 kernel/sched/core.c:6621
 do_notify_resume+0xe4/0x164 arch/arm64/kernel/entry-common.c:136
 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline]
 exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline]
 el0_interrupt+0xc4/0xc8 arch/arm64/kernel/entry-common.c:797
 __el0_irq_handler_common+0x18/0x24 arch/arm64/kernel/entry-common.c:802
 el0t_64_irq_handler+0x10/0x1c arch/arm64/kernel/entry-common.c:807
 el0t_64_irq+0x19c/0x1a0 arch/arm64/kernel/entry.S:599
---[ end trace 0000000000000000 ]---

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/17 21:54 upstream 51835949dda3 0e62b432 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in rcu_note_context_switch
2024/07/17 21:44 upstream 51835949dda3 0e62b432 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING in rcu_note_context_switch
2024/07/17 12:48 upstream 51835949dda3 215bec2d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in rcu_note_context_switch
2024/07/17 20:04 upstream 51835949dda3 0e62b432 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in rcu_note_context_switch
2024/07/17 20:04 upstream 51835949dda3 0e62b432 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in rcu_note_context_switch
2024/07/17 20:01 upstream 51835949dda3 0e62b432 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in rcu_note_context_switch
2024/07/17 20:01 upstream 51835949dda3 0e62b432 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in rcu_note_context_switch
2024/07/17 20:01 upstream 51835949dda3 0e62b432 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in rcu_note_context_switch
2024/07/17 20:00 upstream 51835949dda3 0e62b432 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte WARNING in rcu_note_context_switch
2024/07/17 19:29 upstream 51835949dda3 0e62b432 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING in rcu_note_context_switch
2024/07/17 19:29 upstream 51835949dda3 0e62b432 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING in rcu_note_context_switch
2024/07/17 19:25 upstream 51835949dda3 0e62b432 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING in rcu_note_context_switch
2024/07/17 19:25 upstream 51835949dda3 0e62b432 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING in rcu_note_context_switch
* Struck through repros no longer work on HEAD.