loop3: detected capacity change from 0 to 32768 JBD2: Ignoring recovery information on journal ocfs2: Mounting device (7,3) on (node local, slot 0) with ordered data mode. ============================================ WARNING: possible recursive locking detected syzkaller #0 Not tainted -------------------------------------------- syz.3.2912/15122 is trying to acquire lock: ffff88804c778660 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}, at: ocfs2_read_virt_blocks+0x266/0x980 fs/ocfs2/extent_map.c:984 but task is already holding lock: ffff88804c71dbe0 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}, at: ocfs2_move_extents+0x3fc/0xa40 fs/ocfs2/move_extents.c:938 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&ocfs2_file_ip_alloc_sem_key); lock(&ocfs2_file_ip_alloc_sem_key); *** DEADLOCK *** May be due to missing lock nesting notation 10 locks held by syz.3.2912/15122: #0: ffff88802a4d2460 (sb_writers#26){.+.+}-{0:0}, at: mnt_want_write_file+0x5c/0x200 fs/namespace.c:446 #1: ffff88804c71df48 (&sb->s_type->i_mutex_key#30){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff88804c71df48 (&sb->s_type->i_mutex_key#30){+.+.}-{3:3}, at: ocfs2_move_extents+0x19d/0xa40 fs/ocfs2/move_extents.c:918 #2: ffff88804c71dbe0 (&ocfs2_file_ip_alloc_sem_key){++++}-{3:3}, at: ocfs2_move_extents+0x3fc/0xa40 fs/ocfs2/move_extents.c:938 #3: ffff888063699898 (&new->rf_sem){+.+.}-{3:3}, at: __ocfs2_lock_refcount_tree fs/ocfs2/refcounttree.c:428 [inline] #3: ffff888063699898 (&new->rf_sem){+.+.}-{3:3}, at: ocfs2_lock_refcount_tree+0x1aa/0x9d0 fs/ocfs2/refcounttree.c:463 #4: ffff88804c77c2c8 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #4: ffff88804c77c2c8 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x16a/0x4810 fs/ocfs2/suballoc.c:804 #5: ffff88804c77ed88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #5: ffff88804c77ed88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_move_extent fs/ocfs2/move_extents.c:640 [inline] #5: ffff88804c77ed88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: __ocfs2_move_extents_range+0x131f/0x3450 fs/ocfs2/move_extents.c:868 #6: ffff88804c71ed88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #6: ffff88804c71ed88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#6){+.+.}-{3:3}, at: ocfs2_move_extent fs/ocfs2/move_extents.c:648 [inline] #6: ffff88804c71ed88 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#6){+.+.}-{3:3}, at: __ocfs2_move_extents_range+0x1a31/0x3450 fs/ocfs2/move_extents.c:868 #7: ffff88802a4d2650 (sb_internal#2){.+.+}-{0:0}, at: ocfs2_move_extent fs/ocfs2/move_extents.c:650 [inline] #7: ffff88802a4d2650 (sb_internal#2){.+.+}-{0:0}, at: __ocfs2_move_extents_range+0x1a42/0x3450 fs/ocfs2/move_extents.c:868 #8: ffff888078ee44e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x3a4/0x6f0 fs/ocfs2/journal.c:374 #9: ffff8880244a8990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x2014/0x2240 fs/jbd2/transaction.c:463 stack backtrace: CPU: 1 PID: 15122 Comm: syz.3.2912 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 __lock_acquire+0x12c8/0x7c40 kernel/locking/lockdep.c:-1 lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5676 down_read+0x42/0x2d0 kernel/locking/rwsem.c:1520 ocfs2_read_virt_blocks+0x266/0x980 fs/ocfs2/extent_map.c:984 ocfs2_read_dir_block fs/ocfs2/dir.c:508 [inline] ocfs2_find_entry_el fs/ocfs2/dir.c:715 [inline] ocfs2_find_entry+0x3a8/0x2080 fs/ocfs2/dir.c:1091 ocfs2_find_files_on_disk+0x102/0x390 fs/ocfs2/dir.c:1995 ocfs2_lookup_ino_from_name+0x4f/0xf0 fs/ocfs2/dir.c:2017 ocfs2_find_victim_alloc_group+0x203/0x9e0 fs/ocfs2/move_extents.c:385 ocfs2_move_extent fs/ocfs2/move_extents.c:658 [inline] __ocfs2_move_extents_range+0x1c72/0x3450 fs/ocfs2/move_extents.c:868 ocfs2_move_extents+0x409/0xa40 fs/ocfs2/move_extents.c:940 ocfs2_ioctl_move_extents+0x4d4/0x6e0 fs/ocfs2/move_extents.c:1066 ocfs2_ioctl+0x31d/0x7c0 fs/ocfs2/ioctl.c:946 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7faf87f9e019 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007faf88e02028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007faf88225fa0 RCX: 00007faf87f9e019 RDX: 00002000000000c0 RSI: 0000000040406f06 RDI: 0000000000000005 RBP: 00007faf8803500c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007faf88226038 R14: 00007faf88225fa0 R15: 00007ffeca462388