loop3: detected capacity change from 0 to 32768 ocfs2: Mounting device (7,3) on (node local, slot 0) with writeback data mode. ====================================================== WARNING: possible circular locking dependency detected 6.16.0-next-20250808-syzkaller #0 Not tainted ------------------------------------------------------ syz.3.1459/14288 is trying to acquire lock: ffff88804eb33f60 (&ocfs2_file_ip_alloc_sem_key){++++}-{4:4}, at: ocfs2_page_mkwrite+0x2ff/0xc40 fs/ocfs2/mmap.c:142 but task is already holding lock: ffff88805fe16520 (sb_pagefaults#5){.+.+}-{0:0}, at: do_page_mkwrite+0x14d/0x310 mm/memory.c:3361 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (sb_pagefaults#5){.+.+}-{0:0}: lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 percpu_down_read_internal include/linux/percpu-rwsem.h:53 [inline] percpu_down_read_freezable include/linux/percpu-rwsem.h:83 [inline] __sb_start_write include/linux/fs.h:1798 [inline] sb_start_pagefault include/linux/fs.h:1963 [inline] ocfs2_page_mkwrite+0x1da/0xc40 fs/ocfs2/mmap.c:122 do_page_mkwrite+0x14d/0x310 mm/memory.c:3361 do_shared_fault mm/memory.c:5649 [inline] do_fault mm/memory.c:5711 [inline] do_pte_missing mm/memory.c:4234 [inline] handle_pte_fault mm/memory.c:6052 [inline] __handle_mm_fault+0x1916/0x5440 mm/memory.c:6195 handle_mm_fault+0x40a/0x8e0 mm/memory.c:6364 do_user_addr_fault+0x764/0x1390 arch/x86/mm/fault.c:1387 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x76/0xf0 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 rep_movs_alternative+0x11/0x90 arch/x86/lib/copy_user_64.S:46 copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:147 [inline] _inline_copy_to_user include/linux/uaccess.h:197 [inline] _copy_to_user+0x8a/0xb0 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:225 [inline] do_timer_create+0xb4c/0x11a0 kernel/time/posix-timers.c:533 __do_sys_timer_create kernel/time/posix-timers.c:-1 [inline] __se_sys_timer_create kernel/time/posix-timers.c:574 [inline] __x64_sys_timer_create+0x13f/0x190 kernel/time/posix-timers.c:574 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #1 (&mm->mmap_lock){++++}-{4:4}: lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 __might_fault+0xcc/0x130 mm/memory.c:6958 _inline_copy_to_user include/linux/uaccess.h:192 [inline] _copy_to_user+0x2c/0xb0 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:225 [inline] fiemap_fill_next_extent+0x1c0/0x390 fs/ioctl.c:145 ocfs2_fiemap_inline fs/ocfs2/extent_map.c:735 [inline] ocfs2_fiemap+0x9dc/0xc90 fs/ocfs2/extent_map.c:772 ioctl_fiemap fs/ioctl.c:220 [inline] do_vfs_ioctl+0x1173/0x1430 fs/ioctl.c:532 __do_sys_ioctl fs/ioctl.c:596 [inline] __se_sys_ioctl+0x82/0x170 fs/ioctl.c:584 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #0 (&ocfs2_file_ip_alloc_sem_key){++++}-{4:4}: check_prev_add kernel/locking/lockdep.c:3165 [inline] check_prevs_add kernel/locking/lockdep.c:3284 [inline] validate_chain+0xb9b/0x2140 kernel/locking/lockdep.c:3908 __lock_acquire+0xab9/0xd20 kernel/locking/lockdep.c:5237 lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 down_write+0x96/0x1f0 kernel/locking/rwsem.c:1590 ocfs2_page_mkwrite+0x2ff/0xc40 fs/ocfs2/mmap.c:142 do_page_mkwrite+0x14d/0x310 mm/memory.c:3361 do_shared_fault mm/memory.c:5649 [inline] do_fault mm/memory.c:5711 [inline] do_pte_missing mm/memory.c:4234 [inline] handle_pte_fault mm/memory.c:6052 [inline] __handle_mm_fault+0x1916/0x5440 mm/memory.c:6195 handle_mm_fault+0x40a/0x8e0 mm/memory.c:6364 do_user_addr_fault+0x764/0x1390 arch/x86/mm/fault.c:1387 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x76/0xf0 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 rep_movs_alternative+0x11/0x90 arch/x86/lib/copy_user_64.S:46 copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:147 [inline] _inline_copy_to_user include/linux/uaccess.h:197 [inline] _copy_to_user+0x8a/0xb0 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:225 [inline] do_timer_create+0xb4c/0x11a0 kernel/time/posix-timers.c:533 __do_sys_timer_create kernel/time/posix-timers.c:-1 [inline] __se_sys_timer_create kernel/time/posix-timers.c:574 [inline] __x64_sys_timer_create+0x13f/0x190 kernel/time/posix-timers.c:574 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f other info that might help us debug this: Chain exists of: &ocfs2_file_ip_alloc_sem_key --> &mm->mmap_lock --> sb_pagefaults#5 Possible unsafe locking scenario: CPU0 CPU1 ---- ---- rlock(sb_pagefaults#5); lock(&mm->mmap_lock); lock(sb_pagefaults#5); lock(&ocfs2_file_ip_alloc_sem_key); *** DEADLOCK *** 2 locks held by syz.3.1459/14288: #0: ffff888079982220 (&mm->mmap_lock){++++}-{4:4}, at: mmap_read_trylock include/linux/mmap_lock.h:472 [inline] #0: ffff888079982220 (&mm->mmap_lock){++++}-{4:4}, at: get_mmap_lock_carefully mm/mmap_lock.c:277 [inline] #0: ffff888079982220 (&mm->mmap_lock){++++}-{4:4}, at: lock_mm_and_find_vma+0x32/0x300 mm/mmap_lock.c:337 #1: ffff88805fe16520 (sb_pagefaults#5){.+.+}-{0:0}, at: do_page_mkwrite+0x14d/0x310 mm/memory.c:3361 stack backtrace: CPU: 1 UID: 0 PID: 14288 Comm: syz.3.1459 Not tainted 6.16.0-next-20250808-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_circular_bug+0x2ee/0x310 kernel/locking/lockdep.c:2043 check_noncircular+0x134/0x160 kernel/locking/lockdep.c:2175 check_prev_add kernel/locking/lockdep.c:3165 [inline] check_prevs_add kernel/locking/lockdep.c:3284 [inline] validate_chain+0xb9b/0x2140 kernel/locking/lockdep.c:3908 __lock_acquire+0xab9/0xd20 kernel/locking/lockdep.c:5237 lock_acquire+0x120/0x360 kernel/locking/lockdep.c:5868 down_write+0x96/0x1f0 kernel/locking/rwsem.c:1590 ocfs2_page_mkwrite+0x2ff/0xc40 fs/ocfs2/mmap.c:142 do_page_mkwrite+0x14d/0x310 mm/memory.c:3361 do_shared_fault mm/memory.c:5649 [inline] do_fault mm/memory.c:5711 [inline] do_pte_missing mm/memory.c:4234 [inline] handle_pte_fault mm/memory.c:6052 [inline] __handle_mm_fault+0x1916/0x5440 mm/memory.c:6195 handle_mm_fault+0x40a/0x8e0 mm/memory.c:6364 do_user_addr_fault+0x764/0x1390 arch/x86/mm/fault.c:1387 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x76/0xf0 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:rep_movs_alternative+0x11/0x90 arch/x86/lib/copy_user_64.S:47 Code: e9 d4 0a 04 00 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 48 83 f9 40 73 44 83 f9 08 73 25 85 c9 74 0f 8a 06 <88> 07 48 ff c7 48 ff c6 48 ff c9 75 f1 c3 cc cc cc cc 66 2e 0f 1f RSP: 0018:ffffc9000b897ca8 EFLAGS: 00050202 RAX: ffffffff84c97600 RBX: 0000000000000004 RCX: 0000000000000004 RDX: 0000000000000000 RSI: ffffc9000b897d70 RDI: 0000200000001b40 RBP: ffffc9000b897dd0 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52001712fae R12: 0000200000001b44 R13: 00007ffffffff000 R14: ffffc9000b897d70 R15: 0000200000001b40 copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:147 [inline] _inline_copy_to_user include/linux/uaccess.h:197 [inline] _copy_to_user+0x8a/0xb0 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:225 [inline] do_timer_create+0xb4c/0x11a0 kernel/time/posix-timers.c:533 __do_sys_timer_create kernel/time/posix-timers.c:-1 [inline] __se_sys_timer_create kernel/time/posix-timers.c:574 [inline] __x64_sys_timer_create+0x13f/0x190 kernel/time/posix-timers.c:574 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd20af8ebe9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd20bd49038 EFLAGS: 00000246 ORIG_RAX: 00000000000000de RAX: ffffffffffffffda RBX: 00007fd20b1b5fa0 RCX: 00007fd20af8ebe9 RDX: 0000200000001b40 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007fd20b011e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd20b1b6038 R14: 00007fd20b1b5fa0 R15: 00007ffe8655ba08 ---------------- Code disassembly (best guess): 0: e9 d4 0a 04 00 jmp 0x40ad9 5: cc int3 6: cc int3 7: cc int3 8: cc int3 9: 90 nop a: 90 nop b: 90 nop c: 90 nop d: 90 nop e: 90 nop f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 48 83 f9 40 cmp $0x40,%rcx 1d: 73 44 jae 0x63 1f: 83 f9 08 cmp $0x8,%ecx 22: 73 25 jae 0x49 24: 85 c9 test %ecx,%ecx 26: 74 0f je 0x37 28: 8a 06 mov (%rsi),%al * 2a: 88 07 mov %al,(%rdi) <-- trapping instruction 2c: 48 ff c7 inc %rdi 2f: 48 ff c6 inc %rsi 32: 48 ff c9 dec %rcx 35: 75 f1 jne 0x28 37: c3 ret 38: cc int3 39: cc int3 3a: cc int3 3b: cc int3 3c: 66 data16 3d: 2e cs 3e: 0f .byte 0xf 3f: 1f (bad)