syzbot


INFO: task hung in usbdev_release

Status: closed as invalid on 2022/02/07 19:19
Subsystems: usb
[Documentation on labels]
First crash: 1237d, last: 830d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in usbdev_release (2) usb C error 53 13d 231d 0/26 upstream: reported C repro on 2023/08/09 15:47
linux-5.15 INFO: task hung in usbdev_release 1 30d 30d 0/3 upstream: reported on 2024/02/26 22:03
linux-4.19 INFO: task hung in usbdev_release 1 1250d 1250d 0/1 auto-closed as invalid on 2021/02/21 22:17
linux-6.1 INFO: task hung in usbdev_release 1 378d 378d 0/3 auto-obsoleted due to no activity on 2023/07/13 23:24
linux-4.19 INFO: task hung in usbdev_release (2) 10 506d 971d 0/1 auto-obsoleted due to no activity on 2023/03/08 04:55
linux-4.14 INFO: task hung in usbdev_release 2 1186d 1249d 0/1 auto-closed as invalid on 2021/04/27 06:36
linux-6.1 INFO: task hung in usbdev_release (2) origin:upstream C 3 12d 193d 0/3 upstream: reported C repro on 2023/09/16 19:39

Sample crash report:
INFO: task syz-executor.5:31699 blocked for more than 143 seconds.
      Not tainted 5.16.0-rc5-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:27552 pid:31699 ppid:  3650 flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4972 [inline]
 __schedule+0xa9a/0x4940 kernel/sched/core.c:6253
 schedule+0xd2/0x260 kernel/sched/core.c:6326
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6385
 __mutex_lock_common kernel/locking/mutex.c:680 [inline]
 __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:740
 device_lock include/linux/device.h:760 [inline]
 usbdev_release+0x83/0x4b0 drivers/usb/core/devio.c:1075
 __fput+0x286/0x9f0 fs/file_table.c:280
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0xc14/0x2b40 kernel/exit.c:832
 do_group_exit+0x125/0x310 kernel/exit.c:929
 get_signal+0x47d/0x2220 kernel/signal.c:2852
 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:868
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f2a337c0e99
RSP: 002b:00007f2a320b2168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 00007f2a338d42a0 RCX: 00007f2a337c0e99
RDX: 0000000020000100 RSI: 000000008038550a RDI: 0000000000000005
RBP: 00007f2a3381aff1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2a33e07b1f R14: 00007f2a320b2300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.0:31687 blocked for more than 143 seconds.
      Not tainted 5.16.0-rc5-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:28152 pid:31687 ppid:  3643 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4972 [inline]
 __schedule+0xa9a/0x4940 kernel/sched/core.c:6253
 schedule+0xd2/0x260 kernel/sched/core.c:6326
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6385
 __mutex_lock_common kernel/locking/mutex.c:680 [inline]
 __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:740
 device_lock include/linux/device.h:760 [inline]
 usbdev_release+0x83/0x4b0 drivers/usb/core/devio.c:1075
 __fput+0x286/0x9f0 fs/file_table.c:280
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x27e/0x290 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fdd41972adb
RSP: 002b:00007fdd42006b80 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007fdd41972adb
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007fdd41ad4960 R08: 0000000000000000 R09: 00007fdd41ad72c0
R10: 0000000000000000 R11: 0000000000000293 R12: 00000000000ac7e1
R13: 00007fdd42006c80 R14: 00007fdd41ad2f60 R15: 0000000000000032
 </TASK>

