syzbot


INFO: task hung in path_openat (3)

Status: upstream: reported on 2022/08/11 13:14
Subsystems: f2fs jfs
[Documentation on labels]
Reported-by: syzbot+ecb1a957408fd20bf401@syzkaller.appspotmail.com
First crash: 617d, last: 457d
Similar bugs (17)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in path_openat 2 1680d 1713d 0/1 auto-closed as invalid on 2020/01/11 07:40
upstream INFO: task hung in path_openat (4) fuse 1 1451d 1451d 0/26 auto-closed as invalid on 2020/07/28 10:23
upstream INFO: task hung in path_openat (3) fs 4 1610d 1727d 0/26 auto-closed as invalid on 2020/02/19 20:16
linux-6.1 INFO: task hung in path_openat (2) 1 111d 111d 0/3 auto-obsoleted due to no activity on 2024/04/08 11:39
upstream INFO: task hung in path_openat (7) fs 379 2h40m 561d 0/26 upstream: reported on 2022/10/06 10:29
linux-5.15 INFO: task hung in path_openat (2) 1 5d12h 5d12h 0/3 upstream: reported on 2024/04/14 03:45
linux-4.19 INFO: task hung in path_openat (2) 1 880d 880d 0/1 auto-closed as invalid on 2022/03/21 04:47
linux-4.14 INFO: task hung in path_openat 1 1120d 1120d 0/1 auto-closed as invalid on 2021/07/23 23:26
android-49 INFO: task hung in path_openat 64 1851d 1832d 0/3 auto-closed as invalid on 2019/09/22 08:41
upstream INFO: task hung in path_openat (5) fs 23 1091d 1253d 0/26 auto-closed as invalid on 2021/07/22 20:44
upstream INFO: task hung in path_openat (6) fs 13 827d 977d 0/26 closed as invalid on 2022/02/07 19:19
android-414 INFO: task hung in path_openat 42 1754d 1833d 0/1 auto-closed as invalid on 2019/10/28 21:04
linux-6.1 INFO: task hung in path_openat 3 279d 381d 0/3 auto-obsoleted due to no activity on 2023/10/23 12:08
linux-6.1 INFO: task hung in path_openat (3) 7 6h54m 5d03h 0/3 upstream: reported on 2024/04/14 13:03
upstream INFO: task hung in path_openat exfat 246 1919d 2208d 0/26 closed as dup on 2018/09/08 15:37
linux-5.15 INFO: task hung in path_openat C error 3 261d 373d 0/3 auto-obsoleted due to no activity on 2023/11/09 20:56
upstream INFO: task hung in path_openat (2) fs 1 1821d 1821d 0/26 closed as invalid on 2019/05/08 13:05

Sample crash report:
INFO: task syz-executor.3:31506 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.3  D29712 31506   8164 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 __rwsem_down_write_failed_common kernel/locking/rwsem-xadd.c:589 [inline]
 rwsem_down_write_failed+0x3aa/0x760 kernel/locking/rwsem-xadd.c:618
 call_rwsem_down_write_failed+0x13/0x20 arch/x86/lib/rwsem.S:117
 __down_write arch/x86/include/asm/rwsem.h:142 [inline]
 down_write+0x4f/0x90 kernel/locking/rwsem.c:72
 inode_lock include/linux/fs.h:748 [inline]
 do_last fs/namei.c:3324 [inline]
 path_openat+0x1071/0x2df0 fs/namei.c:3537
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f94f6fa40c9
Code: Bad RIP value.
RSP: 002b:00007f94f10f5168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f94f70c4050 RCX: 00007f94f6fa40c9
RDX: 000000000000275a RSI: 0000000020000080 RDI: ffffffffffffff9c
RBP: 00007f94f6fffae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffee78b593f R14: 00007f94f10f5300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1570:
 #0: 000000008388f0d7 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by in:imklog/7816:
 #0: 000000008b4a19b1 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
2 locks held by kworker/u4:5/8581:
 #0: 0000000026e625be (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline]
 #0: 0000000026e625be (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455
 #1: 000000008388f0d7 (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline]
 #1: 000000008388f0d7 (rcu_read_lock){....}, at: update_curr+0x2c3/0x870 kernel/sched/fair.c:857
4 locks held by kworker/u4:7/9554:
 #0: 00000000652d3094 ((wq_completion)"writeback"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
 #1: 000000008bd9a2d4 ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
 #2: 000000002aa27013 (&type->s_umount_key#62){++++}, at: trylock_super+0x1d/0x100 fs/super.c:412
 #3: 00000000625222c5 (&sbi->gc_mutex){+.+.}, at: f2fs_balance_fs+0x709/0xd80 fs/f2fs/segment.c:512
