syzbot


INFO: task hung in path_openat

Status: upstream: reported C repro on 2025/09/15 16:26
Reported-by: syzbot+c4d0a5e21a35f5f093c5@syzkaller.appspotmail.com
First crash: 2h21m, last: 13m
Similar bugs (19)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in path_openat 1 2 2194d 2227d 0/1 auto-closed as invalid on 2020/01/11 07:40
linux-6.1 INFO: task hung in path_openat (4) origin:upstream missing-backport 1 C 22 33d 315d 0/3 upstream: reported C repro on 2024/11/04 05:51
upstream INFO: task hung in path_openat (4) fuse 1 1 1965d 1965d 0/29 auto-closed as invalid on 2020/07/28 10:23
upstream INFO: task hung in path_openat (3) fs 1 4 2124d 2241d 0/29 auto-closed as invalid on 2020/02/19 20:16
linux-6.1 INFO: task hung in path_openat (2) 1 1 625d 625d 0/3 auto-obsoleted due to no activity on 2024/04/08 11:39
upstream INFO: task hung in path_openat (7) fs 1 C unreliable 4535 20h14m 1075d 0/29 upstream: reported C repro on 2022/10/06 10:29
linux-5.15 INFO: task hung in path_openat (2) missing-backport origin:upstream 1 C error 114 13d 519d 0/3 upstream: reported C repro on 2024/04/14 03:45
linux-4.19 INFO: task hung in path_openat (2) 1 1 1394d 1394d 0/1 auto-closed as invalid on 2022/03/21 04:47
linux-4.14 INFO: task hung in path_openat 1 1 1634d 1634d 0/1 auto-closed as invalid on 2021/07/23 23:26
android-49 INFO: task hung in path_openat 1 64 2365d 2346d 0/3 auto-closed as invalid on 2019/09/22 08:41
upstream INFO: task hung in path_openat (5) fs 1 23 1605d 1767d 0/29 auto-closed as invalid on 2021/07/22 20:44
linux-4.19 INFO: task hung in path_openat (3) f2fs jfs 1 20 971d 1131d 0/1 upstream: reported on 2022/08/11 13:14
upstream INFO: task hung in path_openat (6) fs 1 13 1341d 1491d 0/29 closed as invalid on 2022/02/07 19:19
android-414 INFO: task hung in path_openat 1 42 2268d 2347d 0/1 auto-closed as invalid on 2019/10/28 21:04
linux-6.1 INFO: task hung in path_openat 1 3 793d 895d 0/3 auto-obsoleted due to no activity on 2023/10/23 12:08
linux-6.1 INFO: task hung in path_openat (3) 1 28 394d 519d 0/3 auto-obsoleted due to no activity on 2024/10/25 20:43
upstream INFO: task hung in path_openat exfat 1 246 2433d 2723d 0/29 closed as dup on 2018/09/08 15:37
linux-5.15 INFO: task hung in path_openat 1 C error 3 775d 887d 0/3 auto-obsoleted due to no activity on 2023/11/09 20:56
upstream INFO: task hung in path_openat (2) fs 1 1 2336d 2336d 0/29 closed as invalid on 2019/05/08 13:05

Sample crash report:
INFO: task syz.3.20:5950 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.20        state:D stack:28072 pid:5950  ppid:5907   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5380 [inline]
 __schedule+0x14d2/0x44d0 kernel/sched/core.c:6699
 schedule+0xbd/0x170 kernel/sched/core.c:6773
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6832
 rwsem_down_read_slowpath+0x4f8/0x840 kernel/locking/rwsem.c:1086
 __down_read_common kernel/locking/rwsem.c:1250 [inline]
 __down_read kernel/locking/rwsem.c:1263 [inline]
 down_read+0x98/0x2e0 kernel/locking/rwsem.c:1522
 inode_lock_shared include/linux/fs.h:814 [inline]
 open_last_lookups fs/namei.c:3555 [inline]
 path_openat+0x7b7/0x3190 fs/namei.c:3786
 do_filp_open+0x1c5/0x3d0 fs/namei.c:3816
 do_open_execat+0x133/0x3d0 fs/exec.c:924
 bprm_execve+0x567/0x16f0 fs/exec.c:1867
 do_execveat_common+0x51b/0x6c0 fs/exec.c:1998
 do_execveat fs/exec.c:2083 [inline]
 __do_sys_execveat fs/exec.c:2157 [inline]
 __se_sys_execveat fs/exec.c:2151 [inline]
 __x64_sys_execveat+0xc4/0xe0 fs/exec.c:2151
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f7f9cd8eba9
RSP: 002b:00007f7f9dc76038 EFLAGS: 00000246 ORIG_RAX: 0000000000000142
RAX: ffffffffffffffda RBX: 00007f7f9cfd6090 RCX: 00007f7f9cd8eba9
RDX: 0000000000000000 RSI: 0000200000000140 RDI: ffffffffffffff9c
RBP: 00007f7f9ce11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f7f9cfd6128 R14: 00007f7f9cfd6090 R15: 00007fffbbf2e828
 </TASK>
