syzbot


INFO: rcu detected stall in sock_write_iter (2)

Status: upstream: reported on 2024/04/19 08:46
Reported-by: syzbot+740dd6800e1897f604f1@syzkaller.appspotmail.com
First crash: 18d, last: 18d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sock_write_iter kernel 1 1616d 1616d 0/26 closed as invalid on 2019/12/04 14:04
linux-5.15 INFO: rcu detected stall in sock_write_iter 1 200d 200d 0/3 auto-obsoleted due to no activity on 2024/01/28 05:21
linux-6.1 INFO: rcu detected stall in sock_write_iter 1 32d 32d 0/3 upstream: reported on 2024/04/04 13:13
upstream INFO: rcu detected stall in sock_write_iter (2) netfilter 1 185d 185d 0/26 auto-obsoleted due to no activity on 2024/01/03 00:51
android-5-15 BUG: soft lockup in sock_write_iter 9 3h11m 37d 0/2 premoderation: reported on 2024/03/31 05:19

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...0: (1 GPs behind) idle=6d5/1/0x4000000000000000 softirq=5972/5976 fqs=5248 
	(detected by 0, t=10502 jiffies, g=6061, q=1132)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 3511 Comm: syz-fuzzer Not tainted 5.15.156-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:native_irq_disable arch/x86/include/asm/irqflags.h:40 [inline]
RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:75 [inline]
RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:107 [inline]
RIP: 0010:lock_is_held_type+0x69/0x180 kernel/locking/lockdep.c:5662
Code: 8b 2d 7b cf e4 75 41 83 bd ec 0a 00 00 00 0f 85 db 00 00 00 41 89 f6 49 89 ff 48 c7 04 24 00 00 00 00 9c 8f 04 24 4c 8b 24 24 <fa> 48 c7 c7 80 37 8b 8a e8 0a 12 00 00 65 ff 05 83 d8 e4 75 41 83
RSP: 0018:ffffc90000dd0c78 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffff88807d399dc0
RDX: ffff88807d399dc0 RSI: 00000000ffffffff RDI: ffff88805d7dbb00
RBP: 00000000ffffffff R08: ffffffff886c19d7 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: 0000000000000046
R13: ffff88807d399dc0 R14: 00000000ffffffff R15: ffff88805d7dbb00
FS:  000000c0006b0090(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f814f4d2bd8 CR3: 0000000074926000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_is_held include/linux/lockdep.h:287 [inline]
 advance_sched+0x69/0x940 net/sched/sch_taprio.c:717
 __run_hrtimer kernel/time/hrtimer.c:1686 [inline]
 __hrtimer_run_queues+0x598/0xcf0 kernel/time/hrtimer.c:1750
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline]
 __sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1102
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:unwind_next_frame+0x141/0x1fa0 arch/x86/kernel/unwind_orc.c:448
Code: ba 00 00 00 00 00 fc ff df f6 03 03 0f 85 83 15 00 00 49 8d 6f 35 49 89 ec 49 c1 ec 03 41 0f b6 04 14 84 c0 0f 85 f1 16 00 00 <4c> 0f be 6d 00 48 8b 44 24 28 80 3c 10 00 48 8b 5c 24 08 74 12 48
RSP: 0018:ffffc90002ce6788 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff913edf03
RDX: dffffc0000000000 RSI: ffffffff81c9fbf8 RDI: 0000000000000001
RBP: ffffc90002ce6875 R08: 0000000000000002 R09: ffffc90002ce6930
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200059cd0e
R13: ffffffff816df630 R14: ffffffff81c9fbf8 R15: ffffc90002ce6840
 arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track+0x4b/0x80 mm/kasan/common.c:46
 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360
 ____kasan_slab_free+0xd8/0x120 mm/kasan/common.c:366
 kasan_slab_free include/linux/kasan.h:230 [inline]
 slab_free_hook mm/slub.c:1705 [inline]
 slab_free_freelist_hook+0xdd/0x160 mm/slub.c:1731
 slab_free mm/slub.c:3499 [inline]
 kmem_cache_free+0x91/0x1f0 mm/slub.c:3515
 packet_rcv+0x151/0x1210 net/packet/af_packet.c:2196
 dev_queue_xmit_nit+0x9bb/0xae0 net/core/dev.c:2342
 xmit_one net/core/dev.c:3612 [inline]
 dev_hard_start_xmit+0x137/0x7a0 net/core/dev.c:3633
 sch_direct_xmit+0x2b2/0x5e0 net/sched/sch_generic.c:342
 __dev_xmit_skb net/core/dev.c:3844 [inline]
 __dev_queue_xmit+0x18ee/0x3230 net/core/dev.c:4213
 neigh_hh_output include/net/neighbour.h:493 [inline]
 neigh_output include/net/neighbour.h:507 [inline]
 ip_finish_output2+0xcd7/0x11a0 net/ipv4/ip_output.c:228
 dst_output include/net/dst.h:443 [inline]
 ip_local_out net/ipv4/ip_output.c:126 [inline]
 __ip_queue_xmit+0x1296/0x1ce0 net/ipv4/ip_output.c:532
 __tcp_transmit_skb+0x1f39/0x3810 net/ipv4/tcp_output.c:1402
 tcp_transmit_skb net/ipv4/tcp_output.c:1420 [inline]
 tcp_write_xmit+0x19e5/0x65f0 net/ipv4/tcp_output.c:2705
 __tcp_push_pending_frames+0x90/0x250 net/ipv4/tcp_output.c:2890
 tcp_sendmsg_locked+0x315c/0x3a90 net/ipv4/tcp.c:1428
 tcp_sendmsg+0x2c/0x40 net/ipv4/tcp.c:1456
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 sock_write_iter+0x39b/0x530 net/socket.c:1079
 call_write_iter include/linux/fs.h:2172 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0xacf/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:0x40720e
Code: 48 83 ec 38 e8 13 00 00 00 48 83 c4 38 5d c3 cc cc cc cc cc cc cc cc cc cc cc cc cc 49 89 f2 48 89 fa 48 89 ce 48 89 df 0f 05 <48> 3d 01 f0 ff ff 76 15 48 f7 d8 48 89 c1 48 c7 c0 ff ff ff ff 48
RSP: 002b:000000c000402dd0 EFLAGS: 00000216 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000040720e
RDX: 00000000000000f0 RSI: 000000c0004ea200 RDI: 0000000000000003
RBP: 000000c000402e10 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000216 R12: 000000c000402f50
R13: 0000000000000001 R14: 000000c0000061a0 R15: 000000000000000f
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/19 08:45 linux-5.15.y c52b9710c83d af24b050 .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.