syzbot


INFO: task hung in uevent_show

Status: upstream: reported C repro on 2024/06/12 16:26
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+edd9fe0d3a65b14588d5@syzkaller.appspotmail.com
First crash: 40d, last: 17m
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly usb report (Jul 2024) 0 (1) 2024/07/11 07:30
[syzbot] [usb?] INFO: task hung in uevent_show 0 (1) 2024/06/12 16:26
Cause bisection attempts (1)
Created Duration User Patch Repo Result
2024/06/11 02:40 7h15m bisect linux-next OK (1) job log log
marked invalid by nogikh@google.com

Sample crash report:
INFO: task udevd:2504 blocked for more than 143 seconds.
      Not tainted 6.10.0-rc6-syzkaller-00108-g179264157bba #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:udevd           state:D stack:28144 pid:2504  tgid:2504  ppid:2402   flags:0x00000006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5408 [inline]
 __schedule+0xca6/0x3170 kernel/sched/core.c:6745
 __schedule_loop kernel/sched/core.c:6822 [inline]
 schedule+0xe7/0x350 kernel/sched/core.c:6837
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6894
 __mutex_lock_common kernel/locking/mutex.c:684 [inline]
 __mutex_lock+0x5b8/0x9c0 kernel/locking/mutex.c:752
 device_lock include/linux/device.h:1009 [inline]
 uevent_show+0x188/0x3b0 drivers/base/core.c:2743
 dev_attr_show+0x53/0xe0 drivers/base/core.c:2437
 sysfs_kf_seq_show+0x23e/0x410 fs/sysfs/file.c:59
 seq_read_iter+0x4fa/0x12c0 fs/seq_file.c:230
 kernfs_fop_read_iter+0x41a/0x590 fs/kernfs/file.c:279
 new_sync_read fs/read_write.c:395 [inline]
 vfs_read+0x869/0xbd0 fs/read_write.c:476
 ksys_read+0x12f/0x260 fs/read_write.c:619
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f78d8e0bb6a
RSP: 002b:00007ffea5d83228 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 000055d038346fa0 RCX: 00007f78d8e0bb6a
RDX: 0000000000001000 RSI: 000055d0383629d0 RDI: 0000000000000008
RBP: 000055d038346fa0 R08: 0000000000000008 R09: 0000000000000000
R10: 000000000000010f R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000003fff R14: 00007ffea5d83708 R15: 000000000000000a
 </TASK>

Showing all locks held in the system:
5 locks held by kworker/0:1/9:
1 lock held by khungtaskd/30:
 #0: ffffffff886b4360 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline]
 #0: ffffffff886b4360 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline]
 #0: ffffffff886b4360 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6614
2 locks held by getty/2460:
 #0: ffff888107a870a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffffc900000432f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc8/0x1490 drivers/tty/n_tty.c:2211
4 locks held by udevd/2504:
 #0: ffff8881036bcc30 (&p->lock){+.+.}-{3:3}, at: seq_read_iter+0xde/0x12c0 fs/seq_file.c:182
 #1: ffff888104edb888 (&of->mutex){+.+.}-{3:3}, at: kernfs_seq_start+0x4d/0x240 fs/kernfs/file.c:154
 #2: ffff888111c0ce18 (kn->active){.+.+}-{0:0}, at: kernfs_seq_start+0x71/0x240 fs/kernfs/file.c:155
 #3: ffff8881053f3190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1009 [inline]
 #3: ffff8881053f3190 (&dev->mutex){....}-{3:3}, at: uevent_show+0x188/0x3b0 drivers/base/core.c:2743

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

