syzbot


INFO: task hung in lru_add_drain_all

Status: upstream: reported C repro on 2020/07/04 23:22
Reported-by: syzbot+1053252c4289b5f73548@syzkaller.appspotmail.com
First crash: 841d, last: 527d

Cause bisection: introduced by (bisect log) [ignored commit]:
commit f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10
Author: Andrey Konovalov <andreyknvl@google.com>
Date: Mon Feb 24 16:13:03 2020 +0000

  usb: gadget: add raw-gadget interface

Crash: INFO: task hung in synchronize_rcu (log)
Repro: C syz .config

Fix bisection: the fix commit could be any of (bisect log):
  c2568c8c9e63 Merge branch 'net-Constify-struct-genl_small_ops'
  a729b8e6ec3d Merge branch 'fixes-for-yt8511-phy-driver'
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in lru_add_drain_all (2) 1 359d 359d 0/1 auto-closed as invalid on 2022/02/09 00:46
linux-4.19 INFO: task hung in lru_add_drain_all 1 609d 609d 0/1 auto-closed as invalid on 2021/06/04 15:54
Patch testing requests:
Created Duration User Patch Repo Result
2022/10/02 22:30 19m linux-next error
2022/09/13 10:27 18m net-next OK log
2022/09/13 06:27 18m net-next OK log

Sample crash report:
INFO: task khugepaged:1160 blocked for more than 143 seconds.
      Not tainted 5.8.0-rc3-next-20200629-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
khugepaged      D28584  1160      2 0x00004000
Call Trace:
 context_switch kernel/sched/core.c:3445 [inline]
 __schedule+0x8b4/0x1e80 kernel/sched/core.c:4169
 schedule+0xd0/0x2a0 kernel/sched/core.c:4244
 schedule_timeout+0x1d8/0x250 kernel/time/timer.c:1873
 do_wait_for_common kernel/sched/completion.c:85 [inline]
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common kernel/sched/completion.c:117 [inline]
 wait_for_completion+0x163/0x260 kernel/sched/completion.c:138
 __flush_work+0x51f/0xab0 kernel/workqueue.c:3046
 lru_add_drain_all+0x3ca/0x590 mm/swap.c:808
 khugepaged_do_scan mm/khugepaged.c:2177 [inline]
 khugepaged+0x10b/0x5a10 mm/khugepaged.c:2238
 kthread+0x3b5/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Showing all locks held in the system:
6 locks held by kworker/0:0/5:
1 lock held by khungtaskd/1150:
 #0: ffffffff89bc3000 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:5779
1 lock held by khugepaged/1160:
 #0: ffffffff89c48448 (lock#4){+.+.}-{3:3}, at: lru_add_drain_all+0x59/0x590 mm/swap.c:779
1 lock held by in:imklog/6654:
 #0: ffff8880935425f0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:928

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

NMI backtrace for cpu 1
CPU: 1 PID: 1150 Comm: khungtaskd Not tainted 5.8.0-rc3-next-20200629-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x18f/0x20d lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x70/0xb1 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1b3/0x223 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:147 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:253 [inline]
 watchdog+0xd89/0xf30 kernel/hung_task.c:339
 kthread+0x3b5/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 5.8.0-rc3-next-20200629-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
