syzbot


INFO: task hung in hwrng_register (2)

Status: closed as dup on 2022/06/10 08:34
Subsystems: crypto
[Documentation on labels]
Reported-by: syzbot+23fb83d1d9fb5e6c54b3@syzkaller.appspotmail.com
First crash: 717d, last: 572d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
upstream boot error: INFO: task hung in hwrng_register crypto 23 709d 716d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] INFO: task hung in hwrng_register (2) 1 (2) 2022/06/10 08:34
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in hwrng_register crypto usb syz unreliable done 1 951d 1007d 20/26 fixed on 2022/03/08 16:11
linux-5.15 INFO: task hung in hwrng_register 106 303d 437d 0/3 auto-obsoleted due to no activity on 2023/09/30 16:06

Sample crash report:
INFO: task kworker/1:3:3673 blocked for more than 143 seconds.
      Not tainted 6.1.0-rc2-syzkaller-00078-g98555239e4c3 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:3     state:D stack:19288 pid:3673  ppid:2      flags:0x00004000
Workqueue: usb_hub_wq hub_event
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5191 [inline]
 __schedule+0x8fc/0xda0 kernel/sched/core.c:6503
 schedule+0xcb/0x190 kernel/sched/core.c:6579
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6638
 __mutex_lock_common+0xecf/0x26c0 kernel/locking/mutex.c:679
 __mutex_lock kernel/locking/mutex.c:747 [inline]
 mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799
 add_early_randomness drivers/char/hw_random/core.c:69 [inline]
 hwrng_register+0x400/0x6e0 drivers/char/hw_random/core.c:585
 chaoskey_probe+0x7f0/0xb10 drivers/usb/misc/chaoskey.c:205
 usb_probe_interface+0x66e/0xb60 drivers/usb/core/driver.c:396
 call_driver_probe+0x96/0x250
 really_probe+0x24c/0x9f0 drivers/base/dd.c:639
 __driver_probe_device+0x1f4/0x3f0 drivers/base/dd.c:778
 driver_probe_device+0x50/0x240 drivers/base/dd.c:808
 __device_attach_driver+0x272/0x3c0 drivers/base/dd.c:936
 bus_for_each_drv+0x18a/0x210 drivers/base/bus.c:427
 __device_attach+0x372/0x5a0 drivers/base/dd.c:1008
 bus_probe_device+0xb8/0x1f0 drivers/base/bus.c:487
 device_add+0xb20/0xf90 drivers/base/core.c:3517
 usb_set_configuration+0x1a5f/0x20e0 drivers/usb/core/message.c:2170
 usb_generic_driver_probe+0x83/0x140 drivers/usb/core/generic.c:238
 usb_probe_device+0x131/0x260 drivers/usb/core/driver.c:293
 call_driver_probe+0x96/0x250
 really_probe+0x24c/0x9f0 drivers/base/dd.c:639
 __driver_probe_device+0x1f4/0x3f0 drivers/base/dd.c:778
 driver_probe_device+0x50/0x240 drivers/base/dd.c:808
 __device_attach_driver+0x272/0x3c0 drivers/base/dd.c:936
 bus_for_each_drv+0x18a/0x210 drivers/base/bus.c:427
 __device_attach+0x372/0x5a0 drivers/base/dd.c:1008
 bus_probe_device+0xb8/0x1f0 drivers/base/bus.c:487
 device_add+0xb20/0xf90 drivers/base/core.c:3517
 usb_new_device+0xbc2/0x18b0 drivers/usb/core/hub.c:2573
 hub_port_connect+0x103b/0x2910 drivers/usb/core/hub.c:5353
 hub_port_connect_change+0x619/0xbe0 drivers/usb/core/hub.c:5497
 port_event+0xec6/0x13b0 drivers/usb/core/hub.c:5653
 hub_event+0x5c1/0xd80 drivers/usb/core/hub.c:5735
 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289
 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