INFO: task syz.1.18:6011 blocked for more than 146 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.1.18        state:D stack:26512 pid:6011  ppid:5905   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5380 [inline]
 __schedule+0x14d2/0x44d0 kernel/sched/core.c:6699
 schedule+0xbd/0x170 kernel/sched/core.c:6773
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6832
 rwsem_down_read_slowpath+0x4f8/0x840 kernel/locking/rwsem.c:1086
 __down_read_common kernel/locking/rwsem.c:1250 [inline]
 __down_read kernel/locking/rwsem.c:1263 [inline]
 down_read+0x98/0x2e0 kernel/locking/rwsem.c:1522
 inode_lock_shared include/linux/fs.h:814 [inline]
 open_last_lookups fs/namei.c:3555 [inline]
 path_openat+0x7b7/0x3190 fs/namei.c:3786
 do_filp_open+0x1c5/0x3d0 fs/namei.c:3816
 do_open_execat+0x133/0x3d0 fs/exec.c:924
 bprm_execve+0x567/0x16f0 fs/exec.c:1867
 do_execveat_common+0x51b/0x6c0 fs/exec.c:1998
 do_execveat fs/exec.c:2083 [inline]
 __do_sys_execveat fs/exec.c:2157 [inline]
 __se_sys_execveat fs/exec.c:2151 [inline]
 __x64_sys_execveat+0xc4/0xe0 fs/exec.c:2151
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f49ce58eba9
RSP: 002b:00007f49cf4ad038 EFLAGS: 00000246 ORIG_RAX: 0000000000000142
RAX: ffffffffffffffda RBX: 00007f49ce7d6090 RCX: 00007f49ce58eba9
RDX: 0000000000000000 RSI: 0000200000000140 RDI: ffffffffffffff9c
RBP: 00007f49ce611e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f49ce7d6128 R14: 00007f49ce7d6090 R15: 00007ffd6fa51728
 </TASK>

Showing all locks held in the system:
2 locks held by kworker/u4:1/12:
2 locks held by kworker/1:1/28:
 #0: ffff888017872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #0: ffff888017872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
 #1: ffffc90000a4fd00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #1: ffffc90000a4fd00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
1 lock held by khungtaskd/29:
 #0: ffffffff8cd2fe20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 #0: ffffffff8cd2fe20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
 #0: ffffffff8cd2fe20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x290 kernel/locking/lockdep.c:6633
1 lock held by kswapd0/86:
3 locks held by kworker/u4:6/1112:
2 locks held by kworker/u4:7/2928:
 #0: ffff888017871538 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #0: ffff888017871538 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
 #1: ffff8880b8e289c0 (psi_seq){-.-.}-{0:0}, at: psi_sched_switch kernel/sched/stats.h:189 [inline]
 #1: ffff8880b8e289c0 (psi_seq){-.-.}-{0:0}, at: __schedule+0x20ee/0x44d0 kernel/sched/core.c:6694
1 lock held by udevd/5157:
2 locks held by getty/5545:
 #0: ffff88814cd6a0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc9000326e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x425/0x1380 drivers/tty/n_tty.c:2217
3 locks held by kworker/u5:4/5906:
 #0: ffff88802fcb9538 ((wq_completion)hci8){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #0: ffff88802fcb9538 ((wq_completion)hci8){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
 #1: ffffc90003387d00 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #1: ffffc90003387d00 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
 #2: ffff88807719ce70 (&hdev->req_lock){+.+.}-{3:3}, at: hci_cmd_sync_work+0x1d4/0x390 net/bluetooth/hci_sync.c:326
1 lock held by syz.3.20/5949:
2 locks held by syz.3.20/5950:
 #0: ffff888023f8b488 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: prepare_bprm_creds fs/exec.c:1499 [inline]
 #0: ffff888023f8b488 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: bprm_execve+0xca/0x16f0 fs/exec.c:1854
 #1: ffff88805a154198 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:814 [inline]
 #1: ffff88805a154198 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3555 [inline]
 #1: ffff88805a154198 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x7b7/0x3190 fs/namei.c:3786
