syzbot


INFO: task hung in imon_probe (3)

Status: auto-closed as invalid on 2022/05/11 23:40
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 290d, last: 290d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in imon_probe 3 428d 429d 0/24 auto-closed as invalid on 2021/12/25 07:23
upstream INFO: task hung in imon_probe (2) 1 332d 332d 0/24 closed as invalid on 2022/02/08 09:50

Sample crash report:
INFO: task kworker/0:7:3684 blocked for more than 143 seconds.
      Not tainted 5.17.0-rc3-syzkaller-00048-ge3c85076d7a6 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:7     state:D stack:20024 pid: 3684 ppid:     2 flags:0x00004000
Workqueue: usb_hub_wq hub_event
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4986 [inline]
 __schedule+0x926/0x1080 kernel/sched/core.c:6295
 schedule+0x12b/0x1f0 kernel/sched/core.c:6368
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6427
 __mutex_lock_common+0xe9f/0x2490 kernel/locking/mutex.c:673
 __mutex_lock kernel/locking/mutex.c:733 [inline]
 mutex_lock_nested+0x1a/0x20 kernel/locking/mutex.c:785
 imon_probe+0x11c/0x3240 drivers/media/rc/imon.c:2420
 usb_probe_interface+0x633/0xb40 drivers/usb/core/driver.c:396
 call_driver_probe+0x96/0x250
 really_probe+0x222/0x9f0 drivers/base/dd.c:596
 __driver_probe_device+0x1f8/0x3e0 drivers/base/dd.c:752
 driver_probe_device+0x50/0x240 drivers/base/dd.c:782
 __device_attach_driver+0x1e1/0x3b0 drivers/base/dd.c:899
 bus_for_each_drv+0x18a/0x210 drivers/base/bus.c:427
 __device_attach+0x310/0x560 drivers/base/dd.c:970
 bus_probe_device+0xb8/0x1f0 drivers/base/bus.c:487
 device_add+0x11c8/0x16d0 drivers/base/core.c:3405
 usb_set_configuration+0x1a86/0x2100 drivers/usb/core/message.c:2170
 usb_generic_driver_probe+0x83/0x140 drivers/usb/core/generic.c:238
 usb_probe_device+0x13a/0x260 drivers/usb/core/driver.c:293
 call_driver_probe+0x96/0x250
 really_probe+0x222/0x9f0 drivers/base/dd.c:596
 __driver_probe_device+0x1f8/0x3e0 drivers/base/dd.c:752
 driver_probe_device+0x50/0x240 drivers/base/dd.c:782
 __device_attach_driver+0x1e1/0x3b0 drivers/base/dd.c:899
 bus_for_each_drv+0x18a/0x210 drivers/base/bus.c:427
 __device_attach+0x310/0x560 drivers/base/dd.c:970
 bus_probe_device+0xb8/0x1f0 drivers/base/bus.c:487
 device_add+0x11c8/0x16d0 drivers/base/core.c:3405
 usb_new_device+0x108a/0x1940 drivers/usb/core/hub.c:2566
 hub_port_connect+0x100b/0x2910 drivers/usb/core/hub.c:5358
 hub_port_connect_change+0x5f9/0xc20 drivers/usb/core/hub.c:5502
 port_event+0xca0/0x13e0 drivers/usb/core/hub.c:5660
 hub_event+0x4ed/0xe40 drivers/usb/core/hub.c:5742
 process_one_work+0x850/0x1130 kernel/workqueue.c:2307
 worker_thread+0xab1/0x1300 kernel/workqueue.c:2454
 kthread+0x2a3/0x2d0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30
 </TASK>
