syzbot


INFO: task hung in lock_two_inodes

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

Sample crash report:
INFO: task syz-executor.2:9989 blocked for more than 143 seconds.
      Not tainted 6.5.0-rc6-syzkaller-01712-g23c167af2404 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:25888 pid:9989  ppid:5072   flags:0x00000006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0xee1/0x59f0 kernel/sched/core.c:6710
 schedule+0xe7/0x1b0 kernel/sched/core.c:6786
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845
 rwsem_down_write_slowpath+0x53e/0x1290 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+0x1d7/0x200 kernel/locking/rwsem.c:1690
 inode_lock_nested include/linux/fs.h:806 [inline]
 lock_two_inodes+0xfa/0x1e0 fs/inode.c:1140
 ext4_move_extents+0x3b7/0x3b80 fs/ext4/move_extent.c:614
 __ext4_ioctl+0x3ca3/0x47d0 fs/ext4/ioctl.c:1361
 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+0x18f/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fc384a7cae9
RSP: 002b:00007fc3835fe0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fc384b9c120 RCX: 00007fc384a7cae9
RDX: 0000000020000180 RSI: 00000000c028660f RDI: 0000000000000005
RBP: 00007fc384ac847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007fc384b9c120 R15: 00007ffd728afe68
 </TASK>
INFO: task syz-executor.3:9993 blocked for more than 143 seconds.
      Not tainted 6.5.0-rc6-syzkaller-01712-g23c167af2404 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:25888 pid:9993  ppid:5063   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0xee1/0x59f0 kernel/sched/core.c:6710
 schedule+0xe7/0x1b0 kernel/sched/core.c:6786
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845
 rwsem_down_write_slowpath+0x53e/0x1290 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+0x1d7/0x200 kernel/locking/rwsem.c:1690
 inode_lock_nested include/linux/fs.h:806 [inline]
 lock_two_inodes+0xfa/0x1e0 fs/inode.c:1140
 ext4_move_extents+0x3b7/0x3b80 fs/ext4/move_extent.c:614
 __ext4_ioctl+0x3ca3/0x47d0 fs/ext4/ioctl.c:1361
 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+0x18f/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f74aa07cae9
RSP: 002b:00007f74a8bfe0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f74aa19c120 RCX: 00007f74aa07cae9
RDX: 0000000020000180 RSI: 00000000c028660f RDI: 0000000000000005
RBP: 00007f74aa0c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f74aa19c120 R15: 00007ffd4491afb8
 </TASK>
INFO: task syz-executor.5:10023 blocked for more than 144 seconds.
      Not tainted 6.5.0-rc6-syzkaller-01712-g23c167af2404 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:27248 pid:10023 ppid:5064   flags:0x00000006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0xee1/0x59f0 kernel/sched/core.c:6710
 schedule+0xe7/0x1b0 kernel/sched/core.c:6786
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845
 rwsem_down_write_slowpath+0x53e/0x1290 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+0x1d7/0x200 kernel/locking/rwsem.c:1690
 inode_lock_nested include/linux/fs.h:806 [inline]
 lock_two_inodes+0xfa/0x1e0 fs/inode.c:1140
 ext4_move_extents+0x3b7/0x3b80 fs/ext4/move_extent.c:614
 __ext4_ioctl+0x3ca3/0x47d0 fs/ext4/ioctl.c:1361
 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+0x18f/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f009a67cae9
RSP: 002b:00007f009b3700c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f009a79c120 RCX: 00007f009a67cae9
RDX: 0000000020000180 RSI: 00000000c028660f RDI: 0000000000000005
RBP: 00007f009a6c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f009a79c120 R15: 00007ffe176cd8d8
 </TASK>
