syzbot


INFO: task hung in path_openat (4)

Status: upstream: reported C repro on 2024/11/04 05:51
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+0ad480e74e198cde9a85@syzkaller.appspotmail.com
First crash: 37d, last: 2d00h
Bug presence (1)
Date Name Commit Repro Result
2024/12/11 upstream (ToT) f92f4749861b C [report] INFO: task hung in path_openat
Similar bugs (18)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in path_openat 2 1916d 1949d 0/1 auto-closed as invalid on 2020/01/11 07:40
upstream INFO: task hung in path_openat (4) fuse 1 1687d 1687d 0/28 auto-closed as invalid on 2020/07/28 10:23
upstream INFO: task hung in path_openat (3) fs 4 1847d 1963d 0/28 auto-closed as invalid on 2020/02/19 20:16
linux-6.1 INFO: task hung in path_openat (2) 1 347d 347d 0/3 auto-obsoleted due to no activity on 2024/04/08 11:39
upstream INFO: task hung in path_openat (7) fs C unreliable 4106 22h09m 797d 0/28 upstream: reported C repro on 2022/10/06 10:29
linux-5.15 INFO: task hung in path_openat (2) origin:upstream C 97 19h37m 241d 0/3 upstream: reported C repro on 2024/04/14 03:45
linux-4.19 INFO: task hung in path_openat (2) 1 1116d 1116d 0/1 auto-closed as invalid on 2022/03/21 04:47
linux-4.14 INFO: task hung in path_openat 1 1356d 1356d 0/1 auto-closed as invalid on 2021/07/23 23:26
android-49 INFO: task hung in path_openat 64 2087d 2068d 0/3 auto-closed as invalid on 2019/09/22 08:41
upstream INFO: task hung in path_openat (5) fs 23 1328d 1489d 0/28 auto-closed as invalid on 2021/07/22 20:44
linux-4.19 INFO: task hung in path_openat (3) f2fs jfs 20 693d 853d 0/1 upstream: reported on 2022/08/11 13:14
upstream INFO: task hung in path_openat (6) fs 13 1063d 1213d 0/28 closed as invalid on 2022/02/07 19:19
android-414 INFO: task hung in path_openat 42 1991d 2069d 0/1 auto-closed as invalid on 2019/10/28 21:04
linux-6.1 INFO: task hung in path_openat 3 515d 617d 0/3 auto-obsoleted due to no activity on 2023/10/23 12:08
linux-6.1 INFO: task hung in path_openat (3) 28 117d 241d 0/3 auto-obsoleted due to no activity on 2024/10/25 20:43
upstream INFO: task hung in path_openat exfat 246 2155d 2445d 0/28 closed as dup on 2018/09/08 15:37
linux-5.15 INFO: task hung in path_openat C error 3 498d 609d 0/3 auto-obsoleted due to no activity on 2023/11/09 20:56
upstream INFO: task hung in path_openat (2) fs 1 2058d 2058d 0/28 closed as invalid on 2019/05/08 13:05

Sample crash report:
INFO: task syz-executor153:4265 blocked for more than 143 seconds.
      Not tainted 6.1.119-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor153 state:D stack:28312 pid:4265  ppid:4246   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x143f/0x4570 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 rwsem_down_write_slowpath+0xea1/0x14b0 kernel/locking/rwsem.c:1189
 inode_lock include/linux/fs.h:758 [inline]
 open_last_lookups fs/namei.c:3547 [inline]
 path_openat+0x7b6/0x2e60 fs/namei.c:3780
 do_filp_open+0x230/0x480 fs/namei.c:3810
 do_sys_openat2+0x13b/0x4f0 fs/open.c:1318
 do_sys_open fs/open.c:1334 [inline]
 __do_sys_openat fs/open.c:1350 [inline]
 __se_sys_openat fs/open.c:1345 [inline]
 __x64_sys_openat+0x243/0x290 fs/open.c:1345
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd8816f3e09
RSP: 002b:00007fd88168f218 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fd8817856b8 RCX: 00007fd8816f3e09
RDX: 000000000000275a RSI: 0000000020000040 RDI: 00000000ffffff9c
RBP: 00007fd8817856b0 R08: 00007ffd86aeda77 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd8817856bc
R13: 00007fd881748160 R14: 746174732e757063 R15: 0031656c69662f2e
 </TASK>
