syzbot


INFO: task hung in ext4_rename2

Status: auto-obsoleted due to no activity on 2023/09/05 08:22
Subsystems: ext4
[Documentation on labels]
First crash: 490d, last: 467d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: task hung in ext4_rename2 1 529d 529d 0/3 auto-obsoleted due to no activity on 2023/08/04 14:05

Sample crash report:
INFO: task syz-executor.0:31542 blocked for more than 143 seconds.
      Not tainted 6.4.0-rc5-syzkaller-00016-ga4d7d7011219 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:24736 pid:31542 ppid:5028   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0x187b/0x4900 kernel/sched/core.c:6669
 schedule+0xc3/0x180 kernel/sched/core.c:6745
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804
 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
 inode_lock_nested include/linux/fs.h:810 [inline]
 ext4_rename fs/ext4/namei.c:3842 [inline]
 ext4_rename2+0x106b/0x4400 fs/ext4/namei.c:4221
 vfs_rename+0xb1b/0xfa0 fs/namei.c:4849
 do_renameat2+0xd78/0x1660 fs/namei.c:5002
 __do_sys_rename fs/namei.c:5048 [inline]
 __se_sys_rename fs/namei.c:5046 [inline]
 __x64_sys_rename+0x86/0x90 fs/namei.c:5046
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3fa3c8c169
RSP: 002b:00007f3fa27fe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f3fa3dabf80 RCX: 00007f3fa3c8c169
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000020000100
RBP: 00007f3fa3ce7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd2173bc3f R14: 00007f3fa27fe300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.0:31543 blocked for more than 143 seconds.
      Not tainted 6.4.0-rc5-syzkaller-00016-ga4d7d7011219 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:26912 pid:31543 ppid:5028   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0x187b/0x4900 kernel/sched/core.c:6669
 schedule+0xc3/0x180 kernel/sched/core.c:6745
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804
 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
 inode_lock include/linux/fs.h:775 [inline]
 open_last_lookups fs/namei.c:3557 [inline]
 path_openat+0x7ba/0x3170 fs/namei.c:3788
 do_filp_open+0x234/0x490 fs/namei.c:3818
 do_sys_openat2+0x13f/0x500 fs/open.c:1356
 do_sys_open fs/open.c:1372 [inline]
 __do_sys_creat fs/open.c:1448 [inline]
 __se_sys_creat fs/open.c:1442 [inline]
 __x64_sys_creat+0x123/0x160 fs/open.c:1442
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3fa3c8c169
RSP: 002b:00007f3fa27dd168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f3fa3dac050 RCX: 00007f3fa3c8c169
RDX: 0000000000000000 RSI: 00000000000000c0 RDI: 0000000020000180
RBP: 00007f3fa3ce7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd2173bc3f R14: 00007f3fa27dd300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.0:31544 blocked for more than 143 seconds.
      Not tainted 6.4.0-rc5-syzkaller-00016-ga4d7d7011219 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:26552 pid:31544 ppid:5028   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0x187b/0x4900 kernel/sched/core.c:6669
 schedule+0xc3/0x180 kernel/sched/core.c:6745
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804
 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
 inode_lock_nested include/linux/fs.h:810 [inline]
 lock_two_directories+0x116/0x120 fs/namei.c:3032
 ovl_workdir_ok fs/overlayfs/super.c:981 [inline]
 ovl_get_workdir+0x211/0x17c0 fs/overlayfs/super.c:1416
 ovl_fill_super+0x1c64/0x2bd0 fs/overlayfs/super.c:1992
 mount_nodev+0x56/0xe0 fs/super.c:1426
 legacy_get_tree+0xef/0x190 fs/fs_context.c:610
 vfs_get_tree+0x8c/0x270 fs/super.c:1510
 do_new_mount+0x28f/0xae0 fs/namespace.c:3039
 do_mount fs/namespace.c:3382 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3fa3c8c169
RSP: 002b:00007f3fa27bc168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f3fa3dac120 RCX: 00007f3fa3c8c169
RDX: 0000000020000080 RSI: 0000000020000040 RDI: 0000000000000000
RBP: 00007f3fa3ce7ca1 R08: 0000000020000280 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd2173bc3f R14: 00007f3fa27bc300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/13:
 #0: ffffffff8cf276f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518
1 lock held by rcu_tasks_trace/14:
 #0: ffffffff8cf27ab0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518
1 lock held by khungtaskd/28:
 #0: ffffffff8cf27520 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/4744:
 #0: ffff88802ce6a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2176