INFO: task syz-executor.5:10027 blocked for more than 144 seconds.
      Not tainted 6.5.0-rc6-syzkaller-01712-g23c167af2404 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5  state:D stack:26768 pid:10027 ppid:5064   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5381 [inline]
 __schedule+0xee1/0x59f0 kernel/sched/core.c:6710
 schedule+0xe7/0x1b0 kernel/sched/core.c:6786
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845
 rwsem_down_write_slowpath+0x53e/0x1290 kernel/locking/rwsem.c:1178
 __down_write_common kernel/locking/rwsem.c:1306 [inline]
 __down_write kernel/locking/rwsem.c:1315 [inline]
 down_write+0x1d3/0x200 kernel/locking/rwsem.c:1574
 inode_lock include/linux/fs.h:771 [inline]
 process_measurement+0x39b/0x1cc0 security/integrity/ima/ima_main.c:247
 ima_file_check+0xc2/0x110 security/integrity/ima/ima_main.c:543
 do_open fs/namei.c:3638 [inline]
 path_openat+0x17a1/0x29c0 fs/namei.c:3793
 do_filp_open+0x1de/0x430 fs/namei.c:3820
 do_sys_openat2+0x176/0x1e0 fs/open.c:1407
 do_sys_open fs/open.c:1422 [inline]
 __do_sys_openat fs/open.c:1438 [inline]
 __se_sys_openat fs/open.c:1433 [inline]
 __x64_sys_openat+0x175/0x210 fs/open.c:1433
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f009a67cae9
RSP: 002b:00007f009b32e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f009a79c2c0 RCX: 00007f009a67cae9
RDX: 0b00000000065808 RSI: 0000000020000080 RDI: ffffffffffffff9c
RBP: 00007f009a6c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f009a79c2c0 R15: 00007ffe176cd8d8
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/0:1/9:
 #0: ffff8880b983c3d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:558
 #1: ffff8880b9828848 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2d9/0x900 kernel/sched/psi.c:999
 #2: ffff888040b58768 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: wiphy_lock include/net/cfg80211.h:5776 [inline]
 #2: ffff888040b58768 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: cfg80211_wiphy_work+0x2b/0x330 net/wireless/core.c:422
1 lock held by rcu_tasks_kthre/13:
 #0: ffffffff8c9a6f30 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x2c/0xe20 kernel/rcu/tasks.h:522
1 lock held by rcu_tasks_trace/14:
 #0: ffffffff8c9a6c30 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x2c/0xe20 kernel/rcu/tasks.h:522
1 lock held by khungtaskd/28:
 #0: ffffffff8c9a7b40 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6615
3 locks held by kworker/u4:2/41:
4 locks held by kworker/u4:7/2900:
2 locks held by getty/4788:
 #0: ffff888028f75098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffffc900015872f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfcb/0x1480 drivers/tty/n_tty.c:2187
3 locks held by syz-fuzzer/5020:
 #0: ffff88814ba98410 (sb_writers#4){.+.+}-{0:0}, at: do_unlinkat+0x1ca/0x6d0 fs/namei.c:4376
 #1: ffff888043e2ac00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:806 [inline]
 #1: ffff888043e2ac00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_unlinkat+0x27c/0x6d0 fs/namei.c:4380
 #2: ffff88802dbf5400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:771 [inline]
 #2: ffff88802dbf5400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: vfs_unlink+0xd3/0x900 fs/namei.c:4318
3 locks held by syz-fuzzer/5026:
 #0: ffff88814ba98410 (sb_writers#4){.+.+}-{0:0}, at: do_unlinkat+0x1ca/0x6d0 fs/namei.c:4376
 #1: ffff88802dbf1800 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:806 [inline]
 #1: ffff88802dbf1800 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_unlinkat+0x27c/0x6d0 fs/namei.c:4380
 #2: ffff88802dbf4a00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:771 [inline]
 #2: ffff88802dbf4a00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: vfs_unlink+0xd3/0x900 fs/namei.c:4318
3 locks held by syz-fuzzer/5027:
 #0: ffff88814ba98410 (sb_writers#4){.+.+}-{0:0}, at: do_unlinkat+0x1ca/0x6d0 fs/namei.c:4376
 #1: ffff88802da92c00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:806 [inline]
 #1: ffff88802da92c00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_unlinkat+0x27c/0x6d0 fs/namei.c:4380
 #2: ffff88802d9dc000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:771 [inline]
 #2: ffff88802d9dc000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: vfs_unlink+0xd3/0x900 fs/namei.c:4318
