syzbot


BUG: soft lockup in sys_sendmsg (2)

Status: moderation: reported on 2025/04/30 13:48
Subsystems: scsi
[Documentation on labels]
Reported-by: syzbot+69ae0a03b008cdd26ca0@syzkaller.appspotmail.com
First crash: 7d21h, last: 7d21h
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 BUG: soft lockup in sys_sendmsg origin:upstream C 3 362d 390d 0/2 upstream: reported C repro on 2024/04/09 06:46
linux-6.1 BUG: soft lockup in sys_sendmsg 2 691d 698d 0/3 auto-obsoleted due to no activity on 2023/09/20 17:26
android-5-10 BUG: soft lockup in sys_sendmsg C 43 6d06h 408d 0/2 upstream: reported C repro on 2024/03/22 10:41
upstream BUG: soft lockup in sys_sendmsg tipc batman C 3 405d 447d 25/28 fixed on 2024/05/22 23:36
android-5-15 BUG: soft lockup in sys_sendmsg origin:upstream C error 13 234d 408d 0/2 upstream: reported C repro on 2024/03/22 10:44
linux-5.15 INFO: rcu detected stall in sys_sendmsg origin:upstream C error 9 13d 410d 0/3 upstream: reported C repro on 2024/03/19 21:37
linux-6.1 BUG: soft lockup in sys_sendmsg (2) origin:upstream C done 1 392d 392d 3/3 fixed on 2024/05/15 09:17
linux-6.1 INFO: rcu detected stall in sys_sendmsg 6 217d 304d 0/3 auto-obsoleted due to no activity on 2025/01/06 11:24

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 143s! [syz.7.558:8002]
Modules linked in:
irq event stamp: 24250065
hardirqs last  enabled at (24250064): [<ffffffff8b5533c4>] irqentry_exit+0x74/0x90 kernel/entry/common.c:357
hardirqs last disabled at (24250065): [<ffffffff8b551dbe>] sysvec_apic_timer_interrupt+0xe/0xc0 arch/x86/kernel/apic/apic.c:1049
softirqs last  enabled at (21048044): [<ffffffff8185c3da>] __do_softirq kernel/softirq.c:613 [inline]
softirqs last  enabled at (21048044): [<ffffffff8185c3da>] invoke_softirq kernel/softirq.c:453 [inline]
softirqs last  enabled at (21048044): [<ffffffff8185c3da>] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680
softirqs last disabled at (21048047): [<ffffffff8185c3da>] __do_softirq kernel/softirq.c:613 [inline]
softirqs last disabled at (21048047): [<ffffffff8185c3da>] invoke_softirq kernel/softirq.c:453 [inline]
softirqs last disabled at (21048047): [<ffffffff8185c3da>] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680
CPU: 1 UID: 0 PID: 8002 Comm: syz.7.558 Not tainted 6.15.0-rc3-syzkaller-g91dbac407653 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
RIP: 0010:scsi_run_queue_async+0x0/0x270 drivers/scsi/scsi_lib.c:602
Code: 00 5b 41 5e e9 21 06 8b fe e8 8c 2d b1 fb 5b 41 5e c3 cc cc cc cc cc 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <55> 41 57 41 56 41 55 41 54 53 48 89 fb 49 bd 00 00 00 00 00 fc ff
RSP: 0018:ffffc90000a08d50 EFLAGS: 00000287
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 891de1a8bbb91a00
RDX: 0000000000000000 RSI: ffffffff8d747e1c RDI: ffff8881433d6000
RBP: 0000000000000000 R08: ffffffff8f7ebb77 R09: 1ffffffff1efd76e
R10: dffffc0000000000 R11: fffffbfff1efd76f R12: 1ffff11004b1e4f1
R13: ffffffff860df599 R14: ffff8880258f2788 R15: ffff888028209d80
FS:  00007f82806406c0(0000) GS:ffff8881261d0000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020000000f000 CR3: 00000000799ac000 CR4: 00000000003526f0
DR0: 0000200000000300 DR1: 0000000000000000 DR2: 0000200000000300
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 scsi_end_request+0x4bd/0x830 drivers/scsi/scsi_lib.c:673
 scsi_io_completion+0x131/0x390 drivers/scsi/scsi_lib.c:1079
 blk_complete_reqs block/blk-mq.c:1220 [inline]
 blk_done_softirq+0x107/0x160 block/blk-mq.c:1225
 handle_softirqs+0x283/0x870 kernel/softirq.c:579
 __do_softirq kernel/softirq.c:613 [inline]
 invoke_softirq kernel/softirq.c:453 [inline]
 __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:680
 irq_exit_rcu+0x9/0x30 kernel/softirq.c:696
 instr_sysvec_irq_work arch/x86/kernel/irq_work.c:17 [inline]
 sysvec_irq_work+0xa3/0xc0 arch/x86/kernel/irq_work.c:17
 </IRQ>
 <TASK>
 asm_sysvec_irq_work+0x1a/0x20 arch/x86/include/asm/idtentry.h:738