RIP: 0010:hid_apply_multiplier drivers/hid/hid-core.c:1106 [inline]
RIP: 0010:hid_setup_resolution_multiplier+0x3a3/0x9b0 drivers/hid/hid-core.c:1163
Code: b6 14 38 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 df 04 00 00 45 8b 74 24 04 bf 02 00 00 00 44 89 f6 e8 6d 62 90 fb <41> 83 fe 02 0f 85 74 ff ff ff 4c 89 24 24 e8 da 65 90 fb 49 8d 7d
RSP: 0018:ffffc90000cbec18 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff85e38373
RDX: 0000000000000000 RSI: ffff8880a9598140 RDI: 0000000000000005
RBP: ffff88809f43e800 R08: 0000000000000001 R09: ffffc900015ee0cc
R10: 0000000000000002 R11: 0000000000000000 R12: ffff88809f43e800
R13: ffff888085800000 R14: 0000000000000000 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055726aabf328 CR3: 00000000a0102000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 hid_open_report+0x438/0x640 drivers/hid/hid-core.c:1274
 hid_parse include/linux/hid.h:1017 [inline]
 ms_probe+0x12d/0x4b0 drivers/hid/hid-microsoft.c:388
 hid_device_probe+0x2bd/0x3f0 drivers/hid/hid-core.c:2263
 really_probe+0x282/0x8a0 drivers/base/dd.c:525
 driver_probe_device+0xfe/0x1d0 drivers/base/dd.c:701
 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:807
 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:431
 __device_attach+0x28d/0x3f0 drivers/base/dd.c:873
 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491
 device_add+0xacf/0x1b00 drivers/base/core.c:2680
 hid_add_device+0x344/0x9b0 drivers/hid/hid-core.c:2419
 usbhid_probe+0xac8/0xff0 drivers/hid/usbhid/hid-core.c:1412
 usb_probe_interface+0x2f7/0x780 drivers/usb/core/driver.c:374
 really_probe+0x282/0x8a0 drivers/base/dd.c:525
 driver_probe_device+0xfe/0x1d0 drivers/base/dd.c:701
 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:807
 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:431
 __device_attach+0x28d/0x3f0 drivers/base/dd.c:873
 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491
 device_add+0xacf/0x1b00 drivers/base/core.c:2680
 usb_set_configuration+0xef6/0x17a0 drivers/usb/core/message.c:2032
 usb_generic_driver_probe+0xba/0xf2 drivers/usb/core/generic.c:241
 usb_probe_device+0xc6/0x210 drivers/usb/core/driver.c:272
 really_probe+0x282/0x8a0 drivers/base/dd.c:525
 driver_probe_device+0xfe/0x1d0 drivers/base/dd.c:701
 __device_attach_driver+0x1c2/0x220 drivers/base/dd.c:807
 bus_for_each_drv+0x15f/0x1e0 drivers/base/bus.c:431
 __device_attach+0x28d/0x3f0 drivers/base/dd.c:873
 bus_probe_device+0x1e4/0x290 drivers/base/bus.c:491
 device_add+0xacf/0x1b00 drivers/base/core.c:2680
 usb_new_device.cold+0x748/0x103b drivers/usb/core/hub.c:2554
 hub_port_connect drivers/usb/core/hub.c:5208 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5348 [inline]
 port_event drivers/usb/core/hub.c:5494 [inline]
 hub_event+0x2033/0x3e40 drivers/usb/core/hub.c:5576
 process_one_work+0x94c/0x1670 kernel/workqueue.c:2269
 worker_thread+0x64c/0x1120 kernel/workqueue.c:2415
 kthread+0x3b5/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 0.000 msecs

Crashes (22):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2020/06/30 23:01 linux-next c28e58ee9dad 917afeaa .config log report syz C
ci-upstream-net-kasan-gce 2020/10/06 00:06 net-next c2568c8c9e63 1880b4a9 .config log report syz C
ci-upstream-net-kasan-gce 2020/10/03 16:31 net-next 678cdd496708 2653fa43 .config log report syz C
ci-upstream-kasan-gce-selinux-root 2021/04/08 05:26 upstream 3a22981230f9 6a81331a .config log report info INFO: task hung in lru_add_drain_all
ci-upstream-kasan-gce-root 2021/04/02 22:35 upstream 1678e493d530 6a81331a .config log report info INFO: task hung in lru_add_drain_all
ci-upstream-bpf-kasan-gce 2021/02/03 04:10 bpf 3aaf0a27ffc2 624dad51 .config log report info INFO: task hung in lru_add_drain_all
ci-upstream-bpf-kasan-gce 2021/02/01 10:01 bpf 06cc6e5dc659 fc9fd31e .config log report info INFO: task hung in lru_add_drain_all
ci-upstream-bpf-next-kasan-gce 2021/04/27 14:37 bpf-next 927315041828 805b5003 .config log report info INFO: task hung in lru_add_drain_all
ci-upstream-bpf-next-kasan-gce 2021/01/30 23:03 bpf-next 61ca36c8c4eb fc9fd31e .config log report info INFO: task hung in lru_add_drain_all
ci-upstream-linux-next-kasan-gce-root 2021/02/26 19:05 linux-next d01f2f7e3557 4c37c133 .config log report info INFO: task hung in lru_add_drain_all
ci-upstream-kasan-gce-root 2020/12/08 08:23 upstream cd796ed33450 51a9082e .config log report info
ci-upstream-kasan-gce 2020/07/21 11:56 upstream 4fa640dc5230 d88894e6 .config log report
ci-upstream-kasan-gce 2020/06/17 09:49 upstream 7ae77150d94d b9f3810b .config log report
ci-upstream-bpf-next-kasan-gce 2021/01/01 18:55 bpf-next 482ec343f40a 79264ae3 .config log report info
ci-upstream-net-kasan-gce 2020/10/03 13:37 net-next 678cdd496708 2653fa43 .config log report info
ci-upstream-net-kasan-gce 2020/10/03 05:25 net-next 678cdd496708 2653fa43 .config log report info
ci-upstream-net-kasan-gce 2020/09/20 09:26 net-next a5a3303e26cd 53ce8104 .config log report info
ci-upstream-net-kasan-gce 2020/09/20 04:03 net-next a5a3303e26cd 53ce8104 .config log report info
ci-upstream-net-kasan-gce 2020/09/15 13:44 net-next ed6d9b022813 6989d6f6 .config log report info
ci-upstream-net-kasan-gce 2020/08/07 13:19 net-next bfdd5aaa54b0 cb436c69 .config log report
ci-upstream-net-kasan-gce 2020/07/16 08:05 net-next 8635764bcf0f f3bec699 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/09/28 18:21 linux-next 663b07a45f97 6bfdbe89 .config log report info
* Struck through repros no longer work on HEAD.