syzbot


INFO: task hung in lock_two_inodes (2)

Status: auto-obsoleted due to no activity on 2024/03/20 11:06
Subsystems: fs
[Documentation on labels]
First crash: 660d, last: 660d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in lock_two_inodes ext4 1 1 779d 779d 0/29 auto-obsoleted due to no activity on 2023/11/22 13:09

Sample crash report:
INFO: task syz-executor.1:10550 blocked for more than 143 seconds.
      Not tainted 6.7.0-rc6-syzkaller-00078-ga4aebe936554 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1  state:D stack:27920 pid:10550 tgid:10545 ppid:5102   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5376 [inline]
 __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688
 __schedule_loop kernel/sched/core.c:6763 [inline]
 schedule+0x149/0x260 kernel/sched/core.c:6778
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835
 rwsem_down_write_slowpath+0xeea/0x13b0 kernel/locking/rwsem.c:1178
 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
 inode_lock_nested include/linux/fs.h:837 [inline]
 lock_two_inodes+0x100/0x180 fs/inode.c:1129
 vfs_rename+0x5eb/0xde0 fs/namei.c:4816
 do_renameat2+0xd5a/0x1390 fs/namei.c:4996
 __do_sys_rename fs/namei.c:5042 [inline]
 __se_sys_rename fs/namei.c:5040 [inline]
 __x64_sys_rename+0x86/0x90 fs/namei.c:5040
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f8d5c87cce9
RSP: 002b:00007f8d5d65f0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052
RAX: ffffffffffffffda RBX: 00007f8d5c99c050 RCX: 00007f8d5c87cce9
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 00000000200000c0
RBP: 00007f8d5c8c947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f8d5c99c050 R15: 00007ffcdccaa358
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/u4:1/12:
1 lock held by khungtaskd/29:
 #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline]
 #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline]
 #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614
2 locks held by getty/4812:
 #0: ffff8880267310a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201
1 lock held by syz-executor.4/5094:
 #0: ffffffff8d9334b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline]
 #0: ffffffff8d9334b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:996
2 locks held by syz-executor.1/10546:
3 locks held by syz-executor.1/10550:
 #0: ffff88807f71c418 (sb_writers#29){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:404
 #1: ffff88803b531c20 (&type->i_mutex_dir_key#18/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline]
 #1: ffff88803b531c20 (&type->i_mutex_dir_key#18/1){+.+.}-{3:3}, at: lock_rename fs/namei.c:3046 [inline]
 #1: ffff88803b531c20 (&type->i_mutex_dir_key#18/1){+.+.}-{3:3}, at: do_renameat2+0x601/0x1390 fs/namei.c:4935
 #2: ffff8880355f6170 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline]
 #2: ffff8880355f6170 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: lock_two_inodes+0x100/0x180 fs/inode.c:1129
3 locks held by syz-executor.5/10717:
3 locks held by syz-executor.5/10722:
 #0: ffff888036b52418 (sb_writers#29){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:404
 #1: ffff8880355f4c30 (&type->i_mutex_dir_key#18/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline]
 #1: ffff8880355f4c30 (&type->i_mutex_dir_key#18/1){+.+.}-{3:3}, at: lock_rename fs/namei.c:3046 [inline]
 #1: ffff8880355f4c30 (&type->i_mutex_dir_key#18/1){+.+.}-{3:3}, at: do_renameat2+0x601/0x1390 fs/namei.c:4935
 #2: ffff8880355f46e0 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: inode_lock_nested include/linux/fs.h:837 [inline]
 #2: ffff8880355f46e0 (&type->i_mutex_dir_key#18){++++}-{3:3}, at: lock_two_inodes+0x100/0x180 fs/inode.c:1129
3 locks held by syz-executor.3/11212:

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

NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc6-syzkaller-00078-ga4aebe936554 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/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+0x198/0x310 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xfaf/0xff0 kernel/hung_task.c:379
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 23 Comm: kworker/1:0 Not tainted 6.7.0-rc6-syzkaller-00078-ga4aebe936554 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Workqueue: events free_obj_work
RIP: 0010:check_kcov_mode kernel/kcov.c:184 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:236 [inline]
RIP: 0010:__sanitizer_cov_trace_cmp8+0x34/0x80 kernel/kcov.c:284
Code: 8b 0d 80 4c 75 7e 65 8b 05 81 4c 75 7e a9 00 01 ff 00 74 10 a9 00 01 00 00 74 57 83 b9 fc 15 00 00 00 74 4e 8b 81 d8 15 00 00 <83> f8 03 75 43 48 8b 91 e0 15 00 00 44 8b 89 dc 15 00 00 49 c1 e1
RSP: 0018:ffffc900001d75a0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffffffff81000000 RCX: ffff888016a7d940
RDX: ffffc900001d76b5 RSI: ffffffff8b600000 RDI: ffffffff815cf39e
RBP: ffffffff815cf39e R08: ffffffff813db014 R09: ffffc900001d7770
R10: 0000000000000003 R11: ffff888016a7d940 R12: ffffc900001d7680
R13: ffffc900001d76d0 R14: ffffffff8b600000 R15: ffffffff815cf39f
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f92b61fe000 CR3: 000000006e90b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 unwind_next_frame+0x1f4/0x29e0 arch/x86/kernel/unwind_orc.c:494
 arch_stack_walk+0x146/0x1a0 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x117/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4f/0x70 mm/kasan/common.c:52
 kasan_save_free_info+0x28/0x40 mm/kasan/generic.c:522
 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236
 kasan_slab_free include/linux/kasan.h:164 [inline]
 slab_free_hook mm/slub.c:1800 [inline]
 slab_free_freelist_hook mm/slub.c:1826 [inline]
 slab_free mm/slub.c:3809 [inline]
 kmem_cache_free+0x299/0x470 mm/slub.c:3831
 free_obj_work+0x4ff/0x6d0 lib/debugobjects.c:331
 process_one_work kernel/workqueue.c:2627 [inline]
 process_scheduled_works+0x90f/0x1420 kernel/workqueue.c:2700
 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2781
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/21 10:59 upstream a4aebe936554 4f9530a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in lock_two_inodes
* Struck through repros no longer work on HEAD.