syzbot


BUG: workqueue leaked atomic, lock or RCU: syz-executor[NUM]

Status: auto-obsoleted due to no activity on 2024/07/06 20:30
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+dc3ac644adeab8bfc768@syzkaller.appspotmail.com
First crash: 244d, last: 244d

Sample crash report:
BUG: workqueue leaked atomic, lock or RCU: syz-executor.0[6672]
     preempt=0x00000101 lock=3->0 RCU=0->0 workfn=usb_giveback_urb_bh
INFO: lockdep is turned off.
CPU: 0 PID: 6672 Comm: syz-executor.0 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:114
 process_one_work+0x11bd/0x1a60 kernel/workqueue.c:3275
 process_scheduled_works kernel/workqueue.c:3335 [inline]
 bh_worker+0x5a4/0x8a0 kernel/workqueue.c:3595
 workqueue_softirq_action+0x12c/0x190 kernel/workqueue.c:3622
 tasklet_hi_action+0x17/0x70 kernel/softirq.c:812
 __do_softirq+0x218/0x8de kernel/softirq.c:554
 invoke_softirq kernel/softirq.c:428 [inline]
 __irq_exit_rcu kernel/softirq.c:633 [inline]
 irq_exit_rcu+0xb9/0x120 kernel/softirq.c:645
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
 sysvec_apic_timer_interrupt+0x95/0xb0 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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:194
Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 a6 3f 95 f6 48 89 df e8 0e bb 95 f6 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 <bf> 01 00 00 00 e8 95 08 87 f6 65 8b 05 e6 d0 2d 75 85 c0 74 16 5b
RSP: 0018:ffffc9000300fc68 EFLAGS: 00000246

RAX: 0000000000000002 RBX: ffff88802ec8a860 RCX: 1ffffffff27ba7e9
RDX: 0000000000000000 RSI: ffffffff8b0cb740 RDI: ffffffff8b6e88a0
RBP: 0000000000000293 R08: 0000000000000001 R09: fffffbfff27b4e3e
R10: ffffffff93da71f7 R11: 0000000000000004 R12: 0000000000000002
R13: 0000000000000001 R14: 0000000000000000 R15: ffff88802ec8a978
 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline]
 raw_event_queue_add+0x194/0x220 drivers/usb/gadget/legacy/raw_gadget.c:84
 raw_queue_event drivers/usb/gadget/legacy/raw_gadget.c:239 [inline]
 gadget_disconnect+0x5a/0x130 drivers/usb/gadget/legacy/raw_gadget.c:387
 usb_gadget_disconnect_locked+0x20a/0x4b0 drivers/usb/gadget/udc/core.c:783
 gadget_unbind_driver+0xd7/0x4e0 drivers/usb/gadget/udc/core.c:1652
 device_remove+0xc8/0x170 drivers/base/dd.c:567
 __device_release_driver drivers/base/dd.c:1272 [inline]
 device_release_driver_internal+0x44a/0x610 drivers/base/dd.c:1295
 driver_detach+0xd8/0x1b0 drivers/base/dd.c:1358
 bus_remove_driver+0x13b/0x2c0 drivers/base/bus.c:735
 driver_unregister+0x76/0xb0 drivers/base/driver.c:274
 usb_gadget_unregister_driver+0x49/0x70 drivers/usb/gadget/udc/core.c:1717
 raw_release+0x1a9/0x2f0 drivers/usb/gadget/legacy/raw_gadget.c:462
 __fput+0x270/0xb80 fs/file_table.c:422
 __fput_sync+0x47/0x50 fs/file_table.c:507
 __do_sys_close fs/open.c:1556 [inline]
 __se_sys_close fs/open.c:1541 [inline]
 __x64_sys_close+0x86/0x100 fs/open.c:1541
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x6d/0x75
RIP: 0033:0x7f5e1b07cd5a
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24
RSP: 002b:00007ffc7d800210 EFLAGS: 00000293
 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f5e1b07cd5a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000000000032 R08: 0000001b30720000 R09: 000000000000005b
R10: 000000008ad24e88 R11: 0000000000000293 R12: 00007f5e1ac00b78
R13: ffffffffffffffff R14: 00007f5e1ac00000 R15: 0000000000028427
 </TASK>
vkms_vblank_simulate: vblank timer overrun
vkms_vblank_simulate: vblank timer overrun
vkms_vblank_simulate: vblank timer overrun
----------------
Code disassembly (best guess):
   0:	f5                   	cmc
   1:	53                   	push   %rbx
   2:	48 8b 74 24 10       	mov    0x10(%rsp),%rsi
   7:	48 89 fb             	mov    %rdi,%rbx
   a:	48 83 c7 18          	add    $0x18,%rdi
   e:	e8 a6 3f 95 f6       	call   0xf6953fb9
  13:	48 89 df             	mov    %rbx,%rdi
  16:	e8 0e bb 95 f6       	call   0xf695bb29
  1b:	f7 c5 00 02 00 00    	test   $0x200,%ebp
  21:	75 23                	jne    0x46
  23:	9c                   	pushf
  24:	58                   	pop    %rax
  25:	f6 c4 02             	test   $0x2,%ah
  28:	75 37                	jne    0x61
* 2a:	bf 01 00 00 00       	mov    $0x1,%edi <-- trapping instruction
  2f:	e8 95 08 87 f6       	call   0xf68708c9
  34:	65 8b 05 e6 d0 2d 75 	mov    %gs:0x752dd0e6(%rip),%eax        # 0x752dd121
  3b:	85 c0                	test   %eax,%eax
  3d:	74 16                	je     0x55
  3f:	5b                   	pop    %rbx

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/07 20:29 upstream fe46a7dd189e ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: workqueue leaked atomic, lock or RCU: syz-executor[NUM]
* Struck through repros no longer work on HEAD.