INFO: task syz-executor153:4261 blocked for more than 144 seconds.
      Not tainted 6.1.119-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor153 state:D stack:27680 pid:4261  ppid:4249   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x143f/0x4570 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 rwsem_down_write_slowpath+0xea1/0x14b0 kernel/locking/rwsem.c:1189
 inode_lock include/linux/fs.h:758 [inline]
 open_last_lookups fs/namei.c:3547 [inline]
 path_openat+0x7b6/0x2e60 fs/namei.c:3780
 do_filp_open+0x230/0x480 fs/namei.c:3810
 do_sys_openat2+0x13b/0x4f0 fs/open.c:1318
 do_sys_open fs/open.c:1334 [inline]
 __do_sys_openat fs/open.c:1350 [inline]
 __se_sys_openat fs/open.c:1345 [inline]
 __x64_sys_openat+0x243/0x290 fs/open.c:1345
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd8816f3e09
RSP: 002b:00007fd88168f218 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fd8817856b8 RCX: 00007fd8816f3e09
RDX: 000000000000275a RSI: 0000000020000040 RDI: 00000000ffffff9c
RBP: 00007fd8817856b0 R08: 00007ffd86aeda77 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd8817856bc
R13: 00007fd881748160 R14: 746174732e757063 R15: 0031656c69662f2e
 </TASK>
INFO: task syz-executor153:4263 blocked for more than 145 seconds.
      Not tainted 6.1.119-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor153 state:D stack:28280 pid:4263  ppid:4250   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x143f/0x4570 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 rwsem_down_write_slowpath+0xea1/0x14b0 kernel/locking/rwsem.c:1189
 inode_lock include/linux/fs.h:758 [inline]
 open_last_lookups fs/namei.c:3547 [inline]
 path_openat+0x7b6/0x2e60 fs/namei.c:3780
 do_filp_open+0x230/0x480 fs/namei.c:3810
 do_sys_openat2+0x13b/0x4f0 fs/open.c:1318
 do_sys_open fs/open.c:1334 [inline]
 __do_sys_openat fs/open.c:1350 [inline]
 __se_sys_openat fs/open.c:1345 [inline]
 __x64_sys_openat+0x243/0x290 fs/open.c:1345
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd8816f3e09
RSP: 002b:00007fd88168f218 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fd8817856b8 RCX: 00007fd8816f3e09
RDX: 000000000000275a RSI: 0000000020000040 RDI: 00000000ffffff9c
RBP: 00007fd8817856b0 R08: 00007ffd86aeda77 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd8817856bc
R13: 00007fd881748160 R14: 746174732e757063 R15: 0031656c69662f2e
 </TASK>
INFO: task syz-executor153:4266 blocked for more than 146 seconds.
      Not tainted 6.1.119-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor153 state:D stack:28280 pid:4266  ppid:4247   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x143f/0x4570 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 rwsem_down_write_slowpath+0xea1/0x14b0 kernel/locking/rwsem.c:1189
 inode_lock include/linux/fs.h:758 [inline]
 open_last_lookups fs/namei.c:3547 [inline]
 path_openat+0x7b6/0x2e60 fs/namei.c:3780
 do_filp_open+0x230/0x480 fs/namei.c:3810
 do_sys_openat2+0x13b/0x4f0 fs/open.c:1318
 do_sys_open fs/open.c:1334 [inline]
 __do_sys_openat fs/open.c:1350 [inline]
 __se_sys_openat fs/open.c:1345 [inline]
 __x64_sys_openat+0x243/0x290 fs/open.c:1345
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd8816f3e09
RSP: 002b:00007fd88168f218 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fd8817856b8 RCX: 00007fd8816f3e09
RDX: 000000000000275a RSI: 0000000020000040 RDI: 00000000ffffff9c
RBP: 00007fd8817856b0 R08: 00007ffd86aeda77 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd8817856bc
R13: 00007fd881748160 R14: 746174732e757063 R15: 0031656c69662f2e
 </TASK>
INFO: task syz-executor153:4262 blocked for more than 147 seconds.
      Not tainted 6.1.119-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor153 state:D stack:28312 pid:4262  ppid:4248   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x143f/0x4570 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 rwsem_down_write_slowpath+0xea1/0x14b0 kernel/locking/rwsem.c:1189
 inode_lock include/linux/fs.h:758 [inline]
 open_last_lookups fs/namei.c:3547 [inline]
 path_openat+0x7b6/0x2e60 fs/namei.c:3780
 do_filp_open+0x230/0x480 fs/namei.c:3810
 do_sys_openat2+0x13b/0x4f0 fs/open.c:1318
 do_sys_open fs/open.c:1334 [inline]
 __do_sys_openat fs/open.c:1350 [inline]
 __se_sys_openat fs/open.c:1345 [inline]
 __x64_sys_openat+0x243/0x290 fs/open.c:1345
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd8816f3e09
RSP: 002b:00007fd88168f218 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fd8817856b8 RCX: 00007fd8816f3e09
RDX: 000000000000275a RSI: 0000000020000040 RDI: 00000000ffffff9c
RBP: 00007fd8817856b0 R08: 00007ffd86aeda77 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd8817856bc
R13: 00007fd881748160 R14: 746174732e757063 R15: 0031656c69662f2e
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8d32b110 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:517
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8d32b910 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:517
2 locks held by kworker/0:1/14:
 #0: ffff888017c72138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267
 #1: ffffc90000137d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267