3 locks held by syz-executor.3/31482:
2 locks held by syz-executor.3/31506:
 #0: 00000000fa894bf8 (sb_writers#18){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline]
 #0: 00000000fa894bf8 (sb_writers#18){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360
 #1: 000000001c3fdff0 (&type->i_mutex_dir_key#9){++++}, at: inode_lock include/linux/fs.h:748 [inline]
 #1: 000000001c3fdff0 (&type->i_mutex_dir_key#9){++++}, at: do_last fs/namei.c:3324 [inline]
 #1: 000000001c3fdff0 (&type->i_mutex_dir_key#9){++++}, at: path_openat+0x1071/0x2df0 fs/namei.c:3537
2 locks held by syz-executor.0/3194:

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

NMI backtrace for cpu 1
CPU: 1 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
 watchdog+0x991/0xe60 kernel/hung_task.c:287
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 8581 Comm: kworker/u4:5 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Workqueue: phy6 ieee80211_iface_work
RIP: 0010:check_preemption_disabled+0x15/0x280 lib/smp_processor_id.c:13
Code: 81 44 21 fe e9 87 f7 ff ff 90 90 90 90 90 90 90 90 90 90 90 90 41 57 41 56 41 55 49 89 f5 41 54 55 48 89 fd 53 e8 6b 67 eb fd <65> 44 8b 25 23 63 8a 7c 65 8b 1d 3c c1 8a 7c 81 e3 ff ff ff 7f 31
RSP: 0018:ffff8880b2d573d0 EFLAGS: 00000293
RAX: ffff88809d290140 RBX: 000000000002be80 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff83771e05 RDI: ffffffff88b3e120
RBP: ffffffff88b3e120 R08: 0000000000000000 R09: ffffed101740455a
R10: ffff8880ba022ad3 R11: 0000000000000000 R12: ffffffff89f88280
R13: ffffffff88b3e0e0 R14: 0000000000000000 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000009cb05000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 rcu_lockdep_current_cpu_online kernel/rcu/tree.c:1078 [inline]
 rcu_lockdep_current_cpu_online+0xb2/0x1b0 kernel/rcu/tree.c:1068
 rcu_read_lock_sched_held+0xd3/0x1d0 kernel/rcu/update.c:115
 trace_cfg80211_inform_bss_frame net/wireless/trace.h:3014 [inline]
 cfg80211_inform_bss_frame_data+0xc40/0xeb0 net/wireless/scan.c:1235
 ieee80211_bss_info_update+0x42d/0x1800 net/mac80211/scan.c:105
 ieee80211_rx_bss_info net/mac80211/ibss.c:1125 [inline]
 ieee80211_rx_mgmt_probe_beacon+0xb4f/0x15c0 net/mac80211/ibss.c:1607
 ieee80211_ibss_rx_queued_mgmt+0xe27/0x18b0 net/mac80211/ibss.c:1634
 ieee80211_iface_work+0x5c4/0x8a0 net/mac80211/iface.c:1341
 process_one_work+0x864/0x1570 kernel/workqueue.c:2153
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415

Crashes (20):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/18 00:10 linux-4.19.y 3f8a27f9e27b 42660d9e .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2023/01/10 09:59 linux-4.19.y 3f8a27f9e27b 48bc529a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/12/31 23:27 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/12/25 07:54 linux-4.19.y 3f8a27f9e27b 9da18ae8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/12/17 22:36 linux-4.19.y 3f8a27f9e27b 05494336 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/12/17 21:01 linux-4.19.y 3f8a27f9e27b 05494336 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/12/17 10:02 linux-4.19.y 3f8a27f9e27b 05494336 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/12/16 09:23 linux-4.19.y 3f8a27f9e27b 6f9c033e .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/12/15 04:02 linux-4.19.y 3f8a27f9e27b b18f0a64 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/12/12 06:21 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/12/10 06:30 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/12/10 04:46 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/12/06 14:42 linux-4.19.y 3f8a27f9e27b 045cbb84 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/12/01 02:11 linux-4.19.y 3f8a27f9e27b 4c2a66e8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/11/28 05:32 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/11/28 05:14 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/11/27 07:40 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/11/17 00:44 linux-4.19.y 3f8a27f9e27b 3a127a31 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/11/12 18:37 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in path_openat
2022/08/11 13:13 linux-4.19.y 3f8a27f9e27b 787ed7e0 .config console log report info ci2-linux-4-19 INFO: task hung in path_openat
* Struck through repros no longer work on HEAD.