3 locks held by syz-fuzzer/5052:
 #0: ffff88814ba98410 (sb_writers#4){.+.+}-{0:0}, at: do_unlinkat+0x1ca/0x6d0 fs/namei.c:4376
 #1: ffff88802da90e00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:806 [inline]
 #1: ffff88802da90e00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_unlinkat+0x27c/0x6d0 fs/namei.c:4380
 #2: ffff888043e2c000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:771 [inline]
 #2: ffff888043e2c000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: vfs_unlink+0xd3/0x900 fs/namei.c:4318
3 locks held by syz-fuzzer/5057:
 #0: ffff88814ba98410 (sb_writers#4){.+.+}-{0:0}, at: do_unlinkat+0x1ca/0x6d0 fs/namei.c:4376
 #1: ffff888056c2c000 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:806 [inline]
 #1: ffff888056c2c000 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_unlinkat+0x27c/0x6d0 fs/namei.c:4380
 #2: ffff88802dade800 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:771 [inline]
 #2: ffff88802dade800 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: vfs_unlink+0xd3/0x900 fs/namei.c:4318
3 locks held by syz-fuzzer/5169:
 #0: ffff88814ba98410 (sb_writers#4){.+.+}-{0:0}, at: do_unlinkat+0x1ca/0x6d0 fs/namei.c:4376
 #1: ffff888043c04a00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:806 [inline]
 #1: ffff888043c04a00 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_unlinkat+0x27c/0x6d0 fs/namei.c:4380
 #2: ffff88802d9dde00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:771 [inline]
 #2: ffff88802d9dde00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: vfs_unlink+0xd3/0x900 fs/namei.c:4318
1 lock held by syz-executor.2/9983:
 #0: ffff88814ba9abd8 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553
2 locks held by syz-executor.2/9986:
 #0: ffff88802dbf5400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:781 [inline]
 #0: ffff88802dbf5400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_bmap+0x4f/0x280 fs/ext4/inode.c:3055
 #1: ffff88814ba9abd8 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553
2 locks held by syz-executor.2/9989:
 #0: ffff88814ba98410 (sb_writers#4){.+.+}-{0:0}, at: __ext4_ioctl+0x33f6/0x47d0 fs/ext4/ioctl.c:1357
 #1: ffff88802dbf5400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_nested include/linux/fs.h:806 [inline]
 #1: ffff88802dbf5400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: lock_two_inodes+0xfa/0x1e0 fs/inode.c:1140
1 lock held by syz-executor.3/9987:
 #0: ffff88814ba9abd8 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553
2 locks held by syz-executor.3/9990:
2 locks held by syz-executor.3/9993:
 #0: ffff88814ba98410 (sb_writers#4){.+.+}-{0:0}, at: __ext4_ioctl+0x33f6/0x47d0 fs/ext4/ioctl.c:1357
 #1: ffff88802dbf4a00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_nested include/linux/fs.h:806 [inline]
 #1: ffff88802dbf4a00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: lock_two_inodes+0xfa/0x1e0 fs/inode.c:1140
1 lock held by syz-executor.1/10008:
 #0: ffff88814ba9abd8 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553
2 locks held by syz-executor.1/10010:
 #0: ffff88802dade800 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:781 [inline]
 #0: ffff88802dade800 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_dio_read_iter fs/ext4/file.c:78 [inline]
 #0: ffff88802dade800 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_file_read_iter+0x556/0x6c0 fs/ext4/file.c:145
 #1: ffff88814ba9abd8 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553
3 locks held by syz-executor.5/10021:
 #0: ffff88802d9dc000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:781 [inline]
 #0: ffff88802d9dc000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_bmap+0x4f/0x280 fs/ext4/inode.c:3055
 #1: ffff88814ba9abd8 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553
 #2: ffff8880b983c3d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:558
2 locks held by syz-executor.5/10023:
 #0: ffff88814ba98410 (sb_writers#4){.+.+}-{0:0}, at: __ext4_ioctl+0x33f6/0x47d0 fs/ext4/ioctl.c:1357
 #1: ffff88802d9dc000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_nested include/linux/fs.h:806 [inline]
 #1: ffff88802d9dc000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: lock_two_inodes+0xfa/0x1e0 fs/inode.c:1140