Showing all locks held in the system:
5 locks held by kworker/0:0/5:
 #0: ffff8880129c3538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff8880129c3538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff8880129c3538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline]
 #0: ffff8880129c3538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:635 [inline]
 #0: ffff8880129c3538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:662 [inline]
 #0: ffff8880129c3538 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x896/0x1690 kernel/workqueue.c:2269
 #1: ffffc90000ca7db0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x8ca/0x1690 kernel/workqueue.c:2273
 #2: ffff88801d7fe220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline]
 #2: ffff88801d7fe220 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4460 drivers/usb/core/hub.c:5671
 #3: ffff888147f8f5c0 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3086 [inline]
 #3: ffff888147f8f5c0 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5249 [inline]
 #3: ffff888147f8f5c0 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5497 [inline]
 #3: ffff888147f8f5c0 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5643 [inline]
 #3: ffff888147f8f5c0 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x1e17/0x4460 drivers/usb/core/hub.c:5725
 #4: ffff88801cfdfe68 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5250 [inline]
 #4: ffff88801cfdfe68 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5497 [inline]
 #4: ffff88801cfdfe68 (hcd->address0_mutex){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5643 [inline]
 #4: ffff88801cfdfe68 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_event+0x1e40/0x4460 drivers/usb/core/hub.c:5725
1 lock held by khungtaskd/27:
 #0: ffffffff8bb83de0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458
2 locks held by getty/3279:
 #0: ffff88814ab63098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:252
 #1: ffffc90002b962e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2113
1 lock held by syz-executor.5/31699:
 #0: ffff88801d7fe220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline]
 #0: ffff88801d7fe220 (&dev->mutex){....}-{3:3}, at: usbdev_release+0x83/0x4b0 drivers/usb/core/devio.c:1075
1 lock held by syz-executor.0/31687:
 #0: ffff88801d7fe220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline]
 #0: ffff88801d7fe220 (&dev->mutex){....}-{3:3}, at: usbdev_release+0x83/0x4b0 drivers/usb/core/devio.c:1075

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.16.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
 watchdog+0xc1d/0xf50 kernel/hung_task.c:295
 kthread+0x405/0x4f0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5546 Comm: kworker/u4:7 Not tainted 5.16.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: phy12 ieee80211_iface_work
RIP: 0010:stack_trace_consume_entry+0x87/0x160 kernel/stacktrace.c:89
Code: 81 00 00 00 48 8d 7b 0c 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 <84> d2 0f 85 90 00 00 00 8b 43 0c 85 c0 75 53 48 b8 00 00 00 00 00
RSP: 0018:ffffc900109d7338 EFLAGS: 00000202
RAX: 0000000000000007 RBX: ffffc900109d7410 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81be56de RDI: ffffc900109d741c
RBP: 0000000000000000 R08: ffffffff8e105ea4 R09: 0000000000000001
R10: fffff5200213ae76 R11: 000000000008808a R12: ffffc900109d7410
R13: 0000000000000000 R14: ffff888077629d00 R15: 0000000000000080
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0012e3848 CR3: 00000000740f8000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 arch_stack_walk+0x6d/0xe0 arch/x86/kernel/stacktrace.c:27
 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:122
 kasan_save_stack+0x1e/0x50 mm/kasan/common.c:38
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:434 [inline]
 ____kasan_kmalloc mm/kasan/common.c:513 [inline]
 ____kasan_kmalloc mm/kasan/common.c:472 [inline]
 __kasan_kmalloc+0xa9/0xd0 mm/kasan/common.c:522
 kmalloc include/linux/slab.h:595 [inline]
 kzalloc include/linux/slab.h:724 [inline]
 cfg80211_inform_single_bss_frame_data+0x302/0xee0 net/wireless/scan.c:2397
 cfg80211_inform_bss_frame_data+0xa7/0xb50 net/wireless/scan.c:2458
 ieee80211_bss_info_update+0x35b/0xb30 net/mac80211/scan.c:190
 ieee80211_rx_bss_info net/mac80211/ibss.c:1119 [inline]
 ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1610 [inline]
 ieee80211_ibss_rx_queued_mgmt+0x19cf/0x3130 net/mac80211/ibss.c:1639
 ieee80211_iface_process_skb net/mac80211/iface.c:1468 [inline]
 ieee80211_iface_work+0xa65/0xd00 net/mac80211/iface.c:1522
 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298
 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445
 kthread+0x405/0x4f0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
