syzbot


INFO: task hung in lock_two_nondirectories

Status: auto-obsoleted due to no activity on 2023/09/08 04:44
Subsystems: ext4
[Documentation on labels]
First crash: 327d, last: 327d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 INFO: task hung in lock_two_nondirectories 2 2117d 2135d 0/3 auto-closed as invalid on 2019/02/22 12:36

Sample crash report:
INFO: task syz-executor.3:11235 blocked for more than 143 seconds.
      Not tainted 6.4.0-rc5-syzkaller-00915-ge7c5433c5aaa #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:26208 pid:11235 ppid:5045   flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0xc9a/0x5880 kernel/sched/core.c:6669
 schedule+0xde/0x1a0 kernel/sched/core.c:6745
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804
 rwsem_down_write_slowpath+0x3e2/0x1220 kernel/locking/rwsem.c:1178
 __down_write_common kernel/locking/rwsem.c:1306 [inline]
 __down_write kernel/locking/rwsem.c:1315 [inline]
 down_write+0x1d2/0x200 kernel/locking/rwsem.c:1574
 inode_lock include/linux/fs.h:775 [inline]
 lock_two_nondirectories+0xf0/0x110 fs/inode.c:1121
 ext4_move_extents+0x36d/0x37f0 fs/ext4/move_extent.c:614
 __ext4_ioctl+0x3dae/0x4b00 fs/ext4/ioctl.c:1352
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f922588c169
RSP: 002b:00007f9226624168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f92259ac050 RCX: 00007f922588c169
RDX: 0000000020000180 RSI: 00000000c028660f RDI: 0000000000000005
RBP: 00007f92258e7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffccf1bbbaf R14: 00007f9226624300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.1:11310 blocked for more than 143 seconds.
      Not tainted 6.4.0-rc5-syzkaller-00915-ge7c5433c5aaa #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1  state:D stack:26208 pid:11310 ppid:5033   flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0xc9a/0x5880 kernel/sched/core.c:6669
 schedule+0xde/0x1a0 kernel/sched/core.c:6745
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804
 rwsem_down_write_slowpath+0x3e2/0x1220 kernel/locking/rwsem.c:1178
 __down_write_common kernel/locking/rwsem.c:1306 [inline]
 __down_write kernel/locking/rwsem.c:1315 [inline]
 down_write_nested+0x1d6/0x200 kernel/locking/rwsem.c:1690
 inode_lock_nested include/linux/fs.h:810 [inline]
 lock_two_nondirectories+0xd5/0x110 fs/inode.c:1123
 ext4_move_extents+0x36d/0x37f0 fs/ext4/move_extent.c:614
 __ext4_ioctl+0x3dae/0x4b00 fs/ext4/ioctl.c:1352
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd77fa8c169
RSP: 002b:00007fd78086c168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fd77fbac1f0 RCX: 00007fd77fa8c169
RDX: 0000000020000180 RSI: 00000000c028660f RDI: 000000000000000a
RBP: 00007fd77fae7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff7a49d7ef R14: 00007fd78086c300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.1:11313 blocked for more than 144 seconds.
      Not tainted 6.4.0-rc5-syzkaller-00915-ge7c5433c5aaa #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1  state:D stack:29208 pid:11313 ppid:5033   flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0xc9a/0x5880 kernel/sched/core.c:6669
 schedule+0xde/0x1a0 kernel/sched/core.c:6745
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804
 rwsem_down_write_slowpath+0x3e2/0x1220 kernel/locking/rwsem.c:1178
 __down_write_common kernel/locking/rwsem.c:1306 [inline]
 __down_write kernel/locking/rwsem.c:1315 [inline]
 down_write+0x1d2/0x200 kernel/locking/rwsem.c:1574
 inode_lock include/linux/fs.h:775 [inline]
 ext4_fallocate+0x197/0x3cd0 fs/ext4/extents.c:4707
 vfs_fallocate+0x48b/0xe40 fs/open.c:324
 ioctl_preallocate+0x18e/0x200 fs/ioctl.c:290
 file_ioctl fs/ioctl.c:330 [inline]
 do_vfs_ioctl+0x12e9/0x1670 fs/ioctl.c:849
 __do_sys_ioctl fs/ioctl.c:868 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x10c/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fd77fa8c169
