syzbot


INFO: task hung in filename_create (3)

Status: auto-closed as invalid on 2021/08/20 18:08
Subsystems: fs
[Documentation on labels]
First crash: 1395d, last: 1240d
Similar bugs (13)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: task hung in filename_create 6 1790d 1890d 0/1 auto-closed as invalid on 2020/03/17 23:03
upstream INFO: task hung in filename_create (2) fs 11 1774d 1879d 0/28 auto-closed as invalid on 2020/03/04 11:54
android-49 INFO: task hung in filename_create C 44 2239d 2010d 0/3 public: reported C repro on 2019/04/13 00:00
linux-4.19 INFO: task hung in filename_create (3) 3 1067d 1130d 0/1 auto-closed as invalid on 2022/03/11 04:15
android-44 INFO: task hung in filename_create 1 2373d 2373d 0/2 auto-closed as invalid on 2019/02/22 14:19
linux-4.19 INFO: task hung in filename_create (2) 1 1331d 1331d 0/1 auto-closed as invalid on 2021/06/20 16:38
linux-4.14 INFO: task hung in filename_create 2 1763d 1767d 0/1 auto-closed as invalid on 2020/04/14 04:42
linux-4.19 INFO: task hung in filename_create (4) 2 700d 764d 0/1 auto-obsoleted due to no activity on 2023/03/13 04:19
linux-5.15 INFO: task hung in filename_create 41 3d19h 181d 0/3 upstream: reported on 2024/04/15 05:31
android-44 INFO: task hung in filename_create (2) 1 1993d 1993d 0/2 auto-closed as invalid on 2019/10/25 08:49
upstream INFO: task hung in filename_create (4) fs C error error 1903 3h01m 1026d 0/28 upstream: reported C repro on 2021/12/21 22:55
linux-6.1 INFO: task hung in filename_create 6 151d 177d 0/3 auto-obsoleted due to no activity on 2024/08/23 04:31
upstream INFO: task hung in filename_create fs 121 2083d 2369d 0/28 closed as dup on 2018/09/08 15:39

Sample crash report:
INFO: task syz-executor.3:3536 blocked for more than 143 seconds.
      Not tainted 5.13.0-rc2-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:27216 pid: 3536 ppid:  8422 flags:0x00004004
Call Trace:
 context_switch kernel/sched/core.c:4339 [inline]
 __schedule+0xb98/0x1120 kernel/sched/core.c:5147
 schedule+0x14b/0x200 kernel/sched/core.c:5226
 rwsem_down_write_slowpath+0xe52/0x1590 kernel/locking/rwsem.c:1106
 __down_write_common kernel/locking/rwsem.c:1261 [inline]
 __down_write kernel/locking/rwsem.c:1270 [inline]
 down_write_nested+0x171/0x180 kernel/locking/rwsem.c:1517
 inode_lock_nested include/linux/fs.h:809 [inline]
 filename_create+0x19f/0x700 fs/namei.c:3592
 user_path_create fs/namei.c:3650 [inline]
 do_mkdirat+0xaf/0x3e0 fs/namei.c:3828
 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4665d9
RSP: 002b:00007f1226d21188 EFLAGS: 00000246 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 000000000056c1a8 RCX: 00000000004665d9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000240
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c1a8
R13: 00007ffdb674ecbf R14: 00007f1226d21300 R15: 0000000000022000
INFO: task syz-executor.3:3538 blocked for more than 143 seconds.
      Not tainted 5.13.0-rc2-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:27888 pid: 3538 ppid:  8422 flags:0x00004004
Call Trace:
 context_switch kernel/sched/core.c:4339 [inline]
 __schedule+0xb98/0x1120 kernel/sched/core.c:5147
 schedule+0x14b/0x200 kernel/sched/core.c:5226
 rwsem_down_write_slowpath+0xe52/0x1590 kernel/locking/rwsem.c:1106
 __down_write_common kernel/locking/rwsem.c:1261 [inline]
 __down_write kernel/locking/rwsem.c:1270 [inline]
 down_write_nested+0x171/0x180 kernel/locking/rwsem.c:1517
 inode_lock_nested include/linux/fs.h:809 [inline]
 filename_create+0x19f/0x700 fs/namei.c:3592
 user_path_create fs/namei.c:3650 [inline]
 do_mkdirat+0xaf/0x3e0 fs/namei.c:3828
 do_syscall_64+0x3f/0xb0 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4665d9
RSP: 002b:00007f1226d00188 EFLAGS: 00000246 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 000000000056c260 RCX: 00000000004665d9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000080
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c260
R13: 00007ffdb674ecbf R14: 00007f1226d00300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1611:
 #0: ffffffff8cf15c40 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 arch/x86/pci/mmconfig_64.c:151
1 lock held by in:imklog/8103:
1 lock held by syz-executor.3/3528:
 #0: ffff88808cefb578 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:784 [inline]
 #0: ffff88808cefb578 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: lookup_slow fs/namei.c:1645 [inline]
 #0: ffff88808cefb578 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: walk_component+0x4c8/0x740 fs/namei.c:1942
2 locks held by syz-executor.3/3536:
 #0: ffff88809964c460 (sb_writers#17){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:375
 #1: ffff88808cefb578 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:809 [inline]
 #1: ffff88808cefb578 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: filename_create+0x19f/0x700 fs/namei.c:3592