2 locks held by syz-executor.5/10024:
 #0: ffff88814ba98410 (sb_writers#4){.+.+}-{0:0}, at: __ext4_ioctl+0x29a9/0x47d0 fs/ext4/ioctl.c:1411
 #1: ffff88814ba9abd8 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553
1 lock held by syz-executor.5/10027:
 #0: ffff88802d9dc000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock include/linux/fs.h:771 [inline]
 #0: ffff88802d9dc000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: process_measurement+0x39b/0x1cc0 security/integrity/ima/ima_main.c:247
1 lock held by syz-executor.4/10018:
 #0: ffff88814ba9abd8 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553
2 locks held by syz-executor.4/10022:
 #0: ffff888043e2c000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:781 [inline]
 #0: ffff888043e2c000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_dio_read_iter fs/ext4/file.c:78 [inline]
 #0: ffff888043e2c000 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_file_read_iter+0x556/0x6c0 fs/ext4/file.c:145
 #1: ffff88814ba9abd8 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553
1 lock held by syz-executor.0/10025:
 #0: ffff88814ba9abd8 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553
2 locks held by syz-executor.0/10028:
 #0: ffff88802d9dde00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:781 [inline]
 #0: ffff88802d9dde00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_dio_read_iter fs/ext4/file.c:78 [inline]
 #0: ffff88802d9dde00 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_file_read_iter+0x556/0x6c0 fs/ext4/file.c:145
 #1: ffff88814ba9abd8 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x1b4/0x690 mm/page-writeback.c:2553

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

NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.5.0-rc6-syzkaller-01712-g23c167af2404 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x277/0x380 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x2ac/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+0xf29/0x11b0 kernel/hung_task.c:379
 kthread+0x33a/0x430 kernel/kthread.c:389
 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 41 Comm: kworker/u4:2 Not tainted 6.5.0-rc6-syzkaller-01712-g23c167af2404 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
Workqueue: bat_events batadv_purge_orig
RIP: 0010:hlock_class kernel/locking/lockdep.c:240 [inline]
RIP: 0010:mark_lock+0x118/0x1950 kernel/locking/lockdep.c:4663
Code: d0 48 89 54 24 38 48 c1 e8 06 48 8d 3c c5 80 4e 86 91 e8 db 6c 74 00 48 8b 54 24 38 48 0f a3 15 3e ac 1f 10 0f 83 61 01 00 00 <48> 69 d2 d0 00 00 00 48 81 c2 a0 52 86 91 48 8d 7a 60 48 b8 00 00
RSP: 0018:ffffc90000b279a0 EFLAGS: 00000047
RAX: 0000000000000001 RBX: ffff888017642888 RCX: ffffffff8166a235
RDX: 00000000000006de RSI: 0000000000000008 RDI: ffffffff91864f58
RBP: ffffc90000b27b08 R08: 0000000000000000 R09: fffffbfff230c9eb
R10: ffffffff91864f5f R11: 0000000000000000 R12: 0000000000000004
R13: 0000000000000002 R14: 1ffff92000164f3c R15: ffff8880176428a8
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0010ee0c8 CR3: 000000000c776000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 mark_held_locks+0x9f/0xe0 kernel/locking/lockdep.c:4281
 __trace_hardirqs_on_caller kernel/locking/lockdep.c:4299 [inline]
 lockdep_hardirqs_on_prepare kernel/locking/lockdep.c:4366 [inline]
 lockdep_hardirqs_on_prepare+0x139/0x410 kernel/locking/lockdep.c:4318
 trace_hardirqs_on+0x36/0x40 kernel/trace/trace_preemptirq.c:61
 __local_bh_enable_ip+0xa4/0x120 kernel/softirq.c:386
 spin_unlock_bh include/linux/spinlock.h:396 [inline]
 batadv_purge_orig_ref+0xec7/0x1520 net/batman-adv/originator.c:1259
 batadv_purge_orig+0x19/0x60 net/batman-adv/originator.c:1272
 process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2600
 worker_thread+0x687/0x1110 kernel/workqueue.c:2751
 kthread+0x33a/0x430 kernel/kthread.c:389
 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/24 13:06 net-next 23c167af2404 4d7ae7ab .config console log report info ci-upstream-net-kasan-gce INFO: task hung in lock_two_inodes
* Struck through repros no longer work on HEAD.