RSP: 002b:00007fd78084b168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fd77fbac2c0 RCX: 00007fd77fa8c169
RDX: 0000000020000080 RSI: 0000000040305828 RDI: 000000000000000a
RBP: 00007fd77fae7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff7a49d7ef R14: 00007fd78084b300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.2:11312 blocked for more than 144 seconds.
      Not tainted 6.4.0-rc5-syzkaller-00915-ge7c5433c5aaa #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:27608 pid:11312 ppid:5043   flags:0x00000004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0xc9a/0x5880 kernel/sched/core.c:6669
 schedule+0xde/0x1a0 kernel/sched/core.c:6745
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804
 rwsem_down_write_slowpath+0x3e2/0x1220 kernel/locking/rwsem.c:1178
 __down_write_common kernel/locking/rwsem.c:1306 [inline]
 __down_write kernel/locking/rwsem.c:1315 [inline]
 down_write+0x1d2/0x200 kernel/locking/rwsem.c:1574
 inode_lock include/linux/fs.h:775 [inline]
 lock_two_nondirectories+0xf0/0x110 fs/inode.c:1121
 ext4_move_extents+0x36d/0x37f0 fs/ext4/move_extent.c:614
 __ext4_ioctl+0x3dae/0x4b00 fs/ext4/ioctl.c:1352
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f666bc8c169
RSP: 002b:00007f666a5dd168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f666bdac1f0 RCX: 00007f666bc8c169
RDX: 0000000020000180 RSI: 00000000c028660f RDI: 0000000000000007
RBP: 00007f666bce7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdd143bdef R14: 00007f666a5dd300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/13:
 #0: ffffffff8c7984b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:518
1 lock held by rcu_tasks_trace/14:
 #0: ffffffff8c7981b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:518
1 lock held by khungtaskd/28:
 #0: ffffffff8c7990c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6559
3 locks held by kworker/u4:2/41:
4 locks held by kworker/u4:3/46:
 #0: ffff8880132ad938 ((wq_completion)writeback){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff8880132ad938 ((wq_completion)writeback){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
 #0: ffff8880132ad938 ((wq_completion)writeback){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1324 [inline]
 #0: ffff8880132ad938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline]
 #0: ffff8880132ad938 ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline]
 #0: ffff8880132ad938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2376
 #1: ffffc90000b77db0 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380
 #2: ffff88814bf960e0 (&type->s_umount_key#31){++++}-{3:3}, at: trylock_super+0x21/0x110 fs/super.c:414
 #3: ffff88814bfa0b98 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: do_writepages+0x1a8/0x640 mm/page-writeback.c:2551
2 locks held by klogd/4446:
 #0: ffff8880b983c5d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:558
 #1: ffff8880b9828848 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2de/0x950 kernel/sched/psi.c:996
2 locks held by getty/4756:
 #0: ffff888028be9098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2176
3 locks held by syz-fuzzer/4996:
 #0: ffff88814bf96460 (sb_writers#4){.+.+}-{0:0}, at: do_unlinkat+0x190/0x680 fs/namei.c:4374
 #1: ffff888047310e00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline]
 #1: ffff888047310e00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_unlinkat+0x280/0x680 fs/namei.c:4378
 #2: ffff888043f92c00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #2: ffff888043f92c00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: vfs_unlink+0xd9/0x930 fs/namei.c:4316
3 locks held by syz-fuzzer/4998:
 #0: ffff88814bf96460 (sb_writers#4){.+.+}-{0:0}, at: do_unlinkat+0x190/0x680 fs/namei.c:4374
 #1: ffff88804717a200 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline]
 #1: ffff88804717a200 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_unlinkat+0x280/0x680 fs/namei.c:4378
 #2: ffff888043ead400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #2: ffff888043ead400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: vfs_unlink+0xd9/0x930 fs/namei.c:4316
3 locks held by syz-fuzzer/5003:
 #0: ffff88814bf96460 (sb_writers#4){.+.+}-{0:0}, at: do_unlinkat+0x190/0x680 fs/namei.c:4374
 #1: ffff888077b3de00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline]
 #1: ffff888077b3de00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_unlinkat+0x280/0x680 fs/namei.c:4378
 #2: ffff888047314000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #2: ffff888047314000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: vfs_unlink+0xd9/0x930 fs/namei.c:4316
3 locks held by syz-fuzzer/5021:
 #0: ffff88814bf96460 (sb_writers#4){.+.+}-{0:0}, at: do_unlinkat+0x190/0x680 fs/namei.c:4374
 #1: ffff8880470ed400 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline]
 #1: ffff8880470ed400 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_unlinkat+0x280/0x680 fs/namei.c:4378
 #2: ffff8880470ef200 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #2: ffff8880470ef200 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: vfs_unlink+0xd9/0x930 fs/namei.c:4316