2 locks held by syz-executor.3/3538:
 #0: ffff88809964c460 (sb_writers#17){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:375
 #1: ffff88808cefb578 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:809 [inline]
 #1: ffff88808cefb578 (&type->i_mutex_dir_key#8/1){+.+.}-{3:3}, at: filename_create+0x19f/0x700 fs/namei.c:3592
2 locks held by syz-executor.3/3541:
1 lock held by syz-executor.3/3554:
 #0: ffff88808cefb578 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:784 [inline]
 #0: ffff88808cefb578 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: lookup_slow fs/namei.c:1645 [inline]
 #0: ffff88808cefb578 (&type->i_mutex_dir_key#8){++++}-{3:3}, at: walk_component+0x4c8/0x740 fs/namei.c:1942

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

NMI backtrace for cpu 0
CPU: 0 PID: 1611 Comm: khungtaskd Not tainted 5.13.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x202/0x31e lib/dump_stack.c:120
 nmi_cpu_backtrace+0x16c/0x190 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x191/0x2f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:209 [inline]
 watchdog+0xcfb/0xd40 kernel/hung_task.c:294
 kthread+0x39a/0x3c0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 167 Comm: kworker/u4:4 Not tainted 5.13.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: bat_events batadv_nc_worker
RIP: 0010:__this_cpu_preempt_check+0x0/0x20 lib/smp_processor_id.c:69
Code: 2d a5 f7 48 8b 74 24 40 48 c7 c7 20 a2 92 8a 31 c0 e8 6c 2d a5 f7 e8 e1 f7 5c fa eb 96 e8 18 eb ff ff 0f 1f 84 00 00 00 00 00 <53> 48 89 fb 0f 1f 44 00 00 48 c7 c7 80 a1 92 8a 48 89 de 5b e9 57
RSP: 0018:ffffc90000fcf890 EFLAGS: 00000046
RAX: 0000000000000002 RBX: 0000000000000000 RCX: 0000000080000202
RDX: 0000000000000000 RSI: ffffffff8cf15ba0 RDI: ffffffff8a2eac80
RBP: 0000000000000002 R08: dffffc0000000000 R09: fffffbfff1c702e6
R10: fffffbfff1c702e6 R11: 0000000000000000 R12: 0000000000000246
R13: ffff888014d954c0 R14: 00000000ffffffff R15: ffffffff8cf15ba0
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1e15d78018 CR3: 00000000234b4000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lockdep_recursion_finish kernel/locking/lockdep.c:438 [inline]
 lock_is_held_type+0xf7/0x180 kernel/locking/lockdep.c:5556
 lock_is_held include/linux/lockdep.h:283 [inline]
 rcu_read_lock_sched_held+0x87/0x110 kernel/rcu/update.c:125
 trace_lock_acquire+0x6b/0x180 include/trace/events/lock.h:13
 lock_acquire+0xa9/0x720 kernel/locking/lockdep.c:5483
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:175
 spin_lock_bh include/linux/spinlock.h:359 [inline]
 batadv_nc_purge_paths+0xe0/0x3f0 net/batman-adv/network-coding.c:438
 batadv_nc_worker+0x2ea/0x5c0 net/batman-adv/network-coding.c:716
 process_one_work+0x833/0x10c0 kernel/workqueue.c:2275
 worker_thread+0xac1/0x1300 kernel/workqueue.c:2421
 kthread+0x39a/0x3c0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/22 18:01 upstream 45af60e7ced0 3c7fef33 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in filename_create
2021/02/24 14:59 upstream c03c21ba6f4e fcc6d71b .config console log report info ci-upstream-kasan-gce-root INFO: task hung in filename_create
2021/02/24 14:59 upstream c03c21ba6f4e fcc6d71b .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in filename_create
2021/02/24 14:57 upstream c03c21ba6f4e fcc6d71b .config console log report info ci-upstream-kasan-gce-selinux-root INFO: task hung in filename_create
2021/02/23 07:31 upstream a99163e9e708 c26fb06b .config console log report info ci-upstream-kasan-gce INFO: task hung in filename_create
2021/02/22 23:45 upstream a99163e9e708 c26fb06b .config console log report info ci-upstream-kasan-gce-root INFO: task hung in filename_create
2021/02/22 22:57 upstream a99163e9e708 c26fb06b .config console log report info ci-upstream-kasan-gce-selinux-root INFO: task hung in filename_create
2021/02/23 09:14 upstream a99163e9e708 c26fb06b .config console log report info ci-upstream-kasan-gce-386 INFO: task hung in filename_create
2021/01/16 05:55 upstream f4e087c666f5 65a7a854 .config console log report info ci-upstream-kasan-gce-smack-root
2021/01/16 05:41 upstream 5ee88057889b 65a7a854 .config console log report info ci-upstream-kasan-gce-selinux-root
2021/01/08 13:52 upstream f5e6c330254a c104d4a3 .config console log report info ci-upstream-kasan-gce
2020/12/18 02:53 upstream d64c6f96ba86 04201c06 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/12/17 23:34 upstream d64c6f96ba86 04201c06 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/12/23 16:08 upstream 614cb5894306 c2c1d1dd .config console log report info ci-upstream-kasan-gce-386
2020/12/18 02:28 upstream d64c6f96ba86 04201c06 .config console log report info ci-upstream-kasan-gce-386
2020/12/18 00:39 upstream d64c6f96ba86 04201c06 .config console log report info ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.