loop0: detected capacity change from 0 to 32768 ERROR: (device loop0): xtTruncate: XT_GETPAGE: xtree page corrupt ERROR: (device loop0): remounting filesystem as read-only BUG at fs/jfs/jfs_txnmgr.c:523 assert(tblk->next == 0) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_txnmgr.c:523! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 4999 Comm: syz-executor350 Not tainted 6.4.0-rc7-syzkaller-00014-g692b7dc87ca6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:txEnd+0x582/0x5a0 fs/jfs/jfs_txnmgr.c:523 Code: fe e9 59 fb ff ff e8 5d 72 94 fe 48 c7 c1 c0 c4 89 8a ba 0b 02 00 00 48 c7 c6 80 bf 89 8a 48 c7 c7 c0 bf 89 8a e8 6e 56 78 fe <0f> 0b 48 89 ef e8 b4 3d e7 fe e9 41 fd ff ff e8 8a 3d e7 fe e9 2f RSP: 0018:ffffc9000394f828 EFLAGS: 00010282 RAX: 0000000000000036 RBX: ffffc90002641110 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff8168bd1c RDI: 0000000000000005 RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff8880788bd800 R13: 0000000000000001 R14: ffffffff8ccf2360 R15: ffffc90002641112 FS: 000055555642c300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000562e3fe40bf8 CR3: 000000001f1b5000 CR4: 0000000000350ef0 Call Trace: jfs_truncate_nolock+0x217/0x2f0 fs/jfs/inode.c:391 jfs_truncate+0xe9/0x170 fs/jfs/inode.c:412 jfs_setattr+0x2cb/0x760 fs/jfs/file.c:119 notify_change+0xb2c/0x1180 fs/attr.c:483 do_truncate+0x143/0x200 fs/open.c:66 handle_truncate fs/namei.c:3295 [inline] do_open fs/namei.c:3640 [inline] path_openat+0x2083/0x2750 fs/namei.c:3791 do_filp_open+0x1ba/0x410 fs/namei.c:3818 do_sys_openat2+0x16d/0x4c0 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_open fs/open.c:1380 [inline] __se_sys_open fs/open.c:1376 [inline] __x64_sys_open+0x11d/0x1c0 fs/open.c:1376 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f98a05f0769 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffcfdad91f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f98a05f0769 RDX: 0000000000000000 RSI: 000000000014527e RDI: 0000000020000040 RBP: 00007f98a05b0000 R08: 0000000000005dea R09: 0000000000000000 R10: 00007ffcfdad90c0 R11: 0000000000000246 R12: 00007f98a05b0090 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:txEnd+0x582/0x5a0 fs/jfs/jfs_txnmgr.c:523 Code: fe e9 59 fb ff ff e8 5d 72 94 fe 48 c7 c1 c0 c4 89 8a ba 0b 02 00 00 48 c7 c6 80 bf 89 8a 48 c7 c7 c0 bf 89 8a e8 6e 56 78 fe <0f> 0b 48 89 ef e8 b4 3d e7 fe e9 41 fd ff ff e8 8a 3d e7 fe e9 2f RSP: 0018:ffffc9000394f828 EFLAGS: 00010282 RAX: 0000000000000036 RBX: ffffc90002641110 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff8168bd1c RDI: 0000000000000005 RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff8880788bd800 R13: 0000000000000001 R14: ffffffff8ccf2360 R15: ffffc90002641112 FS: 000055555642c300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000562e3fe40bf8 CR3: 000000001f1b5000 CR4: 0000000000350ef0