syzbot


INFO: task hung in odev_open (2)

Status: auto-obsoleted due to no activity on 2023/01/03 10:47
Subsystems: sound
[Documentation on labels]
First crash: 743d, last: 575d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-44 INFO: task hung in odev_open 1084 2251d 2273d 0/2 auto-closed as invalid on 2019/02/22 14:34
upstream INFO: task hung in odev_open sound 7 1841d 1842d 0/26 closed as invalid on 2019/05/08 13:05
linux-6.1 INFO: task hung in odev_open 1 19d 19d 0/3 upstream: reported on 2024/04/07 05:06

Sample crash report:
INFO: task syz-executor.3:1026 blocked for more than 143 seconds.
      Not tainted 6.0.0-rc7-syzkaller-00081-gc3e0e1e23c70 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:28456 pid: 1026 ppid: 31525 flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5182 [inline]
 __schedule+0xadf/0x52b0 kernel/sched/core.c:6494
 schedule+0xda/0x1b0 kernel/sched/core.c:6570
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6629
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0xa44/0x1350 kernel/locking/mutex.c:747
 odev_open+0x5b/0x90 sound/core/seq/oss/seq_oss.c:127
 soundcore_open+0x44e/0x620 sound/sound_core.c:593
 chrdev_open+0x266/0x770 fs/char_dev.c:414
 do_dentry_open+0x4a4/0x13a0 fs/open.c:880
 do_open fs/namei.c:3557 [inline]
 path_openat+0x1c92/0x28f0 fs/namei.c:3691
 do_filp_open+0x1b6/0x400 fs/namei.c:3718
 do_sys_openat2+0x16d/0x4c0 fs/open.c:1313
 do_sys_open fs/open.c:1329 [inline]
 __do_sys_openat fs/open.c:1345 [inline]
 __se_sys_openat fs/open.c:1340 [inline]
 __x64_sys_openat+0x13f/0x1f0 fs/open.c:1340
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ff661e8a5a9
RSP: 002b:00007ff66300b168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007ff661fac050 RCX: 00007ff661e8a5a9
RDX: 0000000000000000 RSI: 0000000020000040 RDI: ffffffffffffff9c
RBP: 00007ff661ee5560 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff6624dfb1f R14: 00007ff66300b300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/13:
 #0: ffffffff8bf888b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/14:
 #0: ffffffff8bf885b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/29:
 #0: ffffffff8bf89400 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6492
2 locks held by getty/3286:
 #0: ffff888026151098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244
 #1: ffffc90002d232f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef0/0x13e0 drivers/tty/n_tty.c:2177
3 locks held by kworker/u4:3/23145:
5 locks held by kworker/u4:5/29484:
 #0: ffff8880b9b39f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:544
 #1: ffffc9000b807da8 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x8ae/0x1610 kernel/workqueue.c:2264
 #2: ffff8880b9a283d8 (&base->lock){-.-.}-{2:2}, at: __mod_timer+0x60c/0xe30 kernel/time/timer.c:1096
 #3: ffffffff91365678 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0x12e/0x3e0 lib/debugobjects.c:658
 #4: ffffffff913e3c18 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0x12e/0x3e0 lib/debugobjects.c:658
2 locks held by syz-executor.4/1022:
 #0: ffffffff8d6ca2a8 (register_mutex#4){+.+.}-{3:3}, at: odev_release+0x47/0x70 sound/core/seq/oss/seq_oss.c:143
 #1: ffff8880244989f0 (&grp->list_mutex#2){++++}-{3:3}, at: snd_seq_port_disconnect+0x4f/0x5d0 sound/core/seq/seq_ports.c:612
1 lock held by syz-executor.3/982:
 #0: ffffffff8d6ca2a8 (register_mutex#4){+.+.}-{3:3}, at: odev_open+0x5b/0x90 sound/core/seq/oss/seq_oss.c:127
1 lock held by syz-executor.3/1026:
 #0: ffffffff8d6ca2a8 (register_mutex#4){+.+.}-{3:3}, at: odev_open+0x5b/0x90 sound/core/seq/oss/seq_oss.c:127
1 lock held by syz-executor.3/1338:
 #0: ffffffff8d6ca2a8 (register_mutex#4){+.+.}-{3:3}, at: odev_open+0x5b/0x90 sound/core/seq/oss/seq_oss.c:127
1 lock held by syz-executor.3/1342:
 #0: ffffffff8d6ca2a8 (register_mutex#4){+.+.}-{3:3}, at: odev_open+0x5b/0x90 sound/core/seq/oss/seq_oss.c:127
1 lock held by syz-executor.4/1384:
 #0: ffffffff8d6ca2a8 (register_mutex#4){+.+.}-{3:3}, at: odev_open+0x5b/0x90 sound/core/seq/oss/seq_oss.c:127
1 lock held by syz-executor.4/1387:
 #0: ffffffff8d6ca2a8 (register_mutex#4){+.+.}-{3:3}, at: odev_open+0x5b/0x90 sound/core/seq/oss/seq_oss.c:127
1 lock held by syz-executor.3/1824:
 #0: ffffffff8d6ca2a8 (register_mutex#4){+.+.}-{3:3}, at: odev_open+0x5b/0x90 sound/core/seq/oss/seq_oss.c:127