NMI backtrace for cpu 1
CPU: 1 PID: 30 Comm: khungtaskd Not tainted 6.10.0-rc6-syzkaller-00108-g179264157bba #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114
 nmi_cpu_backtrace+0x27b/0x390 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x29c/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline]
 watchdog+0xf86/0x1240 kernel/hung_task.c:379
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 2384 Comm: syslogd Not tainted 6.10.0-rc6-syzkaller-00108-g179264157bba #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:rcu_read_unlock_sched include/linux/rcupdate.h:892 [inline]
RIP: 0010:pfn_valid include/linux/mmzone.h:2031 [inline]
RIP: 0010:__virt_addr_valid+0x276/0x580 arch/x86/mm/physaddr.c:65
Code: 48 c1 ea 03 80 3c 02 00 0f 85 04 03 00 00 49 8b 6c 24 08 be 08 00 00 00 48 8d 7d 10 e8 d3 48 8f 00 48 0f a3 5d 10 40 0f 92 c5 <e8> c5 e0 3c 00 e8 b0 07 7c 05 31 ff 89 c3 89 c6 e8 b5 db 3c 00 85
RSP: 0018:ffffc9000189f8a8 EFLAGS: 00000202
RAX: 0000000000000000 RBX: 000000011e23a000 RCX: ffffffff811662d9
RDX: ffff888115433a00 RSI: 0000000000000000 RDI: 0000000000000007
RBP: 0000000000000001 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000008 R11: 0000000000000001 R12: ffff88823fff1260
R13: 0000000000000008 R14: 0000000000000000 R15: ffff8881067cdc80
FS:  00007f1f7a9f4380(0000) GS:ffff8881f6400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4d18da06c0 CR3: 0000000115600000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 check_heap_object mm/usercopy.c:189 [inline]
 __check_object_size mm/usercopy.c:251 [inline]
 __check_object_size+0x139/0x720 mm/usercopy.c:213
 check_object_size include/linux/thread_info.h:215 [inline]
 check_copy_size include/linux/thread_info.h:251 [inline]
 copy_to_iter include/linux/uio.h:195 [inline]
 simple_copy_to_iter+0x41/0x80 net/core/datagram.c:513
 __skb_datagram_iter+0x124/0x880 net/core/datagram.c:401
 skb_copy_datagram_iter+0xac/0x250 net/core/datagram.c:527
 skb_copy_datagram_msg include/linux/skbuff.h:3983 [inline]
 __unix_dgram_recvmsg+0x45b/0xdd0 net/unix/af_unix.c:2432
 unix_dgram_recvmsg+0xd0/0x110 net/unix/af_unix.c:2490
 sock_recvmsg_nosec net/socket.c:1046 [inline]
 sock_recvmsg+0x1f6/0x250 net/socket.c:1068
 sock_read_iter+0x2c7/0x3c0 net/socket.c:1138
 new_sync_read fs/read_write.c:395 [inline]
 vfs_read+0xa39/0xbd0 fs/read_write.c:476
 ksys_read+0x1f8/0x260 fs/read_write.c:619
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1f7ab48b6a
Code: 00 3d 00 00 41 00 75 0d 50 48 8d 3d 2d 08 0a 00 e8 ea 7d 01 00 31 c0 e9 07 ff ff ff 64 8b 04 25 18 00 00 00 85 c0 75 1b 0f 05 <48> 3d 00 f0 ff ff 76 6c 48 8b 15 8f a2 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffcabeae968 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f1f7ab48b6a
RDX: 00000000000000ff RSI: 0000556a0f394950 RDI: 0000000000000000
RBP: 0000556a0f394910 R08: 0000000000000001 R09: 0000000000000000
R10: 00007f1f7ace73a3 R11: 0000000000000246 R12: 0000556a0f39499d
R13: 0000556a0f394950 R14: 0000000000000000 R15: 00007f1f7ad2ba80
 </TASK>
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.762 msecs

