syzbot


INFO: rcu detected stall in sock_write_iter (3)

Status: upstream: reported on 2024/10/23 00:48
Reported-by: syzbot+c73b7253c354735cb887@syzkaller.appspotmail.com
First crash: 43d, last: 43d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sock_write_iter kernel 1 1829d 1829d 0/28 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in sock_write_iter (3) net C done 89 8h35m 212d 0/28 upstream: reported C repro on 2024/05/07 12:14
linux-5.15 INFO: rcu detected stall in sock_write_iter 1 412d 412d 0/3 auto-obsoleted due to no activity on 2024/01/28 05:21
linux-5.15 INFO: rcu detected stall in sock_write_iter (2) 1 230d 230d 0/3 auto-obsoleted due to no activity on 2024/07/28 08:46
linux-6.1 INFO: rcu detected stall in sock_write_iter 1 245d 245d 0/3 auto-obsoleted due to no activity on 2024/07/13 13:13
upstream INFO: rcu detected stall in sock_write_iter (2) netfilter 1 397d 397d 0/28 auto-obsoleted due to no activity on 2024/01/03 00:51
android-5-15 BUG: soft lockup in sock_write_iter 24 114d 249d 0/2 auto-obsoleted due to no activity on 2024/11/03 03:04

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...0: (1 GPs behind) idle=70d/1/0x4000000000000000 softirq=36850/36851 fqs=2100 
	(detected by 0, t=10505 jiffies, g=50825, q=470)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 3559 Comm: syz-executor Not tainted 5.15.169-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:test_bit include/asm-generic/bitops/instrumented-non-atomic.h:135 [inline]
RIP: 0010:cpumask_test_cpu include/linux/cpumask.h:344 [inline]
RIP: 0010:cpu_online include/linux/cpumask.h:895 [inline]
RIP: 0010:trace_hrtimer_expire_exit include/trace/events/timer.h:283 [inline]
RIP: 0010:__run_hrtimer kernel/time/hrtimer.c:1691 [inline]
RIP: 0010:__hrtimer_run_queues+0x602/0xcf0 kernel/time/hrtimer.c:1752
Code: 00 00 e8 11 fa 10 00 89 d8 c1 e8 06 48 8d 3c c5 a8 65 e9 8d be 08 00 00 00 e8 6a c5 5a 00 89 d8 31 db 48 0f a3 05 b6 eb 79 0c <41> 0f 92 c7 0f 92 c3 bf 02 00 00 00 89 de e8 3b fc 10 00 31 ff 89
RSP: 0018:ffffc90000dd0d60 EFLAGS: 00000047
RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff816f79e6
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8de965a8
RBP: ffffc90000dd0ea8 R08: dffffc0000000000 R09: fffffbfff1bd2cb6
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b912a200
R13: 0000000000000001 R14: ffff88807ea02340 R15: ffff88801b1a2898
FS:  000055558e3e7500(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020003c80 CR3: 0000000072f5a000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline]
 __sysvec_apic_timer_interrupt+0x13b/0x4b0 arch/x86/kernel/apic/apic.c:1114
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0x9b/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:security_socket_sendmsg+0x57/0xa0 security/security.c:2252
Code: c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 01 51 06 fe 48 8b 1b 48 85 db 74 31 48 8d 6b 18 48 89 e8 48 c1 e8 03 42 80 3c 28 00 <74> 08 48 89 ef e8 df 50 06 fe 4c 89 e7 4c 89 fe 44 89 f2 ff 55 00
RSP: 0018:ffffc90002067b28 EFLAGS: 00000246
RAX: 1ffffffff1876f3a RBX: ffffffff8c3b79b8 RCX: ffff88801b1a1dc0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffffff8c3b79d0 R08: ffffffff83c74931 R09: ffffffff83c74899
R10: 0000000000000003 R11: ffff88801b1a1dc0 R12: ffff88807429f800
R13: dffffc0000000000 R14: 0000000000003c58 R15: ffffc90002067bc0
 __sock_sendmsg net/socket.c:713 [inline]
 sock_write_iter+0x2fd/0x530 net/socket.c:1079
 call_write_iter include/linux/fs.h:2174 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0xacd/0xe50 fs/read_write.c:594
 ksys_write+0x1a2/0x2c0 fs/read_write.c:647
 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:0x7fc0bb2e8aa0
Code: 40 00 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 80 3d a1 fa 18 00 00 74 17 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 58 c3 0f 1f 80 00 00 00 00 48 83 ec 28 48 89
RSP: 002b:00007ffd870807e8 EFLAGS: 00000202 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000080befc0 RCX: 00007fc0bb2e8aa0
RDX: 0000000000003c58 RSI: 00007fc0b61683a8 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000007 R09: 00000000005ffdf0
R10: 3053b371b49abd33 R11: 0000000000000202 R12: 0000000000003c58
R13: 000055558e3ff230 R14: 00007ffd87080c90 R15: 00007fc0b61683a8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/23 00:47 linux-5.15.y 74cdd62cb470 15fa2979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sock_write_iter
* Struck through repros no longer work on HEAD.