1 lock held by syz-executor.3/1825:
 #0: ffffffff8d6ca2a8 (register_mutex#4){+.+.}-{3:3}, at: odev_open+0x5b/0x90 sound/core/seq/oss/seq_oss.c:127
1 lock held by syz-executor.4/1829:
 #0: ffffffff8d6ca2a8 (register_mutex#4){+.+.}-{3:3}, at: odev_open+0x5b/0x90 sound/core/seq/oss/seq_oss.c:127
1 lock held by syz-executor.4/1830:
 #0: ffffffff8d6ca2a8 (register_mutex#4){+.+.}-{3:3}, at: odev_open+0x5b/0x90 sound/core/seq/oss/seq_oss.c:127

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

NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.0.0-rc7-syzkaller-00081-gc3e0e1e23c70 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
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+0x46/0x14f lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x206/0x250 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline]
 watchdog+0xc18/0xf50 kernel/hung_task.c:369
 kthread+0x2e4/0x3a0 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: 29484 Comm: kworker/u4:5 Not tainted 6.0.0-rc7-syzkaller-00081-gc3e0e1e23c70 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Workqueue: bat_events batadv_nc_worker
RIP: 0010:hlock_class kernel/locking/lockdep.c:227 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4727 [inline]
RIP: 0010:__lock_acquire+0x3f1/0x56d0 kernel/locking/lockdep.c:5003
Code: 6c 24 18 be 08 00 00 00 81 e5 ff 1f 00 00 48 89 e8 48 c1 e8 06 48 8d 3c c5 40 59 8e 90 e8 27 5b 69 00 48 0f a3 2d 1f 43 2f 0f <0f> 83 39 0d 00 00 48 8d 6c 6d 00 48 c1 e5 06 48 81 c5 60 5d 8e 90
RSP: 0018:ffffc9000b807a30 EFLAGS: 00000047
RAX: 0000000000000001 RBX: ffff88802c7827f8 RCX: ffffffff815f1619
RDX: fffffbfff211cb29 RSI: 0000000000000008 RDI: ffffffff908e5940
RBP: 0000000000000028 R08: 0000000000000000 R09: ffffffff908e5947
R10: fffffbfff211cb28 R11: 0000000000000000 R12: ffff88802c782848
R13: ffff88802c781d80 R14: ffffffff8bf89400 R15: 0000000000020000
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c00d7d2990 CR3: 0000000026b48000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 000000000000003b DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire kernel/locking/lockdep.c:5666 [inline]
 lock_acquire+0x1ab/0x570 kernel/locking/lockdep.c:5631
 rcu_lock_acquire include/linux/rcupdate.h:280 [inline]
 rcu_read_lock include/linux/rcupdate.h:706 [inline]
 batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
 batadv_nc_worker+0x12d/0xfa0 net/batman-adv/network-coding.c:719
 process_one_work+0x991/0x1610 kernel/workqueue.c:2289
 worker_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e4/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/29 07:25 upstream c3e0e1e23c70 e2556bc3 .config console log report info ci-upstream-kasan-gce INFO: task hung in odev_open
2022/09/05 16:21 upstream 7e18e42e4b28 922294ab .config console log report info ci-upstream-kasan-gce INFO: task hung in odev_open
2022/09/04 03:22 upstream d895ec7938c4 28811d0a .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce INFO: task hung in odev_open
2022/08/31 09:23 upstream dcf8e5633e2e 4a380809 .config console log report info ci-upstream-kasan-gce INFO: task hung in odev_open
2022/08/30 11:42 upstream dcf8e5633e2e 5b44472d .config console log report info ci-upstream-kasan-gce INFO: task hung in odev_open
2022/08/22 21:22 upstream 1c23f9e627a7 26a13b38 .config console log report info ci-upstream-kasan-gce INFO: task hung in odev_open
2022/08/13 17:09 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report info ci-upstream-kasan-gce-selinux-root INFO: task hung in odev_open
2022/08/09 05:03 upstream 200e340f2196 da700653 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in odev_open
2022/08/08 06:43 upstream 200e340f2196 88e3a122 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in odev_open
2022/07/23 10:02 upstream 4ba1329cbb94 22343af4 .config console log report info ci-upstream-kasan-gce INFO: task hung in odev_open
2022/07/10 04:47 upstream b1c428b6c368 b5765a15 .config console log report info ci-upstream-kasan-gce INFO: task hung in odev_open
2022/07/07 08:51 upstream 9f09069cde34 bff65f44 .config console log report info ci-upstream-kasan-gce INFO: task hung in odev_open
2022/05/15 21:23 upstream bc403203d65a 744a39e2 .config console log report info ci-upstream-kasan-gce INFO: task hung in odev_open
2022/04/23 22:59 upstream 13bc32bad705 131df97d .config console log report info ci-upstream-kasan-gce INFO: task hung in odev_open
2022/04/14 06:40 upstream a19944809fe9 b17b2923 .config console log report info ci-upstream-kasan-gce INFO: task hung in odev_open
* Struck through repros no longer work on HEAD.