3 locks held by syz-fuzzer/5025:
 #0: ffff88814bf96460 (sb_writers#4){.+.+}-{0:0}, at: do_unlinkat+0x190/0x680 fs/namei.c:4374
 #1: ffff888075776800 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline]
 #1: ffff888075776800 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_unlinkat+0x280/0x680 fs/namei.c:4378
 #2: ffff8880470ede00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #2: ffff8880470ede00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: vfs_unlink+0xd9/0x930 fs/namei.c:4316
3 locks held by syz-fuzzer/5030:
 #0: ffff88814bf96460 (sb_writers#4){.+.+}-{0:0}, at: do_unlinkat+0x190/0x680 fs/namei.c:4374
 #1: ffff8880470eb600 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline]
 #1: ffff8880470eb600 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_unlinkat+0x280/0x680 fs/namei.c:4378
 #2: ffff888047315400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #2: ffff888047315400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: vfs_unlink+0xd9/0x930 fs/namei.c:4316
3 locks held by kworker/u4:7/6591:
2 locks held by syz-executor.3/11235:
 #0: ffff88814bf96460 (sb_writers#4){.+.+}-{0:0}, at: __ext4_ioctl+0x33e8/0x4b00 fs/ext4/ioctl.c:1348
 #1: ffff888043ead400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #1: ffff888043ead400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: lock_two_nondirectories+0xf0/0x110 fs/inode.c:1121
2 locks held by syz-executor.3/11243:
 #0: ffff888043ead400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:785 [inline]
 #0: ffff888043ead400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_bmap+0x50/0x280 fs/ext4/inode.c:3078
 #1: ffff88814bfa0b98 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: do_writepages+0x1a8/0x640 mm/page-writeback.c:2551
4 locks held by syz-executor.1/11307:
 #0: ffff888077b3f200 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:785 [inline]
 #0: ffff888077b3f200 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_bmap+0x50/0x280 fs/ext4/inode.c:3078
 #1: ffff88814bfa0b98 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: do_writepages+0x1a8/0x640 mm/page-writeback.c:2551
 #2: ffff8880b993c5d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:558
 #3: ffff8880b9928848 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2de/0x950 kernel/sched/psi.c:996
3 locks held by syz-executor.1/11310:
 #0: ffff88814bf96460 (sb_writers#4){.+.+}-{0:0}, at: __ext4_ioctl+0x33e8/0x4b00 fs/ext4/ioctl.c:1348
 #1: ffff8880470ede00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #1: ffff8880470ede00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: lock_two_nondirectories+0xf0/0x110 fs/inode.c:1121
 #2: ffff888077b3f200 (&sb->s_type->i_mutex_key#8/4){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline]
 #2: ffff888077b3f200 (&sb->s_type->i_mutex_key#8/4){+.+.}-{3:3}, at: lock_two_nondirectories+0xd5/0x110 fs/inode.c:1123
2 locks held by syz-executor.1/11313:
 #0: ffff88814bf96460 (sb_writers#4){.+.+}-{0:0}, at: ioctl_preallocate+0x18e/0x200 fs/ioctl.c:290
 #1: ffff8880470ede00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #1: ffff8880470ede00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_fallocate+0x197/0x3cd0 fs/ext4/extents.c:4707
2 locks held by syz-executor.2/11311:
 #0: ffff888043f92c00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:785 [inline]
 #0: ffff888043f92c00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_bmap+0x50/0x280 fs/ext4/inode.c:3078
 #1: ffff88814bfa0b98 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: do_writepages+0x1a8/0x640 mm/page-writeback.c:2551
2 locks held by syz-executor.2/11312:
 #0: ffff88814bf96460 (sb_writers#4){.+.+}-{0:0}, at: __ext4_ioctl+0x33e8/0x4b00 fs/ext4/ioctl.c:1348
 #1: ffff888043f92c00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #1: ffff888043f92c00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: lock_two_nondirectories+0xf0/0x110 fs/inode.c:1121
2 locks held by syz-executor.5/11321:
 #0: ffff888077b3e800 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:785 [inline]
 #0: ffff888077b3e800 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_bmap+0x50/0x280 fs/ext4/inode.c:3078
 #1: ffff88814bfa0b98 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: do_writepages+0x1a8/0x640 mm/page-writeback.c:2551
2 locks held by syz-executor.5/11329:
 #0: ffff88814bf96460 (sb_writers#4){.+.+}-{0:0}, at: __ext4_ioctl+0x1d8c/0x4b00 fs/ext4/ioctl.c:1402
 #1: ffff88814bfa0b98 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: do_writepages+0x1a8/0x640 mm/page-writeback.c:2551