1 lock held by syz.1.18/6010:
2 locks held by syz.1.18/6011:
 #0: ffff888027ef5648 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: prepare_bprm_creds fs/exec.c:1499 [inline]
 #0: ffff888027ef5648 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: bprm_execve+0xca/0x16f0 fs/exec.c:1854
 #1: ffff88805a1546e0 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:814 [inline]
 #1: ffff88805a1546e0 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3555 [inline]
 #1: ffff88805a1546e0 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x7b7/0x3190 fs/namei.c:3786
1 lock held by syz.2.19/6013:
2 locks held by syz.2.19/6014:
 #0: ffff888027ef4f88 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: prepare_bprm_creds fs/exec.c:1499 [inline]
 #0: ffff888027ef4f88 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: bprm_execve+0xca/0x16f0 fs/exec.c:1854
 #1: ffff88804f618198 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:814 [inline]
 #1: ffff88804f618198 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3555 [inline]
 #1: ffff88804f618198 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x7b7/0x3190 fs/namei.c:3786
2 locks held by syz.0.17/6016:
2 locks held by syz.0.17/6017:
 #0: ffff8880270ac8c8 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: prepare_bprm_creds fs/exec.c:1499 [inline]
 #0: ffff8880270ac8c8 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: bprm_execve+0xca/0x16f0 fs/exec.c:1854
 #1: ffff88805a154c28 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:814 [inline]
 #1: ffff88805a154c28 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3555 [inline]
 #1: ffff88805a154c28 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x7b7/0x3190 fs/namei.c:3786
1 lock held by syz.4.21/6047:
2 locks held by syz.4.21/6048:
 #0: ffff888027ef1988 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: prepare_bprm_creds fs/exec.c:1499 [inline]
 #0: ffff888027ef1988 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: bprm_execve+0xca/0x16f0 fs/exec.c:1854
 #1: ffff88804f6186e0 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:814 [inline]
 #1: ffff88804f6186e0 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3555 [inline]
 #1: ffff88804f6186e0 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x7b7/0x3190 fs/namei.c:3786
2 locks held by syz.5.22/6141:
2 locks held by syz.5.22/6142:
 #0: ffff88802a875d08 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: prepare_bprm_creds fs/exec.c:1499 [inline]
 #0: ffff88802a875d08 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: bprm_execve+0xca/0x16f0 fs/exec.c:1854
 #1: ffff88805a155170 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:814 [inline]
 #1: ffff88805a155170 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3555 [inline]
 #1: ffff88805a155170 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x7b7/0x3190 fs/namei.c:3786
9 locks held by syz.7.24/6144:
2 locks held by syz.7.24/6145:
 #0: ffff88802ab18c08 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: prepare_bprm_creds fs/exec.c:1499 [inline]
 #0: ffff88802ab18c08 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: bprm_execve+0xca/0x16f0 fs/exec.c:1854
 #1: ffff88804f618c28 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:814 [inline]
 #1: ffff88804f618c28 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3555 [inline]
 #1: ffff88804f618c28 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x7b7/0x3190 fs/namei.c:3786
2 locks held by syz.6.23/6149:
2 locks held by syz.6.23/6155:
 #0: ffff88802ab18548 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: prepare_bprm_creds fs/exec.c:1499 [inline]
 #0: ffff88802ab18548 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: bprm_execve+0xca/0x16f0 fs/exec.c:1854
 #1: ffff88805a1556b8 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:814 [inline]
 #1: ffff88805a1556b8 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3555 [inline]
 #1: ffff88805a1556b8 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x7b7/0x3190 fs/namei.c:3786
2 locks held by syz.8.25/6168:
2 locks held by syz.8.25/6169:
 #0: ffff8880298592c8 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: prepare_bprm_creds fs/exec.c:1499 [inline]
 #0: ffff8880298592c8 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: bprm_execve+0xca/0x16f0 fs/exec.c:1854
 #1: ffff88805a155c00 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:814 [inline]
 #1: ffff88805a155c00 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: open_last_lookups fs/namei.c:3555 [inline]
 #1: ffff88805a155c00 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: path_openat+0x7b7/0x3190 fs/namei.c:3786
7 locks held by syz-executor/6181:
3 locks held by syz-executor/6186:
2 locks held by syz.9.26/6257:
2 locks held by syz.9.26/6259:

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/15 18:34 linux-6.6.y 60a9e718726f e2beed91 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-6-kasan INFO: task hung in path_openat
2025/09/15 16:25 linux-6.6.y 60a9e718726f e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in path_openat
* Struck through repros no longer work on HEAD.