INFO: task syz-executor.2:4813 blocked for more than 143 seconds.
      Not tainted 5.17.0-rc3-syzkaller-00048-ge3c85076d7a6 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:26544 pid: 4813 ppid:  3629 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4986 [inline]
 __schedule+0x926/0x1080 kernel/sched/core.c:6295
 schedule+0x12b/0x1f0 kernel/sched/core.c:6368
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6427
 __mutex_lock_common+0xe9f/0x2490 kernel/locking/mutex.c:673
 __mutex_lock kernel/locking/mutex.c:733 [inline]
 mutex_lock_nested+0x1a/0x20 kernel/locking/mutex.c:785
 misc_open+0x57/0x3c0 drivers/char/misc.c:107
 chrdev_open+0x5fb/0x680 fs/char_dev.c:414
 do_dentry_open+0x78b/0x1020 fs/open.c:824
 do_open fs/namei.c:3476 [inline]
 path_openat+0x273b/0x36a0 fs/namei.c:3609
 do_filp_open+0x277/0x4f0 fs/namei.c:3636
 do_sys_openat2+0x13b/0x500 fs/open.c:1214
 do_sys_open fs/open.c:1230 [inline]
 __do_sys_openat fs/open.c:1246 [inline]
 __se_sys_openat fs/open.c:1241 [inline]
 __x64_sys_openat+0x243/0x290 fs/open.c:1241
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fd8eaef7f74
RSP: 002b:00007fd8e98b8020 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fd8eb057f60 RCX: 00007fd8eaef7f74
RDX: 0000000000000002 RSI: 00007fd8eaf9deda RDI: 00000000ffffff9c
RBP: 00007fd8eaf9deda R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002
R13: 0000000000000000 R14: 0000000020000000 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.0:4864 blocked for more than 144 seconds.
      Not tainted 5.17.0-rc3-syzkaller-00048-ge3c85076d7a6 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:27088 pid: 4864 ppid:  3628 flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4986 [inline]
 __schedule+0x926/0x1080 kernel/sched/core.c:6295
 schedule+0x12b/0x1f0 kernel/sched/core.c:6368
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6427
 __mutex_lock_common+0xe9f/0x2490 kernel/locking/mutex.c:673
 __mutex_lock kernel/locking/mutex.c:733 [inline]
 mutex_lock_nested+0x1a/0x20 kernel/locking/mutex.c:785
 misc_open+0x57/0x3c0 drivers/char/misc.c:107
 chrdev_open+0x5fb/0x680 fs/char_dev.c:414
 do_dentry_open+0x78b/0x1020 fs/open.c:824
 do_open fs/namei.c:3476 [inline]
 path_openat+0x273b/0x36a0 fs/namei.c:3609
 do_filp_open+0x277/0x4f0 fs/namei.c:3636
 do_sys_openat2+0x13b/0x500 fs/open.c:1214
 do_sys_open fs/open.c:1230 [inline]
 __do_sys_openat fs/open.c:1246 [inline]
 __se_sys_openat fs/open.c:1241 [inline]
 __x64_sys_openat+0x243/0x290 fs/open.c:1241
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f268cad1f74
RSP: 002b:00007f268b471020 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f268cc32030 RCX: 00007f268cad1f74
RDX: 0000000000000002 RSI: 00007f268cb77eda RDI: 00000000ffffff9c
RBP: 00007f268cb77eda R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002
R13: 0000000000000000 R14: 0000000020000000 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffffffff8cb1db60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
6 locks held by kworker/1:3/3259:
 #0: ffff8880123a3938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x7c7/0x1130
 #1: ffffc90002c5fd20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x805/0x1130 kernel/workqueue.c:2282
 #2: ffff888147b5c220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:767 [inline]
 #2: ffff888147b5c220 (&dev->mutex){....}-{3:3}, at: hub_event+0x1b2/0xe40 drivers/usb/core/hub.c:5688
 #3: ffff88801934c220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:767 [inline]
 #3: ffff88801934c220 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x560 drivers/base/dd.c:945
 #4: ffff8880413ba1a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:767 [inline]
 #4: ffff8880413ba1a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x560 drivers/base/dd.c:945
 #5: ffffffff8d73d008 (driver_lock){+.+.}-{3:3}, at: imon_probe+0x11c/0x3240 drivers/media/rc/imon.c:2420
2 locks held by getty/3273:
 #0: ffff88814abc5098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc90002b662e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6c5/0x1c60 drivers/tty/n_tty.c:2077
3 locks held by udevd/3646:
 #0: ffff888018f8d488 (&of->mutex){+.+.}-{3:3}, at: kernfs_file_read_iter fs/kernfs/file.c:203 [inline]
 #0: ffff888018f8d488 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_read_iter+0x19b/0x580 fs/kernfs/file.c:242
 #1: ffff88801a045830 (kn->active#56){++++}-{0:0}, at: kernfs_file_read_iter fs/kernfs/file.c:204 [inline]
 #1: ffff88801a045830 (kn->active#56){++++}-{0:0}, at: kernfs_fop_read_iter+0x1b3/0x580 fs/kernfs/file.c:242
 #2: ffff88801934c220 (&dev->mutex){....}-{3:3}, at: device_lock_interruptible include/linux/device.h:772 [inline]
 #2: ffff88801934c220 (&dev->mutex){....}-{3:3}, at: read_descriptors+0x33/0x3a0 drivers/usb/core/sysfs.c:873
6 locks held by kworker/0:7/3684:
 #0: ffff8880123a3938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x7c7/0x1130
 #1: ffffc90002bbfd20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x805/0x1130 kernel/workqueue.c:2282
 #2: ffff88801e308220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:767 [inline]
 #2: ffff88801e308220 (&dev->mutex){....}-{3:3}, at: hub_event+0x1b2/0xe40 drivers/usb/core/hub.c:5688
 #3: ffff888040edd220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:767 [inline]
 #3: ffff888040edd220 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x560 drivers/base/dd.c:945
 #4: ffff88807811f1a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:767 [inline]
 #4: ffff88807811f1a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x560 drivers/base/dd.c:945
 #5: ffffffff8d73d008 (driver_lock){+.+.}-{3:3}, at: imon_probe+0x11c/0x3240 drivers/media/rc/imon.c:2420