3 locks held by syz-executor.5/11332:
 #0: ffff88814bf96460 (sb_writers#4){.+.+}-{0:0}, at: __ext4_ioctl+0x33e8/0x4b00 fs/ext4/ioctl.c:1348
 #1: ffff8880470ef200 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #1: ffff8880470ef200 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: lock_two_nondirectories+0xf0/0x110 fs/inode.c:1121
 #2: ffff888077b3e800 (&sb->s_type->i_mutex_key#8/4){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:810 [inline]
 #2: ffff888077b3e800 (&sb->s_type->i_mutex_key#8/4){+.+.}-{3:3}, at: lock_two_nondirectories+0xd5/0x110 fs/inode.c:1123
2 locks held by syz-executor.5/11333:
 #0: ffff88814bf96460 (sb_writers#4){.+.+}-{0:0}, at: ioctl_preallocate+0x18e/0x200 fs/ioctl.c:290
 #1: ffff8880470ef200 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #1: ffff8880470ef200 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_fallocate+0x197/0x3cd0 fs/ext4/extents.c:4707
1 lock held by syz-executor.0/11318:
 #0: ffff88814bfa0b98 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: do_writepages+0x1a8/0x640 mm/page-writeback.c:2551
2 locks held by syz-executor.0/11322:
 #0: ffff888047315400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:785 [inline]
 #0: ffff888047315400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_dio_read_iter fs/ext4/file.c:78 [inline]
 #0: ffff888047315400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_file_read_iter+0x535/0x690 fs/ext4/file.c:145
 #1: ffff88814bfa0b98 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: do_writepages+0x1a8/0x640 mm/page-writeback.c:2551
2 locks held by syz-executor.4/11320:
 #0: ffff88814bf96460 (sb_writers#4){.+.+}-{0:0}, at: __ext4_ioctl+0x1d8c/0x4b00 fs/ext4/ioctl.c:1402
 #1: ffff88814bfa0b98 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: do_writepages+0x1a8/0x640 mm/page-writeback.c:2551
2 locks held by syz-executor.4/11326:
 #0: ffff888047314000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:785 [inline]
 #0: ffff888047314000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_bmap+0x50/0x280 fs/ext4/inode.c:3078
 #1: ffff88814bfa0b98 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: do_writepages+0x1a8/0x640 mm/page-writeback.c:2551
2 locks held by syz-executor.4/11330:
 #0: ffff88814bf96460 (sb_writers#4){.+.+}-{0:0}, at: __ext4_ioctl+0x33e8/0x4b00 fs/ext4/ioctl.c:1348
 #1: ffff888047314000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #1: ffff888047314000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: lock_two_nondirectories+0xf0/0x110 fs/inode.c:1121

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

NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.4.0-rc5-syzkaller-00915-ge7c5433c5aaa #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+0xd9/0x150 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x2a4/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+0xe16/0x1090 kernel/hung_task.c:379
 kthread+0x344/0x440 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 6591 Comm: kworker/u4:7 Not tainted 6.4.0-rc5-syzkaller-00915-ge7c5433c5aaa #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet
RIP: 0010:check_kcov_mode kernel/kcov.c:173 [inline]
RIP: 0010:write_comp_data+0x21/0x90 kernel/kcov.c:236
Code: 2e 0f 1f 84 00 00 00 00 00 65 8b 05 a1 7a 7f 7e 49 89 f1 89 c6 49 89 d2 81 e6 00 01 00 00 49 89 f8 65 48 8b 14 25 c0 bb 03 00 <a9> 00 01 ff 00 74 0e 85 f6 74 59 8b 82 0c 16 00 00 85 c0 74 4f 8b
RSP: 0018:ffffc900064efb90 EFLAGS: 00000246
RAX: 0000000080000000 RBX: 0000000000000001 RCX: ffffffff89d74699
RDX: ffff88801e0d0000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 000000003eebce57 R12: ffff8880488530a4
R13: dffffc0000000000 R14: ffff88807de3cc80 R15: 000000000000026b
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557b8f8fe010 CR3: 000000002c710000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 rcu_read_unlock include/linux/rcupdate.h:802 [inline]
 batadv_iv_ogm_slide_own_bcast_window net/batman-adv/bat_iv_ogm.c:771 [inline]
 batadv_iv_ogm_schedule_buff+0x749/0x1520 net/batman-adv/bat_iv_ogm.c:825
 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:868 [inline]
 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:861 [inline]
 batadv_iv_send_outstanding_bat_ogm_packet+0x333/0x960 net/batman-adv/bat_iv_ogm.c:1712
 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405
 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552
 kthread+0x344/0x440 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/10 04:33 net-next e7c5433c5aaa 7086cdb9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: task hung in lock_two_nondirectories
* Struck through repros no longer work on HEAD.