syzbot


BUG: scheduling while atomic in msleep

Status: premoderation: reported on 2024/04/12 00:50
Reported-by: syzbot+2c48e6017c77bd09f5fd@syzkaller.appspotmail.com
First crash: 70d, last: 70d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: scheduling while atomic in msleep net C done 40 512d 520d 22/27 fixed on 2023/06/08 14:41

Sample crash report:
BUG: scheduling while atomic: kworker/0:2/21921/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff84fdac15>] do_wait_for_common kernel/sched/completion.c:86 [inline]
[<ffffffff84fdac15>] __wait_for_common kernel/sched/completion.c:106 [inline]
[<ffffffff84fdac15>] wait_for_common+0x3a5/0x640 kernel/sched/completion.c:117
CPU: 0 PID: 21921 Comm: kworker/0:2 Tainted: G        W          6.1.75-syzkaller-00017-gca4095789fda #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: usb_hub_wq hub_event
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
 dump_stack+0x15/0x1b lib/dump_stack.c:113
 __schedule_bug+0x195/0x260 kernel/sched/core.c:5960
 schedule_debug kernel/sched/core.c:5987 [inline]
 __schedule+0xcf7/0x1550 kernel/sched/core.c:6622
 schedule+0xc3/0x180 kernel/sched/core.c:6805
 schedule_timeout+0x18c/0x380 kernel/time/timer.c:1941
 schedule_timeout_uninterruptible kernel/time/timer.c:1975 [inline]
 msleep+0x68/0xa0 kernel/time/timer.c:2097
 hub_port_reset+0x179e/0x1c10 drivers/usb/core/hub.c:3102
 hub_port_init+0x9ff/0x2540 drivers/usb/core/hub.c:4994
 hub_port_connect drivers/usb/core/hub.c:5440 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5651 [inline]
 port_event drivers/usb/core/hub.c:5811 [inline]
 hub_event+0x29d8/0x4830 drivers/usb/core/hub.c:5893
 process_one_work+0x73d/0xcb0 kernel/workqueue.c:2299
 worker_thread+0xa60/0x1260 kernel/workqueue.c:2446
 kthread+0x26d/0x300 kernel/kthread.c:386
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
usb 3-1: device descriptor read/64, error -71
BUG: scheduling while atomic: kworker/0:2/21921/0x00000002
Modules linked in:
Preemption disabled at:
[<ffffffff852000ec>] __local_bh_disable_ip include/linux/bottom_half.h:13 [inline]
[<ffffffff852000ec>] softirq_handle_begin kernel/softirq.c:436 [inline]
[<ffffffff852000ec>] __do_softirq+0xec/0x661 kernel/softirq.c:591
CPU: 0 PID: 21921 Comm: kworker/0:2 Tainted: G        W          6.1.75-syzkaller-00017-gca4095789fda #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: usb_hub_wq hub_event
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
 dump_stack+0x15/0x1b lib/dump_stack.c:113
 __schedule_bug+0x195/0x260 kernel/sched/core.c:5960
 schedule_debug kernel/sched/core.c:5987 [inline]
 __schedule+0xcf7/0x1550 kernel/sched/core.c:6622
 schedule+0xc3/0x180 kernel/sched/core.c:6805
 schedule_timeout+0x18c/0x380 kernel/time/timer.c:1941
 do_wait_for_common kernel/sched/completion.c:85 [inline]
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common+0x39a/0x640 kernel/sched/completion.c:117
 wait_for_completion_timeout+0xe/0x10 kernel/sched/completion.c:157
 usb_start_wait_urb+0x177/0x350 drivers/usb/core/message.c:63
 usb_internal_control_msg drivers/usb/core/message.c:102 [inline]
 usb_control_msg+0x2ad/0x4c0 drivers/usb/core/message.c:153
 get_bMaxPacketSize0+0x21a/0x620 drivers/usb/core/hub.c:4783
 hub_port_init+0x988/0x2540 drivers/usb/core/hub.c:4985
 hub_port_connect drivers/usb/core/hub.c:5440 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5651 [inline]
 port_event drivers/usb/core/hub.c:5811 [inline]
 hub_event+0x29d8/0x4830 drivers/usb/core/hub.c:5893
 process_one_work+0x73d/0xcb0 kernel/workqueue.c:2299
 worker_thread+0xa60/0x1260 kernel/workqueue.c:2446
 kthread+0x26d/0x300 kernel/kthread.c:386
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
usb 3-1: device descriptor read/64, error -71
usb usb3-port1: attempt power cycle
usb 3-1: new high-speed USB device number 122 using dummy_hcd
usb 3-1: Using ep0 maxpacket: 16
usb 3-1: config index 0 descriptor too short (expected 1051, got 27)
usb 3-1: config 0 interface 0 altsetting 0 endpoint 0x88 has an invalid bInterval 0, changing to 7
usb 3-1: New USB device found, idVendor=06f8, idProduct=b000, bcdDevice=7d.f9
usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 3-1: Product: syz
usb 3-1: Manufacturer: syz
usb 3-1: SerialNumber: syz
usb 3-1: config 0 descriptor??

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/12 00:49 android14-6.1 ca4095789fda 95ed9ece .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: scheduling while atomic in msleep
* Struck through repros no longer work on HEAD.