EXT4-fs (loop3): 1 orphan inode deleted EXT4-fs (loop3): mounted filesystem without journal. Opts: errors=remount-ro,orlov,noload,dioread_lock,stripe=0x000. Quota mode: writeback. ===================================== WARNING: bad unlock balance detected! 5.15.103-syzkaller #0 Not tainted ------------------------------------- syz-executor.3/7338 is trying to release lock (&type->i_mutex_dir_key) at: [] inode_unlock include/linux/fs.h:792 [inline] [] ext4_rename fs/ext4/namei.c:4036 [inline] [] ext4_rename2+0x2e18/0x3440 fs/ext4/namei.c:4209 but there are no more locks to release! other info that might help us debug this: 2 locks held by syz-executor.3/7338: #0: ffff00011d7f6460 (sb_writers#3){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:377 #1: ffff00011f1683f0 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:822 [inline] #1: ffff00011f1683f0 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_rename+0xf0/0x18c fs/namei.c:2967 stack backtrace: CPU: 1 PID: 7338 Comm: syz-executor.3 Not tainted 5.15.103-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 print_unlock_imbalance_bug+0x250/0x2a4 kernel/locking/lockdep.c:5064 lock_release+0x56c/0xb30 kernel/locking/lockdep.c:5642 up_write+0x98/0x438 kernel/locking/rwsem.c:1593 inode_unlock include/linux/fs.h:792 [inline] ext4_rename fs/ext4/namei.c:4036 [inline] ext4_rename2+0x2e18/0x3440 fs/ext4/namei.c:4209 vfs_rename+0x9e0/0xe80 fs/namei.c:4736 do_renameat2+0x980/0x1040 fs/namei.c:4887 __do_sys_renameat2 fs/namei.c:4920 [inline] __se_sys_renameat2 fs/namei.c:4917 [inline] __arm64_sys_renameat2+0xe0/0xfc fs/namei.c:4917 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ------------[ cut here ]------------ DEBUG_RWSEMS_WARN_ON((rwsem_owner(sem) != current) && !rwsem_test_oflags(sem, RWSEM_NONSPINNABLE)): count = 0x0, magic = 0xffff0001187a2b60, owner = 0x0, curr 0xffff0000d3d08000, list empty WARNING: CPU: 1 PID: 7338 at kernel/locking/rwsem.c:1342 __up_write kernel/locking/rwsem.c:1341 [inline] WARNING: CPU: 1 PID: 7338 at kernel/locking/rwsem.c:1342 up_write+0x384/0x438 kernel/locking/rwsem.c:1594 Modules linked in: CPU: 1 PID: 7338 Comm: syz-executor.3 Not tainted 5.15.103-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __up_write kernel/locking/rwsem.c:1341 [inline] pc : up_write+0x384/0x438 kernel/locking/rwsem.c:1594 lr : __up_write kernel/locking/rwsem.c:1341 [inline] lr : up_write+0x384/0x438 kernel/locking/rwsem.c:1594 sp : ffff8000227874e0 x29: ffff8000227874f0 x28: ffff800022787650 x27: dfff800000000000 x26: dfff800000000000 x25: 1fffe000230f4579 x24: ffff0001187a2bb8 x23: 0000000000000000 x22: 0000000000000000 x21: ffff0000d3d08000 x20: ffff0001187a2b60 x19: ffff0001187a2b60 x18: 1fffe0003690058e x17: 1fffe0003690058e x16: ffff800011a05534 x15: ffff800014a5f960 x14: ffff0001b4802c80 x13: ffffffffffffffff x12: 0000000000040000 x11: 0000000000012273 x10: ffff800022839000 x9 : 18bf9ae2f331a200 x8 : 18bf9ae2f331a200 x7 : 0000000000000000 x6 : ffff80000826caac x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000085517f0 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 00000000000000bd Call trace: __up_write kernel/locking/rwsem.c:1341 [inline] up_write+0x384/0x438 kernel/locking/rwsem.c:1594 inode_unlock include/linux/fs.h:792 [inline] ext4_rename fs/ext4/namei.c:4036 [inline] ext4_rename2+0x2e18/0x3440 fs/ext4/namei.c:4209 vfs_rename+0x9e0/0xe80 fs/namei.c:4736 do_renameat2+0x980/0x1040 fs/namei.c:4887 __do_sys_renameat2 fs/namei.c:4920 [inline] __se_sys_renameat2 fs/namei.c:4917 [inline] __arm64_sys_renameat2+0xe0/0xfc fs/namei.c:4917 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 3741 hardirqs last enabled at (3741): [] lookup_bh_lru fs/buffer.c:1294 [inline] hardirqs last enabled at (3741): [] __find_get_block+0x1d0/0xdd4 fs/buffer.c:1306 hardirqs last disabled at (3740): [] lookup_bh_lru fs/buffer.c:1275 [inline] hardirqs last disabled at (3740): [] __find_get_block+0xa0/0xdd4 fs/buffer.c:1306 softirqs last enabled at (3644): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (3642): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace 28593b6b75924017 ]---