3 locks held by udevd/3839:
 #0: ffff88807da42888 (&of->mutex){+.+.}-{3:3}, at: kernfs_file_read_iter fs/kernfs/file.c:203 [inline]
 #0: ffff88807da42888 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_read_iter+0x19b/0x580 fs/kernfs/file.c:242
 #1: ffff888074781da0 (kn->active#56){++++}-{0:0}, at: kernfs_file_read_iter fs/kernfs/file.c:204 [inline]
 #1: ffff888074781da0 (kn->active#56){++++}-{0:0}, at: kernfs_fop_read_iter+0x1b3/0x580 fs/kernfs/file.c:242
 #2: ffff888040edd220 (&dev->mutex){....}-{3:3}, at: device_lock_interruptible include/linux/device.h:772 [inline]
 #2: ffff888040edd220 (&dev->mutex){....}-{3:3}, at: read_descriptors+0x33/0x3a0 drivers/usb/core/sysfs.c:873
1 lock held by syz-executor.2/4813:
 #0: ffffffff8d228d48 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x57/0x3c0 drivers/char/misc.c:107
1 lock held by syz-executor.0/4864:
 #0: ffffffff8d228d48 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x57/0x3c0 drivers/char/misc.c:107
2 locks held by syz-executor.5/4823:
 #0: ffffffff8d228d48 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x57/0x3c0 drivers/char/misc.c:107
 #1: ffffffff8c9d5408 (system_transition_mutex){+.+.}-{3:3}, at: snapshot_open+0x23/0x260 kernel/power/user.c:54

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

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.17.0-rc3-syzkaller-00048-ge3c85076d7a6 #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+0x1dc/0x2d8 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x45f/0x490 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x16a/0x280 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
 watchdog+0xc82/0xcd0 kernel/hung_task.c:369
 kthread+0x2a3/0x2d0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 59 Comm: kworker/u4:3 Not tainted 5.17.0-rc3-syzkaller-00048-ge3c85076d7a6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: phy10 ieee80211_iface_work
RIP: 0010:current_gfp_context include/linux/sched/mm.h:187 [inline]
RIP: 0010:fs_reclaim_acquire+0x25/0x110 mm/page_alloc.c:4565
Code: d1 53 a0 ff 90 55 53 89 fd 65 48 8b 1c 25 80 6f 02 00 48 83 c3 2c 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 8a 04 08 <84> c0 0f 85 c3 00 00 00 8b 03 a9 00 00 0c 10 75 7e a9 00 08 00 00
RSP: 0018:ffffc90001a3f680 EFLAGS: 00000a07
RAX: 1ffff11002f6d300 RBX: ffff888017b69d2c RCX: dffffc0000000000
RDX: ffffc90001a3f4b8 RSI: 0000000000000a20 RDI: 0000000000000a20
RBP: 0000000000000a20 R08: 000000000000000a R09: ffffc90001a3f3d0
R10: fffff52000347e68 R11: 0000000000000000 R12: 0000000000000028
R13: ffff888011441640 R14: 0000000000000028 R15: 0000000000000a20
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0003e4000 CR3: 000000000c88e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 might_alloc include/linux/sched/mm.h:253 [inline]
 slab_pre_alloc_hook mm/slab.h:705 [inline]
 slab_alloc_node mm/slub.c:3144 [inline]
 slab_alloc mm/slub.c:3238 [inline]
 __kmalloc+0x65/0x380 mm/slub.c:4420
 kmalloc include/linux/slab.h:586 [inline]
 ieee802_11_parse_elems_crc+0x132/0x1040 net/mac80211/util.c:1495
 ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2228 [inline]
 ieee80211_bss_info_update+0x80e/0xbe0 net/mac80211/scan.c:212
 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+0x1690/0x2b30 net/mac80211/ibss.c:1639
 ieee80211_iface_process_skb net/mac80211/iface.c:1527 [inline]
 ieee80211_iface_work+0x713/0xca0 net/mac80211/iface.c:1581
 process_one_work+0x850/0x1130 kernel/workqueue.c:2307
 worker_thread+0xab1/0x1300 kernel/workqueue.c:2454
 kthread+0x2a3/0x2d0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30
 </TASK>
----------------
Code disassembly (best guess):
   0:	d1 53 a0             	rcll   -0x60(%rbx)
   3:	ff 90 55 53 89 fd    	callq  *-0x276acab(%rax)
   9:	65 48 8b 1c 25 80 6f 	mov    %gs:0x26f80,%rbx
  10:	02 00
  12:	48 83 c3 2c          	add    $0x2c,%rbx
  16:	48 89 d8             	mov    %rbx,%rax
  19:	48 c1 e8 03          	shr    $0x3,%rax
  1d:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  24:	fc ff df
  27:	8a 04 08             	mov    (%rax,%rcx,1),%al
* 2a:	84 c0                	test   %al,%al <-- trapping instruction
  2c:	0f 85 c3 00 00 00    	jne    0xf5
  32:	8b 03                	mov    (%rbx),%eax
  34:	a9 00 00 0c 10       	test   $0x100c0000,%eax
  39:	75 7e                	jne    0xb9
  3b:	a9 00 08 00 00       	test   $0x800,%eax

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/02/10 23:39 upstream e3c85076d7a6 0b33604d .config log report info INFO: task hung in imon_probe
* Struck through repros no longer work on HEAD.