syzbot


INFO: rcu detected stall in l2cap_sock_connect

Status: auto-obsoleted due to no activity on 2024/07/05 09:12
Subsystems: bluetooth
[Documentation on labels]
First crash: 480d, last: 480d

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (0 ticks this GP) idle=edb4/1/0x4000000000000000 softirq=14326/14326 fqs=0
rcu: 	(detected by 1, t=10506 jiffies, g=19625, q=381 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 7051 Comm: syz-executor.1 Not tainted 6.9.0-rc7-next-20240506-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:26 [inline]
RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:67 [inline]
RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:127 [inline]
RIP: 0010:lock_acquire+0x233/0x550 kernel/locking/lockdep.c:5757
Code: 7e 83 f8 01 0f 85 a3 01 00 00 49 89 de 48 c1 eb 03 42 80 3c 2b 00 74 08 4c 89 f7 e8 77 64 89 00 48 c7 44 24 60 00 00 00 00 9c <8f> 44 24 60 42 80 3c 2b 00 74 08 4c 89 f7 e8 6a 63 89 00 f6 44 24
RSP: 0018:ffffc90000007b18 EFLAGS: 00000046
RAX: 0000000000000001 RBX: 1ffff92000000f70 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: ffffffff8bcac4c0 RDI: ffffffff8c1fca80
RBP: ffffc90000007c78 R08: ffffffff92fab587 R09: 1ffffffff25f56b0
R10: dffffc0000000000 R11: fffffbfff25f56b1 R12: 1ffff92000000f6c
R13: dffffc0000000000 R14: ffffc90000007b80 R15: 0000000000000046
FS:  00007f7c16b6c6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9d346d56c6 CR3: 0000000061b0c000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 rcu_lock_acquire include/linux/rcupdate.h:327 [inline]
 rcu_read_lock include/linux/rcupdate.h:839 [inline]
 advance_sched+0xa1e/0xca0 net/sched/sch_taprio.c:985
 __run_hrtimer kernel/time/hrtimer.c:1687 [inline]
 __hrtimer_run_queues+0x5a5/0xd50 kernel/time/hrtimer.c:1751
 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1813
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline]
 __sysvec_apic_timer_interrupt+0x110/0x3f0 arch/x86/kernel/apic/apic.c:1049
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
 sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1043
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:queue_work_on+0x269/0x380 kernel/workqueue.c:2415
Code: 75 19 e8 9a 8f 36 00 eb 18 e8 93 8f 36 00 e8 5e 05 2a 0a 48 83 7c 24 10 00 74 e7 e8 81 8f 36 00 fb 48 c7 44 24 20 0e 36 e0 45 <4b> c7 04 37 00 00 00 00 43 c7 44 37 09 00 00 00 00 66 43 c7 44 37
RSP: 0018:ffffc90005b7f9c0 EFLAGS: 00000287
RAX: ffffffff815f89af RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc900048b2000 RSI: 00000000000040dc RDI: 00000000000040dd
RBP: ffffc90005b7fab0 R08: ffffffff815f897f R09: 1ffffffff25f56ca
R10: dffffc0000000000 R11: fffffbfff25f56cb R12: 0000000002400001
R13: 0000000000000046 R14: 1ffff92000b6ff3c R15: dffffc0000000000
 queue_work include/linux/workqueue.h:621 [inline]
 hci_cmd_sync_submit+0x2c3/0x2f0 net/bluetooth/hci_sync.c:660
 hci_connect_acl+0x28a/0x4b0 net/bluetooth/hci_conn.c:1602
 l2cap_chan_connect+0x5b6/0xeb0 net/bluetooth/l2cap_core.c:7082
 l2cap_sock_connect+0x5c9/0x800 net/bluetooth/l2cap_sock.c:256
 __sys_connect_file net/socket.c:2048 [inline]
 __sys_connect+0x2df/0x310 net/socket.c:2065
 __do_sys_connect net/socket.c:2075 [inline]
 __se_sys_connect net/socket.c:2072 [inline]
 __x64_sys_connect+0x7a/0x90 net/socket.c:2072
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f7c15e7dca9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f7c16b6c0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007f7c15fabf80 RCX: 00007f7c15e7dca9
RDX: 000000000000000e RSI: 0000000020000040 RDI: 0000000000000004
RBP: 00007f7c15ec947e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f7c15fabf80 R15: 00007ffd7a4c2ee8
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10505 jiffies! g19625 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=12906
rcu: rcu_preempt kthread starved for 10506 jiffies! g19625 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=0
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:I stack:26320 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5408 [inline]
 __schedule+0x17e8/0x4a50 kernel/sched/core.c:6745
 __schedule_loop kernel/sched/core.c:6822 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6837
 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2581
 rcu_gp_fqs_loop+0x2df/0x1370 kernel/rcu/tree.c:2031
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2233
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/06 09:04 linux-next 2b84edefcad1 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in l2cap_sock_connect
* Struck through repros no longer work on HEAD.