2 locks held by syz-fuzzer/5327:
 #0: ffff88807d8dc0e8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x254/0x2f0 fs/file.c:1047
 #1: ffff888079982c00 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: iterate_dir+0x10e/0x570 fs/readdir.c:55
2 locks held by kworker/u4:11/8688:
4 locks held by syz-executor.0/31542:
 #0: ffff88814c8cc460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394
 #1: ffff888079982c00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline]
 #1: ffff888079982c00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_rename fs/namei.c:3042 [inline]
 #1: ffff888079982c00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_renameat2+0x615/0x1660 fs/namei.c:4941
 #2: ffff8880741a0e00 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #2: ffff8880741a0e00 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: vfs_rename+0x617/0xfa0 fs/namei.c:4821
 #3: ffff8880741a1800 (&type->i_mutex_dir_key#3/4){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline]
 #3: ffff8880741a1800 (&type->i_mutex_dir_key#3/4){+.+.}-{3:3}, at: ext4_rename fs/ext4/namei.c:3842 [inline]
 #3: ffff8880741a1800 (&type->i_mutex_dir_key#3/4){+.+.}-{3:3}, at: ext4_rename2+0x106b/0x4400 fs/ext4/namei.c:4221
2 locks held by syz-executor.0/31543:
 #0: ffff88814c8cc460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394
 #1: ffff888079982c00 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #1: ffff888079982c00 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: open_last_lookups fs/namei.c:3557 [inline]
 #1: ffff888079982c00 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: path_openat+0x7ba/0x3170 fs/namei.c:3788
4 locks held by syz-executor.0/31544:
 #0: ffff88807e5b60e0 (&type->s_umount_key#49/1){+.+.}-{3:3}, at: alloc_super+0x217/0x930 fs/super.c:228
 #1: ffff88814c8cc748 (&type->s_vfs_rename_key){+.+.}-{3:3}, at: lock_rename+0x52/0xa0 fs/namei.c:3046
 #2: ffff8880741a1800 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_two_directories+0xc3/0x120
 #3: ffff8880741a0e00 (&type->i_mutex_dir_key#3/5){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline]
 #3: ffff8880741a0e00 (&type->i_mutex_dir_key#3/5){+.+.}-{3:3}, at: lock_two_directories+0x116/0x120 fs/namei.c:3032

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

NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.4.0-rc5-syzkaller-00016-ga4d7d7011219 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x187/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xec2/0xf00 kernel/hung_task.c:379
 kthread+0x2b8/0x350 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 2867 Comm: kworker/u4:6 Not tainted 6.4.0-rc5-syzkaller-00016-ga4d7d7011219 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
Workqueue: bat_events batadv_nc_worker
RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:85 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:178 [inline]
RIP: 0010:kasan_check_range+0x7f/0x290 mm/kasan/generic.c:187
Code: 00 00 00 00 fc ff df 4f 8d 34 1a 4c 89 f5 4c 29 cd 48 83 fd 10 7f 26 48 85 ed 0f 84 3a 01 00 00 49 f7 d2 49 01 da 41 80 39 00 <0f> 85 c4 01 00 00 49 ff c1 49 ff c2 75 ee e9 1d 01 00 00 45 89 cf
RSP: 0018:ffffc9000be7f8c0 EFLAGS: 00000046
RAX: 0000000000000001 RBX: 1ffffffff2065267 RCX: ffffffff816b1eb2
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90329338
RBP: 0000000000000001 R08: dffffc0000000000 R09: fffffbfff2065267
R10: ffffffffffffffff R11: dffffc0000000001 R12: 00000000000006d1
R13: 1ffff11005318155 R14: fffffbfff2065268 R15: ffff8880298c0b38
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c000d49248 CR3: 0000000016f4d000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 instrument_atomic_read include/linux/instrumented.h:68 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 hlock_class kernel/locking/lockdep.c:228 [inline]
 check_wait_context kernel/locking/lockdep.c:4751 [inline]
 __lock_acquire+0x4b2/0x2070 kernel/locking/lockdep.c:5038
 lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5705
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline]
 _raw_spin_lock_bh+0x35/0x50 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:355 [inline]
 batadv_nc_purge_paths+0xe8/0x3a0 net/batman-adv/network-coding.c:442
 batadv_nc_worker+0x30f/0x5c0 net/batman-adv/network-coding.c:722
 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405
 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552
 kthread+0x2b8/0x350 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/07 08:15 upstream a4d7d7011219 a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in ext4_rename2
2023/05/29 06:56 upstream 7877cb91f108 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in ext4_rename2
2023/05/15 00:33 upstream 838a854820ee 2b9ba477 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in ext4_rename2
* Struck through repros no longer work on HEAD.