INFO: lockdep is turned off.
NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.1.0-rc2-syzkaller-00078-g98555239e4c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 nmi_cpu_backtrace+0x4e3/0x560 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x19b/0x3e0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
 watchdog+0xcf5/0xd40 kernel/hung_task.c:377
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 2959 Comm: klogd Not tainted 6.1.0-rc2-syzkaller-00078-g98555239e4c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0010:memset_erms+0xb/0x10 arch/x86/lib/memset_64.S:65
Code: 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 f3 aa <4c> 89 c8 c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 01 01 01
RSP: 0018:ffffc9000313f358 EFLAGS: 00000202
RAX: ffffc9000313f900 RBX: ffffc9000313f478 RCX: 0000000000000000
RDX: 0000000000000010 RSI: 0000000000000000 RDI: ffffc9000313f4a0
RBP: 1ffffffff1e44c73 R08: dffffc0000000000 R09: ffffc9000313f490
R10: fffff52000627e94 R11: 1ffff92000627e92 R12: ffffc9000313f440
R13: ffffffff8f226398 R14: ffffc9000313f490 R15: 1ffff92000627e89
FS:  00007fc008e2f800(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000200 CR3: 000000002753e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 unwind_next_frame+0xdbc/0x24c0 arch/x86/kernel/unwind_orc.c:546
 arch_stack_walk+0x112/0x140 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x12d/0x1f0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4c/0x70 mm/kasan/common.c:52
 ____kasan_kmalloc mm/kasan/common.c:371 [inline]
 __kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:380
 kasan_kmalloc include/linux/kasan.h:211 [inline]
 __do_kmalloc_node mm/slab_common.c:955 [inline]
 __kmalloc_node_track_caller+0xad/0x1a0 mm/slab_common.c:975
 kmalloc_reserve net/core/skbuff.c:437 [inline]
 __alloc_skb+0x11d/0x620 net/core/skbuff.c:509
 alloc_skb include/linux/skbuff.h:1267 [inline]
 alloc_skb_with_frags+0xb4/0x780 net/core/skbuff.c:6124
 sock_alloc_send_pskb+0x930/0xa70 net/core/sock.c:2719
 unix_dgram_sendmsg+0x5b3/0x2050 net/unix/af_unix.c:1943
 sock_sendmsg_nosec net/socket.c:714 [inline]
 sock_sendmsg net/socket.c:734 [inline]
 __sys_sendto+0x46d/0x5f0 net/socket.c:2117
 __do_sys_sendto net/socket.c:2129 [inline]
 __se_sys_sendto net/socket.c:2125 [inline]
 __x64_sys_sendto+0xda/0xf0 net/socket.c:2125
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fc008fcb0ac
Code: 89 02 48 c7 c0 ff ff ff ff eb b8 0f 1f 00 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 19 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 64 c3 0f 1f 00 55 48 83 ec 20 48 89 54 24 10
RSP: 002b:00007ffe7f3145d8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc008fcb0ac
RDX: 000000000000005d RSI: 00005607a688f860 RDI: 0000000000000003
RBP: 00005607a6887910 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000004000 R11: 0000000000000246 R12: 0000000000000014
R13: 0000000000000001 R14: 00007fc00914677d R15: 00007ffe7f3146e8
 </TASK>

Crashes (21):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/27 04:18 upstream 98555239e4c3 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/11 14:04 upstream 0885eacdc81f 0d5abf15 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/10 18:00 upstream 6bfb56e93bce 0d5abf15 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/10 17:52 upstream 6bfb56e93bce 0d5abf15 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/10 17:00 upstream 6bfb56e93bce 0d5abf15 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/10 16:57 upstream 6bfb56e93bce 0d5abf15 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/08 12:20 upstream e71e60cd74df b2706118 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/07 22:35 upstream e71e60cd74df c8857892 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/06 18:39 upstream f2906aa86338 c8857892 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/06 12:00 upstream f2906aa86338 c8857892 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/06 05:58 upstream 44688ffd111a c8857892 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/05 23:35 upstream 44688ffd111a c8857892 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/05 22:22 upstream 44688ffd111a c8857892 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/04 22:23 upstream 032dcf09e2bf c8857892 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/04 18:01 upstream 032dcf09e2bf c8857892 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/04 14:57 upstream 032dcf09e2bf c8857892 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/04 14:54 upstream 032dcf09e2bf c8857892 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/04 07:16 upstream 032dcf09e2bf c8857892 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/04 06:29 upstream 032dcf09e2bf c8857892 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/04 05:06 upstream 032dcf09e2bf c8857892 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
2022/06/04 03:58 upstream 032dcf09e2bf c8857892 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in hwrng_register
* Struck through repros no longer work on HEAD.