RIP: 0010:preempt_schedule_irq+0xb0/0x150 kernel/sched/core.c:7090
Code: 24 20 f6 44 24 21 02 74 0c 90 0f 0b 48 f7 03 08 00 00 00 74 64 bf 01 00 00 00 e8 cb 73 3a f6 e8 36 f2 70 f6 fb bf 01 00 00 00 <e8> 4b ab ff ff 48 c7 44 24 40 00 00 00 00 9c 8f 44 24 40 8b 44 24
RSP: 0018:ffffc9000b6071a0 EFLAGS: 00000286
RAX: 891de1a8bbb91a00 RBX: 0000000000000000 RCX: 891de1a8bbb91a00
RDX: 0000000000000000 RSI: ffffffff8d747e1c RDI: 0000000000000001
RBP: ffffc9000b607240 R08: ffffffff8f7ebb77 R09: 1ffffffff1efd76e
R10: dffffc0000000000 R11: fffffbfff1efd76f R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff920016c0e34
 irqentry_exit+0x6f/0x90 kernel/entry/common.c:354
 asm_sysvec_irq_work+0x1a/0x20 arch/x86/include/asm/idtentry.h:738
RIP: 0010:should_resched arch/x86/include/asm/preempt.h:104 [inline]
RIP: 0010:__local_bh_enable_ip+0x135/0x1c0 kernel/softirq.c:414
Code: 8b e8 0f 8c cf 09 65 66 8b 05 4f 49 ef 10 66 85 c0 75 5a bf 01 00 00 00 e8 28 07 0b 00 e8 e3 83 41 00 fb 65 8b 05 2b 49 ef 10 <85> c0 75 05 e8 92 cd ad ff 48 c7 04 24 0e 36 e0 45 4b c7 04 37 00
RSP: 0018:ffffc9000b607300 EFLAGS: 00000286
RAX: 0000000000000000 RBX: 0000000000000200 RCX: 891de1a8bbb91a00
RDX: 0000000000000000 RSI: ffffffff8d747e1c RDI: ffffffff8bc1c7a0
RBP: ffffc9000b607390 R08: ffffffff8f7ebb77 R09: 1ffffffff1efd76e
R10: dffffc0000000000 R11: fffffbfff1efd76f R12: ffffffff893f009e
R13: dffffc0000000000 R14: dffffc0000000000 R15: 1ffff920016c0e60
 local_bh_enable include/linux/bottom_half.h:33 [inline]
 rcu_read_unlock_bh include/linux/rcupdate.h:910 [inline]
 __dev_queue_xmit+0x1cd7/0x3a70 net/core/dev.c:4656
 packet_snd net/packet/af_packet.c:3131 [inline]
 packet_sendmsg+0x41be/0x5400 net/packet/af_packet.c:3163
 sock_sendmsg_nosec net/socket.c:712 [inline]
 __sock_sendmsg+0x219/0x270 net/socket.c:727
 ____sys_sendmsg+0x505/0x830 net/socket.c:2566
 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2620
 __sys_sendmsg net/socket.c:2652 [inline]
 __do_sys_sendmsg net/socket.c:2657 [inline]
 __se_sys_sendmsg net/socket.c:2655 [inline]
 __x64_sys_sendmsg+0x19b/0x260 net/socket.c:2655
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f827f78e969
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:00007f8280640038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f827f9b5fa0 RCX: 00007f827f78e969
RDX: 0000000000000000 RSI: 00002000000000c0 RDI: 0000000000000007
RBP: 00007f827f810ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f827f9b5fa0 R15: 00007fff77994c48
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 54 Comm: kworker/u8:3 Not tainted 6.15.0-rc3-syzkaller-g91dbac407653 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:csd_lock_wait kernel/smp.c:340 [inline]
RIP: 0010:smp_call_function_many_cond+0xe69/0x11c0 kernel/smp.c:885
Code: 00 45 8b 2f 44 89 ee 83 e6 01 31 ff e8 20 6d 0b 00 41 83 e5 01 49 bd 00 00 00 00 00 fc ff df 75 07 e8 cb 68 0b 00 eb 37 f3 90 <43> 0f b6 04 2c 84 c0 75 10 41 f7 07 01 00 00 00 74 1e e8 b0 68 0b
RSP: 0018:ffffc9000120f700 EFLAGS: 00000293
RAX: ffffffff81b454d0 RBX: ffff8880b883ad40 RCX: ffff88801abd0000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000120f860 R08: ffffffff8f7ebb77 R09: 1ffffffff1efd76e
R10: dffffc0000000000 R11: fffffbfff1efd76f R12: 1ffff11017127e99
R13: dffffc0000000000 R14: 0000000000000001 R15: ffff8880b893f4c8
FS:  0000000000000000(0000) GS:ffff8881260d0000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff8fc4e5000 CR3: 000000000dd36000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <TASK>
 on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1052
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:2455 [inline]
 text_poke_bp_batch+0x319/0x940 arch/x86/kernel/alternative.c:2665
 text_poke_flush arch/x86/kernel/alternative.c:2856 [inline]
 text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2863
 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146
 static_key_disable_cpuslocked+0xc5/0x1b0 kernel/jump_label.c:240
 static_key_disable+0x1a/0x20 kernel/jump_label.c:248
 toggle_allocation_gate+0x1a1/0x240 mm/kfence/core.c:855
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xadb/0x17a0 kernel/workqueue.c:3319
 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400
 kthread+0x70e/0x8a0 kernel/kthread.c:464
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/26 13:37 bpf-next 91dbac407653 c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce BUG: soft lockup in sys_sendmsg
* Struck through repros no longer work on HEAD.