syzbot


INFO: task hung in odev_release (3)

Status: auto-obsoleted due to no activity on 2024/07/01 05:46
Subsystems: sound
[Documentation on labels]
First crash: 167d, last: 167d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-44 INFO: task hung in odev_release 1478 2394d 2417d 0/2 auto-closed as invalid on 2019/02/22 12:59
linux-5.15 INFO: task hung in odev_release 1 176d 176d 0/3 auto-obsoleted due to no activity on 2024/07/02 14:50
upstream INFO: task hung in odev_release (2) sound 3 701d 770d 0/28 auto-obsoleted due to no activity on 2023/01/17 10:27
upstream INFO: task hung in odev_release sound 5 1984d 1985d 0/28 closed as invalid on 2019/05/08 13:05

Sample crash report:
INFO: task syz-executor.0:9031 blocked for more than 143 seconds.
      Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:24632 pid:9031  tgid:9031  ppid:5068   flags:0x00000006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5409 [inline]
 __schedule+0x1781/0x49d0 kernel/sched/core.c:6736
 __schedule_loop kernel/sched/core.c:6813 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6828
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6885
 __mutex_lock_common kernel/locking/mutex.c:684 [inline]
 __mutex_lock+0x6a4/0xd70 kernel/locking/mutex.c:752
 odev_release+0x4e/0x80 sound/core/seq/oss/seq_oss.c:143
 __fput+0x429/0x8a0 fs/file_table.c:422
 __do_sys_close fs/open.c:1556 [inline]
 __se_sys_close fs/open.c:1541 [inline]
 __x64_sys_close+0x7f/0x110 fs/open.c:1541
 do_syscall_64+0xfb/0x240
 entry_SYSCALL_64_after_hwframe+0x6d/0x75
RIP: 0033:0x7f27d0e7cc9a
RSP: 002b:00007fffbbfabe20 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 00007f27d0e7cc9a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007f27d0fad980 R08: 0000001b30420000 R09: 00000000000001e9
R10: 000000008b676626 R11: 0000000000000293 R12: 0000000000033711
R13: ffffffffffffffff R14: 00007f27d0a00000 R15: 00000000000333d0
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/u8:1/11:
1 lock held by khungtaskd/29:
 #0: ffffffff8e132020 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline]
 #0: ffffffff8e132020 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline]
 #0: ffffffff8e132020 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614
2 locks held by getty/4810:
 #0: ffff88802a86f0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc90002f162f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2201
2 locks held by syz-executor.2/8914:
1 lock held by syz-executor.0/9031:
 #0: ffffffff8f2d3228 (register_mutex#4){+.+.}-{3:3}, at: odev_release+0x4e/0x80 sound/core/seq/oss/seq_oss.c:143
2 locks held by syz-executor.0/9034:
1 lock held by syz-executor.3/9931:
 #0: ffffffff8f2d3228 (register_mutex#4){+.+.}-{3:3}, at: odev_open+0x59/0xa0 sound/core/seq/oss/seq_oss.c:127
1 lock held by syz-executor.0/10105:
 #0: ffffffff8f2d3228 (register_mutex#4){+.+.}-{3:3}, at: odev_open+0x59/0xa0 sound/core/seq/oss/seq_oss.c:127
1 lock held by syz-executor.2/10234:
 #0: ffff88801d0ace40 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:838 [inline]
 #0: ffff88801d0ace40 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:192 [inline]
 #0: ffff88801d0ace40 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0x1718/0x2880 block/ioctl.c:520

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

NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114
 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xfb0/0xff0 kernel/hung_task.c:379
 kthread+0x2f0/0x390 kernel/kthread.c:388
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 928 Comm: kworker/0:2 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: events_power_efficient wg_ratelimiter_gc_entries
RIP: 0010:wg_ratelimiter_gc_entries+0x235/0x470 drivers/net/wireguard/ratelimiter.c:70
Code: 05 e8 5f b3 4e fb 48 8b 1c 24 48 03 1d 64 c3 38 0e 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 3e b4 ae fb 4c 8b 23 <4d> 85 e4 0f 84 55 01 00 00 49 83 c4 a0 0f 84 4b 01 00 00 49 8d 6c
RSP: 0018:ffffc90004087b68 EFLAGS: 00000246
RAX: 1ffff1100c6099b0 RBX: ffff88806304cd80 RCX: ffff888020e08000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc90004087ae0
RBP: ffffc90004087dc0 R08: 0000000000000003 R09: fffff52000810f5c
R10: dffffc0000000000 R11: fffff52000810f5c R12: 0000000000000000
R13: dffffc0000000000 R14: 00000055c7e37542 R15: ffffffff8eb982a0
FS:  0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f08f7ac2ae0 CR3: 000000000df32000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 process_one_work kernel/workqueue.c:3254 [inline]
 process_scheduled_works+0xa00/0x1770 kernel/workqueue.c:3335
 worker_thread+0x86d/0xd70 kernel/workqueue.c:3416
 kthread+0x2f0/0x390 kernel/kthread.c:388
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/02 05:40 upstream fe46a7dd189e 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in odev_release
* Struck through repros no longer work on HEAD.