loop0: detected capacity change from 0 to 32768 ======================================================= WARNING: The mand mount option has been deprecated and and is ignored by this kernel. Remove the mand option from the mount to silence this warning. ======================================================= ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=11347, nr_sectors = 1 limit=0 Buffer I/O error on dev loop0, logical block 11347, async page read syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=11348, nr_sectors = 1 limit=0 Buffer I/O error on dev loop0, logical block 11348, async page read syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=11349, nr_sectors = 1 limit=0 Buffer I/O error on dev loop0, logical block 11349, async page read syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=11350, nr_sectors = 1 limit=0 Buffer I/O error on dev loop0, logical block 11350, async page read syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=11351, nr_sectors = 1 limit=0 Buffer I/O error on dev loop0, logical block 11351, async page read ================================================================== BUG: KFENCE: use-after-free read in ocfs2_fault+0xe9/0x3d0 fs/ocfs2/mmap.c:41 Use-after-free read at 0xffff88805f238fc8 (in kfence-#27): ocfs2_fault+0xe9/0x3d0 fs/ocfs2/mmap.c:41 __do_fault+0x135/0x460 mm/memory.c:4907 do_read_fault mm/memory.c:5322 [inline] do_fault mm/memory.c:5456 [inline] do_pte_missing mm/memory.c:3979 [inline] handle_pte_fault+0x335a/0x68a0 mm/memory.c:5801 __handle_mm_fault mm/memory.c:5944 [inline] handle_mm_fault+0x1106/0x1bb0 mm/memory.c:6112 do_user_addr_fault arch/x86/mm/fault.c:1389 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x2b9/0x8b0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 fault_in_readable+0x173/0x2d0 fault_in_iov_iter_readable+0x229/0x280 lib/iov_iter.c:94 generic_perform_write+0x259/0x6d0 mm/filemap.c:4045 ocfs2_file_write_iter+0x19af/0x2180 fs/ocfs2/file.c:2469 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f kfence-#27: 0xffff88805f238f48-0xffff88805f238fff, size=184, cache=vm_area_struct allocated by task 5316 on cpu 0 at 58.689942s (0.164779s ago): vm_area_alloc+0x24/0x1d0 kernel/fork.c:472 __mmap_new_vma mm/vma.c:2340 [inline] __mmap_region+0x196e/0x2cd0 mm/vma.c:2456 mmap_region+0x226/0x2c0 mm/mmap.c:1347 do_mmap+0x8f0/0x1000 mm/mmap.c:496 vm_mmap_pgoff+0x1dd/0x3d0 mm/util.c:580 ksys_mmap_pgoff+0x4eb/0x720 mm/mmap.c:542 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f freed by task 16 on cpu 0 at 58.779840s (0.091953s ago): rcu_do_batch kernel/rcu/tree.c:2567 [inline] rcu_core+0xaaa/0x17a0 kernel/rcu/tree.c:2823 handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:554 run_ksoftirqd+0xca/0x130 kernel/softirq.c:943 smpboot_thread_fn+0x544/0xa30 kernel/smpboot.c:164 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 CPU: 0 UID: 0 PID: 5315 Comm: syz.0.0 Not tainted 6.13.0-rc1-syzkaller-00025-gfeffde684ac2 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:ocfs2_fault+0xe9/0x3d0 fs/ocfs2/mmap.c:41 Code: 4c 89 e7 e8 49 63 0b 00 48 89 5c 24 18 48 81 c3 80 00 00 00 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 d7 59 6e fe <48> 8b 1b 48 83 c3 58 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 RSP: 0018:ffffc9000d407020 EFLAGS: 00010246 RAX: 1ffff1100be471f9 RBX: ffff88805f238fc8 RCX: 0000000000100000 RDX: ffffc9000e48a000 RSI: 000000000005b2c6 RDI: 000000000005b2c7 RBP: ffffc9000d4070d8 R08: ffffffff83a76367 R09: 1ffffffff2857130 R10: dffffc0000000000 R11: fffffbfff2857131 R12: ffffc9000d407060 R13: dffffc0000000000 R14: ffffc9000d4075c0 R15: 1ffff92001a80e08 FS: 00007f394f1ad6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffff88805f238fc8 CR3: 00000000431f0000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __do_fault+0x135/0x460 mm/memory.c:4907 do_read_fault mm/memory.c:5322 [inline] do_fault mm/memory.c:5456 [inline] do_pte_missing mm/memory.c:3979 [inline] handle_pte_fault+0x335a/0x68a0 mm/memory.c:5801 __handle_mm_fault mm/memory.c:5944 [inline] handle_mm_fault+0x1106/0x1bb0 mm/memory.c:6112 do_user_addr_fault arch/x86/mm/fault.c:1389 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x2b9/0x8b0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0010:fault_in_readable+0x173/0x2d0 mm/gup.c:2235 Code: 00 fc ff df 4c 89 e8 4f 8d ac 25 ff 0f 00 00 49 81 e5 00 f0 ff ff 49 39 c5 72 7a e8 37 de b2 ff 4c 39 eb 74 7d 4c 89 64 24 08 <44> 8a 23 43 0f b6 04 3e 84 c0 75 18 44 88 64 24 40 48 81 c3 00 10 RSP: 0018:ffffc9000d4077c0 EFLAGS: 00050287 RAX: ffffffff81ec93e9 RBX: 00000000200e0000 RCX: 0000000000100000 RDX: ffffc9000e48a000 RSI: 0000000000056cd4 RDI: 0000000000056cd5 RBP: ffffc9000d407878 R08: ffffffff81ec937c R09: ffffffff84c7aef9 R10: 0000000000000002 R11: ffff88801f490000 R12: 0000000000000ff5 R13: 00000000200e1000 R14: 1ffff92001a80f00 R15: dffffc0000000000 fault_in_iov_iter_readable+0x229/0x280 lib/iov_iter.c:94 generic_perform_write+0x259/0x6d0 mm/filemap.c:4045 ocfs2_file_write_iter+0x19af/0x2180 fs/ocfs2/file.c:2469 new_sync_write fs/read_write.c:586 [inline] vfs_write+0xaeb/0xd30 fs/read_write.c:679 ksys_write+0x18f/0x2b0 fs/read_write.c:731 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f394e37ff19 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:00007f394f1ad058 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f394e545fa0 RCX: 00007f394e37ff19 RDX: 000000000208e24b RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00007f394e3f3986 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f394e545fa0 R15: 00007ffe6e23f4f8 ================================================================== ---------------- Code disassembly (best guess): 0: 4c 89 e7 mov %r12,%rdi 3: e8 49 63 0b 00 call 0xb6351 8: 48 89 5c 24 18 mov %rbx,0x18(%rsp) d: 48 81 c3 80 00 00 00 add $0x80,%rbx 14: 48 89 d8 mov %rbx,%rax 17: 48 c1 e8 03 shr $0x3,%rax 1b: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 20: 74 08 je 0x2a 22: 48 89 df mov %rbx,%rdi 25: e8 d7 59 6e fe call 0xfe6e5a01 * 2a: 48 8b 1b mov (%rbx),%rbx <-- trapping instruction 2d: 48 83 c3 58 add $0x58,%rbx 31: 48 89 d8 mov %rbx,%rax 34: 48 c1 e8 03 shr $0x3,%rax 38: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 3d: 74 08 je 0x47 3f: 48 rex.W