nbd1: rw=0, sector=64, nr_sectors = 8 limit=0 syz.1.52: attempt to access beyond end of device nbd1: rw=0, sector=120, nr_sectors = 8 limit=0 Mount JFS Failure: -5 ------------[ cut here ]------------ kernel BUG at fs/ocfs2/alloc.c:5581! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 6382 Comm: syz.1.52 Tainted: G W syzkaller #0 PREEMPT_{RT,(full)} Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:ocfs2_remove_extent+0x1ecf/0x2020 fs/ocfs2/alloc.c:5581 Code: fa ff ff 48 8b 4c 24 08 80 e1 07 fe c1 38 c1 0f 8c 95 fa ff ff 48 8b 7c 24 08 e8 7c f6 91 fe e9 86 fa ff ff e8 b2 c3 32 fe 90 <0f> 0b f3 0f 1e fa 44 89 6c 24 10 65 8b 1d e3 17 6a 0e bf 07 00 00 RSP: 0018:ffffc90006236920 EFLAGS: 00010287 RAX: ffffffff838b983e RBX: ffffc90006237118 RCX: 0000000000080000 RDX: ffffc900057ba000 RSI: 000000000000144f RDI: 0000000000001450 RBP: ffffc90006236c70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 00000000fffffffc R12: 1ffff1100828129a R13: 0000000000000005 R14: ffff8880414094d0 R15: dffffc0000000000 FS: 00007f0c2ed5e6c0(0000) GS:ffff8881268c5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110f268c5e CR3: 00000000371d6000 CR4: 00000000003526f0 Call Trace: ocfs2_remove_btree_range+0xdef/0x1540 fs/ocfs2/alloc.c:5778 ocfs2_commit_truncate+0xb64/0x21d0 fs/ocfs2/alloc.c:7373 ocfs2_truncate_file+0xca2/0x1420 fs/ocfs2/file.c:509 ocfs2_setattr+0x1520/0x1b40 fs/ocfs2/file.c:1212 notify_change+0xb34/0xe60 fs/attr.c:552 do_truncate+0x1a4/0x220 fs/open.c:68 handle_truncate fs/namei.c:3508 [inline] do_open fs/namei.c:3891 [inline] path_openat+0x3078/0x3840 fs/namei.c:4046 do_filp_open+0x1fa/0x410 fs/namei.c:4073 do_sys_openat2+0x121/0x1c0 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_open fs/open.c:1458 [inline] __se_sys_open fs/open.c:1454 [inline] __x64_sys_open+0x11e/0x150 fs/open.c:1454 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:0x7f0c30afebe9 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:00007f0c2ed5e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f0c30d25fa0 RCX: 00007f0c30afebe9 RDX: 0000000000000056 RSI: 000000000014967e RDI: 00002000000001c0 RBP: 00007f0c30b81e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0c30d26038 R14: 00007f0c30d25fa0 R15: 00007ffc4a408f18 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ocfs2_remove_extent+0x1ecf/0x2020 fs/ocfs2/alloc.c:5581 Code: fa ff ff 48 8b 4c 24 08 80 e1 07 fe c1 38 c1 0f 8c 95 fa ff ff 48 8b 7c 24 08 e8 7c f6 91 fe e9 86 fa ff ff e8 b2 c3 32 fe 90 <0f> 0b f3 0f 1e fa 44 89 6c 24 10 65 8b 1d e3 17 6a 0e bf 07 00 00 RSP: 0018:ffffc90006236920 EFLAGS: 00010287 RAX: ffffffff838b983e RBX: ffffc90006237118 RCX: 0000000000080000 RDX: ffffc900057ba000 RSI: 000000000000144f RDI: 0000000000001450 RBP: ffffc90006236c70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 00000000fffffffc R12: 1ffff1100828129a R13: 0000000000000005 R14: ffff8880414094d0 R15: dffffc0000000000 FS: 00007f0c2ed5e6c0(0000) GS:ffff8881268c5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110f268c5e CR3: 00000000371d6000 CR4: 00000000003526f0