syzbot
INFO: task hung in odev_release (5)
Status: auto-obsoleted due to no activity on 2026/11/19 23:35
Subsystems:
sound
Labels:
prio:high
[Documentation on labels]
First crash: 100d, last: 91d
Sample crash report:
INFO: task syz.6.5460:25644 blocked for more than 143 seconds.
Tainted: G L syzkaller #0
Blocked by coredump.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.5460 state:D stack:28208 pid:25644 tgid:25642 ppid:21568 task_flags:0x40054c flags:0x00080001
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5520 [inline]
__schedule+0x17d4/0x5820 kernel/sched/core.c:7270
__schedule_loop kernel/sched/core.c:7347 [inline]
schedule+0x164/0x2b0 kernel/sched/core.c:7362
schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:7419
__mutex_lock_common kernel/locking/mutex.c:726 [inline]
__mutex_lock+0x7c1/0x1550 kernel/locking/mutex.c:821
class_mutex_constructor include/linux/mutex.h:253 [inline]
odev_release+0x4b/0x70 sound/core/seq/oss/seq_oss.c:140
__fput+0x418/0xa50 fs/file_table.c:512
task_work_run+0x1d9/0x270 kernel/task_work.c:233
exit_task_work include/linux/task_work.h:40 [inline]
do_exit+0x73a/0x2360 kernel/exit.c:1008
do_group_exit+0x22d/0x2f0 kernel/exit.c:1151
get_signal+0x121b/0x12c0 kernel/signal.c:3046
arch_do_signal_or_restart+0xbb/0x860 arch/x86/kernel/signal.c:337
__exit_to_user_mode_loop kernel/entry/common.c:66 [inline]
exit_to_user_mode_loop+0x10e/0x770 kernel/entry/common.c:101
__exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline]
syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline]
syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline]
do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f677019e0d9
RSP: 002b:00007f677111a0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007f6770426098 RCX: 00007f677019e0d9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f6770426098
RBP: 00007f6770426090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6770426128 R14: 00007f677054f960 R15: 00007f677054fa48
</TASK>
Showing all locks held in the system:
locks held by khungtaskd/31: 1, last CPU#0:
#0: ffffffff8eb5a360 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline]
#0: ffffffff8eb5a360 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:840 [inline]
#0: ffffffff8eb5a360 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180 kernel/locking/lockdep.c:6793
locks held by udevd/4980: 2, last CPU#1:
#0: ffffffff8eb5a360 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline]
#0: ffffffff8eb5a360 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:840 [inline]
#0: ffffffff8eb5a360 (rcu_read_lock){....}-{1:3}, at: class_rcu_constructor include/linux/rcupdate.h:1183 [inline]
#0: ffffffff8eb5a360 (rcu_read_lock){....}-{1:3}, at: unwind_next_frame+0x8f/0x2550 arch/x86/kernel/unwind_orc.c:495
#1: ffffffff8ec93b90 (kfree_rcu_sheaf_map-wait-type-override){+.+.}-{3:3}, at: __kfree_rcu_sheaf+0x1f/0x5f0 mm/slub.c:6030
locks held by getty/5369: 2, on CPU#0:
#0: ffff8880323d00a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc9000322b2e8 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45a/0x1360 drivers/tty/n_tty.c:2211
locks held by kworker/u8:36/8689: 2, on CPU#0:
#0: ffff88801dbe3140 ((wq_completion)iou_exit){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline]
#0: ffff88801dbe3140 ((wq_completion)iou_exit){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:840 [inline]
#0: ffff88801dbe3140 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3352 [inline]
#0: ffff88801dbe3140 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3470
#1: ffffc9001031fc40 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline]
#1: ffffc9001031fc40 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:840 [inline]
#1: ffffc9001031fc40 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3352 [inline]
#1: ffffc9001031fc40 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3470
locks held by kworker/u8:40/11661: 2, on CPU#1:
#0: ffff88801dbe3140 ((wq_completion)iou_exit){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline]
#0: ffff88801dbe3140 ((wq_completion)iou_exit){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:840 [inline]
#0: ffff88801dbe3140 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3352 [inline]
#0: ffff88801dbe3140 ((wq_completion)iou_exit){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3470
#1: ffffc90006447c40 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:300 [inline]
#1: ffffc90006447c40 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:840 [inline]
#1: ffffc90006447c40 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3352 [inline]
#1: ffffc90006447c40 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3470
locks held by syz.5.5459/25648: 3, on CPU#0:
#0: ffffffff8ff986a0 (register_mutex#4){+.+.}-{4:4}, at: class_mutex_constructor include/linux/mutex.h:253 [inline]
#0: ffffffff8ff986a0 (register_mutex#4){+.+.}-{4:4}, at: odev_release+0x4b/0x70 sound/core/seq/oss/seq_oss.c:140
#1: ffff88807a7940b0 (&mdev->open_mutex){+.+.}-{4:4}, at: class_mutex_constructor include/linux/mutex.h:253 [inline]
#1: ffff88807a7940b0 (&mdev->open_mutex){+.+.}-{4:4}, at: snd_seq_oss_midi_close+0x17e/0x650 sound/core/seq/oss/seq_oss_midi.c:373
#2: ffff8880542a7190 (&grp->list_mutex){++++}-{4:4}, at: class_rwsem_write_constructor include/linux/rwsem.h:270 [inline]
#2: ffff8880542a7190 (&grp->list_mutex){++++}-{4:4}, at: snd_seq_port_disconnect+0x54/0x950 sound/core/seq/seq_ports.c:625
locks held by syz.6.5460/25644: 1, on CPU#0:
#0: ffffffff8ff986a0 (register_mutex#4){+.+.}-{4:4}, at: class_mutex_constructor include/linux/mutex.h:253 [inline]
#0: ffffffff8ff986a0 (register_mutex#4){+.+.}-{4:4}, at: odev_release+0x4b/0x70 sound/core/seq/oss/seq_oss.c:140
locks held by syz.1.5996/28002: 1, on CPU#1:
#0: ffffffff8ff986a0 (register_mutex#4){+.+.}-{4:4}, at: class_mutex_constructor include/linux/mutex.h:253 [inline]
#0: ffffffff8ff986a0 (register_mutex#4){+.+.}-{4:4}, at: odev_open+0x5c/0xa0 sound/core/seq/oss/seq_oss.c:127
=============================================
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 31 Comm: khungtaskd Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
<TASK>
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
nmi_cpu_backtrace+0x274/0x2d0 lib/nmi_backtrace.c:123
nmi_trigger_cpumask_backtrace+0x17d/0x390 lib/nmi_backtrace.c:66
trigger_all_cpu_backtrace include/linux/nmi.h:164 [inline]
__sys_info lib/sys_info.c:157 [inline]
sys_info+0x135/0x170 lib/sys_info.c:165
check_hung_uninterruptible_tasks kernel/hung_task.c:353 [inline]
watchdog+0xfd7/0x1030 kernel/hung_task.c:561
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
</TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 22874 Comm: kworker/u8:29 Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:lookup_chain_cache kernel/locking/lockdep.c:3817 [inline]
RIP: 0010:lookup_chain_cache_add kernel/locking/lockdep.c:3837 [inline]
RIP: 0010:validate_chain kernel/locking/lockdep.c:3892 [inline]
RIP: 0010:__lock_acquire+0xab5/0x2cf0 kernel/locking/lockdep.c:5253
Code: 59 b9 0e 48 c7 c6 ea 4d 38 8e 67 48 0f b9 3a 90 48 bb eb 83 b5 80 46 86 c8 61 48 0f af dd 48 c1 eb 2d 48 8b 04 dd 40 55 32 94 <48> 85 c0 74 1c 48 83 c0 f8 74 16 48 8b 48 18 48 39 e9 0f 84 bb 01
RSP: 0018:ffffc90003357680 EFLAGS: 00000002
RAX: ffffffff94769e78 RBX: 000000000001b0a7 RCX: 0000000000040000
RDX: 000000005a295ba2 RSI: 000000001bb5f49c RDI: ffff888031293e80
RBP: 6153cf0892161fbe R08: ffffffff84e47e50 R09: 0000000000080000
R10: 0000000000000000 R11: ffffffff9a9aca58 R12: ffff888031294a78
R13: ffff888031294a78 R14: ffff888031293e80 R15: 0000000000000002
FS: 0000000000000000(0000) GS:ffff888125015000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f63f1bef2f8 CR3: 000000000e946000 CR4: 00000000003526f0
Call Trace:
<TASK>
lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5886
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:155 [inline]
_raw_spin_lock_irqsave+0x40/0x60 kernel/locking/spinlock.c:181
debug_object_assert_init+0xb0/0x380 lib/debugobjects.c:1070
debug_timer_assert_init kernel/time/timer.c:803 [inline]
debug_assert_init kernel/time/timer.c:848 [inline]
__mod_timer+0x4b/0xed0 kernel/time/timer.c:1025
queue_delayed_work_on+0x11a/0x1e0 kernel/workqueue.c:2669
queue_delayed_work include/linux/workqueue.h:714 [inline]
toggle_allocation_gate+0x245/0x290 mm/kfence/core.c:920
process_one_work kernel/workqueue.c:3387 [inline]
process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3470
worker_thread+0xa47/0xfb0 kernel/workqueue.c:3551
kthread+0x38b/0x480 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
</TASK>
* Struck through repros no longer work on HEAD.