Crashes (1103):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/08 14:54 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 179264157bba cde64f7d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: task hung in uevent_show
2024/06/08 16:18 linux-next d35b2284e966 82c05ab8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in uevent_show
2024/07/08 12:04 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 179264157bba 2a40360c .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: task hung in uevent_show
2024/07/19 14:31 upstream 68b59730459e ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/19 13:05 upstream 68b59730459e ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/19 11:55 upstream 68b59730459e ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/19 10:54 upstream 68b59730459e ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in uevent_show
2024/07/19 10:25 upstream 68b59730459e ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in uevent_show
2024/07/19 07:17 upstream 68b59730459e ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in uevent_show
2024/07/19 03:40 upstream 68b59730459e ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/19 01:46 upstream 68b59730459e ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in uevent_show
2024/07/18 20:30 upstream b1bc554e009e 7403ec00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in uevent_show
2024/07/18 06:42 upstream b1bc554e009e 03114f55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in uevent_show
2024/07/17 22:30 upstream 51835949dda3 03114f55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/17 20:15 upstream 51835949dda3 03114f55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/17 13:29 upstream 51835949dda3 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/17 11:07 upstream 51835949dda3 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in uevent_show
2024/07/17 09:10 upstream 408323581b72 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/17 06:30 upstream 408323581b72 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/17 03:52 upstream 408323581b72 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in uevent_show
2024/07/16 21:51 upstream 408323581b72 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/16 20:56 upstream 408323581b72 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in uevent_show
2024/07/16 19:17 upstream d67978318827 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/16 11:15 upstream d67978318827 b66b37bd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in uevent_show
2024/07/16 03:56 upstream 5e0497553643 efee4ed2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/16 02:23 upstream 5e0497553643 efee4ed2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/16 00:01 upstream 5e0497553643 efee4ed2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/15 22:57 upstream 5e0497553643 efee4ed2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/15 19:31 upstream 5e0497553643 efee4ed2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/15 19:31 upstream 5e0497553643 efee4ed2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in uevent_show
2024/07/15 17:42 upstream 0c3836482481 efee4ed2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/15 16:09 upstream 0c3836482481 efee4ed2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in uevent_show
2024/07/15 14:45 upstream 0c3836482481 efee4ed2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/15 13:05 upstream 0c3836482481 c605e6a2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in uevent_show
2024/07/15 11:08 upstream 0c3836482481 c605e6a2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/15 09:39 upstream 0c3836482481 c605e6a2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/15 09:20 upstream 0c3836482481 c605e6a2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/15 08:19 upstream 0c3836482481 c605e6a2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: task hung in uevent_show
2024/07/19 14:26 upstream 68b59730459e ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: task hung in uevent_show
2024/07/19 11:59 upstream 68b59730459e ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: task hung in uevent_show
2024/07/17 02:37 upstream 408323581b72 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: task hung in uevent_show
2024/07/16 17:59 upstream d67978318827 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: task hung in uevent_show
2024/07/16 09:21 upstream d67978318827 b66b37bd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: task hung in uevent_show
2024/07/16 09:20 upstream d67978318827 b66b37bd .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 INFO: task hung in uevent_show
2024/07/10 02:02 net 0913ec336a6c 79d68ada .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: task hung in uevent_show
2024/07/05 15:13 net-next aba43bdfdccf 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-net-next-test-gce INFO: task hung in uevent_show
2024/07/19 08:24 linux-next 41c196e567fb ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in uevent_show
2024/07/18 23:43 linux-next 73399b58e5e5 ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in uevent_show
2024/07/18 12:18 linux-next 73399b58e5e5 7403ec00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in uevent_show
2024/07/18 09:09 linux-next 73399b58e5e5 03114f55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in uevent_show
2024/07/18 03:00 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b72749301112 0f902625 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: task hung in uevent_show
2024/07/17 19:46 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b72749301112 215bec2d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: task hung in uevent_show
2024/07/17 18:31 linux-next 797012914d2d 03114f55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in uevent_show
2024/07/17 16:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c912bf709078 03114f55 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in uevent_show
* Struck through repros no longer work on HEAD.