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. loop0: detected capacity change from 32768 to 64 syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=9679, nr_sectors = 1 limit=64 (syz.0.0,5112,0):ocfs2_write_zero_page:809 ERROR: status = -5 (syz.0.0,5112,0):ocfs2_zero_extend_range:950 ERROR: status = -5 (syz.0.0,5112,0):ocfs2_zero_extend:996 ERROR: status = -5 (syz.0.0,5112,0):ocfs2_write_begin_nolock:1689 ERROR: status = -5 (syz.0.0,5112,0):ocfs2_write_begin:1906 ERROR: status = -5 (syz.0.0,5112,0):ocfs2_read_blocks:240 ERROR: status = -12 Oops: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] CPU: 0 UID: 0 PID: 5112 Comm: syz.0.0 Not tainted 6.11.0-rc6-syzkaller-00019-g67784a74e258 #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_buffer_cached+0xcb/0x840 fs/ocfs2/uptodate.c:237 Code: 3b 4d 64 fe 4c 89 7c 24 20 4c 8b 5d 00 48 89 5c 24 08 48 89 df 41 ff d3 66 90 48 89 44 24 18 49 83 c5 18 4d 89 ec 49 c1 ec 03 <43> 80 3c 34 00 74 08 4c 89 ef e8 06 4d 64 fe 49 8b 55 00 48 8b 44 RSP: 0018:ffffc90002f0eda0 EFLAGS: 00010206 RAX: 0000000000000042 RBX: ffff88803f8f9670 RCX: dffffc0000000000 RDX: ffffc9000b57a000 RSI: 0000000000006569 RDI: 000000000000656a RBP: ffffffff8c491a40 R08: 0000000000000003 R09: fffff520005e1da4 R10: dffffc0000000000 R11: ffffffff83874090 R12: 0000000000000003 R13: 0000000000000018 R14: dffffc0000000000 R15: 1ffff11007f1f2ce FS: 00007fce1488b6c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fce08fff000 CR3: 000000003d9ee000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ocfs2_set_buffer_uptodate+0xa1/0x1350 fs/ocfs2/uptodate.c:474 ocfs2_read_blocks+0x103e/0x1620 fs/ocfs2/buffer_head_io.c:392 ocfs2_read_virt_blocks+0x4c8/0xa50 fs/ocfs2/extent_map.c:1010 ocfs2_read_dir_block fs/ocfs2/dir.c:508 [inline] ocfs2_find_entry_el fs/ocfs2/dir.c:715 [inline] ocfs2_find_entry+0x43b/0x2780 fs/ocfs2/dir.c:1080 ocfs2_find_files_on_disk+0xff/0x360 fs/ocfs2/dir.c:1980 ocfs2_lookup_ino_from_name+0xb1/0x1e0 fs/ocfs2/dir.c:2002 ocfs2_find_victim_alloc_group+0x1fe/0xaf0 fs/ocfs2/move_extents.c:379 ocfs2_validate_and_adjust_move_goal+0x2b3/0x5e0 fs/ocfs2/move_extents.c:485 ocfs2_ioctl_move_extents+0x575/0x840 fs/ocfs2/move_extents.c:1048 ocfs2_ioctl+0x199/0x7e0 fs/ocfs2/ioctl.c:946 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:893 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:0x7fce13b79eb9 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:00007fce1488b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fce13d15f80 RCX: 00007fce13b79eb9 RDX: 0000000020000000 RSI: 0000000040406f06 RDI: 000000000000000b RBP: 00007fce13be793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fce13d15f80 R15: 00007ffdd731cb18 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_buffer_cached+0xcb/0x840 fs/ocfs2/uptodate.c:237 Code: 3b 4d 64 fe 4c 89 7c 24 20 4c 8b 5d 00 48 89 5c 24 08 48 89 df 41 ff d3 66 90 48 89 44 24 18 49 83 c5 18 4d 89 ec 49 c1 ec 03 <43> 80 3c 34 00 74 08 4c 89 ef e8 06 4d 64 fe 49 8b 55 00 48 8b 44 RSP: 0018:ffffc90002f0eda0 EFLAGS: 00010206 RAX: 0000000000000042 RBX: ffff88803f8f9670 RCX: dffffc0000000000 RDX: ffffc9000b57a000 RSI: 0000000000006569 RDI: 000000000000656a RBP: ffffffff8c491a40 R08: 0000000000000003 R09: fffff520005e1da4 R10: dffffc0000000000 R11: ffffffff83874090 R12: 0000000000000003 R13: 0000000000000018 R14: dffffc0000000000 R15: 1ffff11007f1f2ce FS: 00007fce1488b6c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fce08fff000 CR3: 000000003d9ee000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 3b 4d 64 cmp 0x64(%rbp),%ecx 3: fe 4c 89 7c decb 0x7c(%rcx,%rcx,4) 7: 24 20 and $0x20,%al 9: 4c 8b 5d 00 mov 0x0(%rbp),%r11 d: 48 89 5c 24 08 mov %rbx,0x8(%rsp) 12: 48 89 df mov %rbx,%rdi 15: 41 ff d3 call *%r11 18: 66 90 xchg %ax,%ax 1a: 48 89 44 24 18 mov %rax,0x18(%rsp) 1f: 49 83 c5 18 add $0x18,%r13 23: 4d 89 ec mov %r13,%r12 26: 49 c1 ec 03 shr $0x3,%r12 * 2a: 43 80 3c 34 00 cmpb $0x0,(%r12,%r14,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 ef mov %r13,%rdi 34: e8 06 4d 64 fe call 0xfe644d3f 39: 49 8b 55 00 mov 0x0(%r13),%rdx 3d: 48 rex.W 3e: 8b .byte 0x8b 3f: 44 rex.R