----------------
Code disassembly (best guess):
   0:	81 00 00 00 48 8d    	addl   $0x8d480000,(%rax)
   6:	7b 0c                	jnp    0x14
   8:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
   f:	fc ff df
  12:	48 89 fa             	mov    %rdi,%rdx
  15:	48 c1 ea 03          	shr    $0x3,%rdx
  19:	0f b6 14 02          	movzbl (%rdx,%rax,1),%edx
  1d:	48 89 f8             	mov    %rdi,%rax
  20:	83 e0 07             	and    $0x7,%eax
  23:	83 c0 03             	add    $0x3,%eax
  26:	38 d0                	cmp    %dl,%al
  28:	7c 08                	jl     0x32
* 2a:	84 d2                	test   %dl,%dl <-- trapping instruction
  2c:	0f 85 90 00 00 00    	jne    0xc2
  32:	8b 43 0c             	mov    0xc(%rbx),%eax
  35:	85 c0                	test   %eax,%eax
  37:	75 53                	jne    0x8c
  39:	48                   	rex.W
  3a:	b8 00 00 00 00       	mov    $0x0,%eax

Crashes (20):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/19 07:34 upstream 3f667b5d4053 44068e19 .config console log report info ci-upstream-kasan-gce INFO: task hung in usbdev_release
2021/12/03 01:40 upstream a51e3ac43ddb 61f86278 .config console log report info ci-upstream-kasan-gce INFO: task hung in usbdev_release
2021/11/30 14:19 upstream d58071a8a76d 80270552 .config console log report info ci-upstream-kasan-gce INFO: task hung in usbdev_release
2021/11/25 15:44 upstream 5f53fa508db0 545ab074 .config console log report info ci-upstream-kasan-gce INFO: task hung in usbdev_release
2021/11/23 18:09 upstream 136057256686 545ab074 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in usbdev_release
2021/11/07 16:20 upstream b5013d084e03 4c1be0be .config console log report info ci-upstream-kasan-gce-selinux-root INFO: task hung in usbdev_release
2021/10/05 18:25 upstream f6274b06e326 0a63fd36 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in usbdev_release
2021/10/03 18:48 upstream 7b66f4393ad4 db0f5787 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in usbdev_release
2021/09/29 16:13 upstream 02d5e016800d be530f6c .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in usbdev_release
2021/09/10 20:41 upstream bf9f243f23e6 5ae8508a .config console log report info ci-upstream-kasan-gce-selinux-root INFO: task hung in usbdev_release
2021/09/09 21:43 upstream a3fa7a101dcf e2776ee4 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in usbdev_release
2021/08/02 01:53 upstream d4affd6b6e81 6c236867 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in usbdev_release
2021/06/22 09:30 upstream 13311e74253f aba2b2fb .config console log report info ci-upstream-kasan-gce INFO: task hung in usbdev_release
2021/06/08 10:36 upstream 614124bea77e b718257f .config console log report info ci-upstream-kasan-gce INFO: task hung in usbdev_release
2021/04/24 13:03 upstream e77a830c8297 17f0b706 .config console log report info ci-upstream-kasan-gce INFO: task hung in usbdev_release
2021/02/26 11:38 upstream 2c87f7a38f93 76f7fc95 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in usbdev_release
2021/10/11 11:07 linux-next d3134eb5de85 838e7e2c .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: task hung in usbdev_release
2020/11/08 20:39 upstream 9dbc1c03eeb5 64069d48 .config console log report info ci-upstream-kasan-gce
2020/11/07 01:03 upstream bf3e76289cd2 64069d48 .config console log report info ci-upstream-kasan-gce-selinux-root
2021/01/04 07:57 linux-next 766eff5a4f6c 79264ae3 .config console log report info ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.