syzbot


INFO: rcu detected stall in dev_ioctl

Status: upstream: reported on 2024/12/01 17:46
Reported-by: syzbot+d3aa3ef9edae42684186@syzkaller.appspotmail.com
First crash: 28d, last: 28d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: rcu detected stall in dev_ioctl 1 1581d 1581d 0/1 auto-closed as invalid on 2020/12/30 14:33
linux-4.19 INFO: rcu detected stall in dev_ioctl (2) 1 1219d 1219d 0/1 auto-closed as invalid on 2021/12/27 14:21
upstream INFO: rcu detected stall in dev_ioctl batman 18 994d 1861d 0/28 auto-closed as invalid on 2022/08/09 13:29
linux-4.19 INFO: rcu detected stall in dev_ioctl (3) 1 1096d 1096d 0/1 auto-closed as invalid on 2022/04/29 15:27
upstream BUG: soft lockup in dev_ioctl batman 2 229d 294d 0/28 auto-obsoleted due to no activity on 2024/08/13 06:45
android-5-15 BUG: soft lockup in dev_ioctl 7 157d 247d 0/2 auto-obsoleted due to no activity on 2024/10/24 08:58

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-....: (1 GPs behind) idle=9d7/1/0x4000000000000002 softirq=7613/7615 fqs=2106 
	(detected by 1, t=10504 jiffies, g=7653, q=1487)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4782 Comm: syz.1.175 Not tainted 5.15.173-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:check_preemption_disabled+0x42/0x110 lib/smp_processor_id.c:55
Code: 08 65 8b 1d 98 62 c3 75 65 8b 05 01 bd c3 75 a9 ff ff ff 7f 74 22 65 48 8b 04 25 28 00 00 00 48 3b 44 24 08 0f 85 c7 00 00 00 <89> d8 48 83 c4 10 5b 41 5c 41 5e 41 5f c3 48 c7 04 24 00 00 00 00
RSP: 0018:ffffc90000006f68 EFLAGS: 00000046
RAX: 23cbd092a7a2b100 RBX: 0000000000000000 RCX: ffffffff8162e378
RDX: 0000000000000000 RSI: ffffffff8aab3880 RDI: ffffffff8af9ed00
RBP: ffffc900000070d0 R08: dffffc0000000000 R09: fffffbfff1c14b16
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000000e00
R13: ffffffff81a430b9 R14: ffffc90000007050 R15: dffffc0000000000
FS:  00007f1a3f9c16c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c24ce9f CR3: 000000006201a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lockdep_recursion_inc kernel/locking/lockdep.c:431 [inline]
 lock_release+0x181/0x9a0 kernel/locking/lockdep.c:5642
 rcu_read_unlock include/linux/rcupdate.h:772 [inline]
 __perf_event_output kernel/events/core.c:7788 [inline]
 perf_event_output_forward+0x29e/0x310 kernel/events/core.c:7797
 __perf_event_overflow+0x35d/0x530 kernel/events/core.c:9490
 perf_swevent_overflow kernel/events/core.c:9566 [inline]
 perf_swevent_event+0x4c5/0x550 kernel/events/core.c:9604
 perf_tp_event+0x363/0xc40 kernel/events/core.c:10022
 perf_trace_run_bpf_submit+0xf7/0x1d0 kernel/events/core.c:9996
 perf_trace_preemptirq_template+0x31d/0x430 include/trace/events/preemptirq.h:14
 trace_irq_enable_rcuidle+0x10e/0x190 include/trace/events/preemptirq.h:40
 trace_hardirqs_on+0x57/0x80 kernel/trace/trace_preemptirq.c:44
 asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:713
RIP: 0010:rcu_read_unlock_special+0x84/0x520 kernel/rcu/tree_plugin.h:671
Code: f1 f1 f1 00 f2 f2 f2 49 89 04 17 66 41 c7 44 17 09 f3 f3 41 c6 44 17 0b f3 65 44 8b 25 bd 92 96 7e 41 f7 c4 00 00 f0 00 74 45 <48> c7 44 24 20 0e 36 e0 45 4a c7 04 3a 00 00 00 00 66 42 c7 44 3a
RSP: 0018:ffffc900000077a0 EFLAGS: 00000206
RAX: 23cbd092a7a2b100 RBX: 1ffff92000000efc RCX: ffffffff81632d68
RDX: dffffc0000000000 RSI: ffffffff8aab2a80 RDI: ffffffff8af9ed00
RBP: ffffc90000007878 R08: dffffc0000000000 R09: fffffbfff2131041
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8cb23c00
R13: ffff888027455d98 R14: ffffc900000077e0 R15: 1ffff92000000ef8
 __rcu_read_unlock+0x92/0x100 kernel/rcu/tree_plugin.h:422
 rcu_read_unlock include/linux/rcupdate.h:771 [inline]
 ndisc_send_skb+0xc9c/0x13c0 net/ipv6/ndisc.c:519
 addrconf_rs_timer+0x357/0x610 net/ipv6/addrconf.c:3959
 call_timer_fn+0x16d/0x560 kernel/time/timer.c:1451
 expire_timers kernel/time/timer.c:1496 [inline]
 __run_timers+0x67c/0x890 kernel/time/timer.c:1767
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780
 handle_softirqs+0x3a7/0x930 kernel/softirq.c:558
 __do_softirq kernel/softirq.c:592 [inline]
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x157/0x240 kernel/softirq.c:641
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:653
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:lock_release+0x62d/0x9a0 kernel/locking/lockdep.c:5647
Code: 3c 3b 00 74 08 4c 89 f7 e8 00 63 67 00 f6 84 24 91 00 00 00 02 75 6f 41 f7 c5 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 04 27 00 00 00 00 4b c7 44 27 08 00 00 00 00 65 48 8b 04 25
RSP: 0018:ffffc9000131fa00 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000263f52 RCX: ffffc9000131fa03
RDX: 0000000000000001 RSI: ffffffff8aab3d20 RDI: ffffffff8af9ed00
RBP: ffffc9000131fb40 R08: dffffc0000000000 R09: fffffbfff1c14b16
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000263f4c
R13: 0000000000000246 R14: ffffc9000131fa90 R15: dffffc0000000000
 _copy_from_user+0x28/0x170 lib/usercopy.c:14
 copy_from_user include/linux/uaccess.h:192 [inline]
 ip_tunnel_siocdevprivate+0xa3/0x1c0 net/ipv4/ip_tunnel.c:995
 dev_siocdevprivate net/core/dev_ioctl.c:285 [inline]
 dev_ifsioc+0xc75/0x10c0 net/core/dev_ioctl.c:403
 dev_ioctl+0x5ab/0xf60 net/core/dev_ioctl.c:612
 sock_ioctl+0x68f/0x770 net/socket.c:1184
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f1a41b4b849
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1a3f9c1058 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f1a41d10fa0 RCX: 00007f1a41b4b849
RDX: 0000000020000080 RSI: 00000000000089f3 RDI: 0000000000000007
RBP: 00007f1a41bbe986 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f1a41d10fa0 R15: 00007ffc1acf1fb8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/01 17:45 linux-5.15.y 0a51d2d4527b 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in dev_ioctl
* Struck through repros no longer work on HEAD.