1 lock held by khungtaskd/28:
 #0: ffffffff8d32af40 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
 #0: ffffffff8d32af40 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline]
 #0: ffffffff8d32af40 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x290 kernel/locking/lockdep.c:6510
1 lock held by kswapd0/82:
2 locks held by getty/4005:
 #0: ffff88803105d098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc9000325e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2198
2 locks held by syz-executor153/4255:
1 lock held by syz-executor153/4265:
 #0: ffff8880757646d0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline]
 #0: ffff8880757646d0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3547 [inline]
 #0: ffff8880757646d0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7b6/0x2e60 fs/namei.c:3780
1 lock held by syz-executor153/4257:
1 lock held by syz-executor153/4261:
 #0: ffff88806fc7c6d0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline]
 #0: ffff88806fc7c6d0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3547 [inline]
 #0: ffff88806fc7c6d0 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7b6/0x2e60 fs/namei.c:3780
1 lock held by syz-executor153/4259:
1 lock held by syz-executor153/4263:
 #0: ffff888075764188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline]
 #0: ffff888075764188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3547 [inline]
 #0: ffff888075764188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7b6/0x2e60 fs/namei.c:3780
1 lock held by syz-executor153/4258:
1 lock held by syz-executor153/4266:
 #0: ffff88806fc7cc18 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline]
 #0: ffff88806fc7cc18 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3547 [inline]
 #0: ffff88806fc7cc18 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7b6/0x2e60 fs/namei.c:3780
2 locks held by syz-executor153/4260:
1 lock held by syz-executor153/4262:
 #0: ffff88806fc7c188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline]
 #0: ffff88806fc7c188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: open_last_lookups fs/namei.c:3547 [inline]
 #0: ffff88806fc7c188 (&type->i_mutex_dir_key#6){+.+.}-{3:3}, at: path_openat+0x7b6/0x2e60 fs/namei.c:3780
2 locks held by dhcpcd/4292:
 #0: ffff88817e044410 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline]
 #0: ffff88817e044410 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: __sock_release net/socket.c:653 [inline]
 #0: ffff88817e044410 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: sock_close+0x98/0x230 net/socket.c:1400
 #1: ffffffff8d330538 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:291 [inline]
 #1: ffffffff8d330538 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x4f0/0x930 kernel/rcu/tree_exp.h:962

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

NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.1.119-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1ae/0x3f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
 watchdog+0xf88/0xfd0 kernel/hung_task.c:377
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 82 Comm: kswapd0 Not tainted 6.1.119-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:kasan_quarantine_put+0xe0/0x220 mm/kasan/quarantine.c:242
Code: 03 70 10 4c 89 70 10 49 81 fe 01 00 10 00 73 51 41 f7 c7 00 02 00 00 74 05 e8 ac 2e af ff 48 c7 04 24 00 00 00 00 9c 8f 04 24 <f7> 04 24 00 02 00 00 0f 85 b6 00 00 00 b0 01 41 f7 c7 00 02 00 00
RSP: 0018:ffffc900015f6b90 EFLAGS: 00000086
RAX: a590085d8f183b00 RBX: ffff888055f68000 RCX: ffffffff816b124a
RDX: dffffc0000000000 RSI: ffffffff8b0c01c0 RDI: ffffffff8b5e6200
RBP: ffff888055f68048 R08: dffffc0000000000 R09: fffffbfff224984f
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff888055f68000 R14: 00000000000dd940 R15: 0000000000000286
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000564ec2d83680 CR3: 000000000d08e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 kasan_slab_free include/linux/kasan.h:177 [inline]
 slab_free_hook mm/slub.c:1724 [inline]
 slab_free_freelist_hook mm/slub.c:1750 [inline]
 slab_free mm/slub.c:3661 [inline]
 kmem_cache_free+0x292/0x510 mm/slub.c:3683
 free_buffer_head+0x45/0xb0 fs/buffer.c:2915
 try_to_free_buffers+0x302/0x600 fs/buffer.c:2856
 shrink_folio_list+0x288c/0x8f40 mm/vmscan.c:1996
 evict_folios+0xaf8/0x25b0 mm/vmscan.c:5039
 lru_gen_shrink_lruvec mm/vmscan.c:5222 [inline]
 shrink_lruvec+0xdbf/0x4650 mm/vmscan.c:5917
 </TASK>

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/09 12:43 linux-6.1.y e4d90d63d385 9ac0fdc6 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan INFO: task hung in path_openat
2024/12/09 22:08 linux-6.1.y e4d90d63d385 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in path_openat
2024/12/09 09:50 linux-6.1.y e4d90d63d385 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in path_openat
2024/12/08 12:57 linux-6.1.y e4d90d63d385 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in path_openat
2024/11/04 05:51 linux-6.1.y 7c15117f9468 f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in path_openat
* Struck through repros no longer work on HEAD.