loop0: detected capacity change from 0 to 32768 BUG at fs/jfs/jfs_dmap.c:2933 assert(n < 4) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:2933! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 3608 Comm: syz-executor946 Not tainted 6.0.0-rc7-syzkaller-00220-gffb4d94b4314 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:dbFindLeaf+0x43c/0x440 fs/jfs/jfs_dmap.c:2933 Code: dc fe eb 87 e8 c5 02 8a fe 48 c7 c7 20 4a cd 8a 48 c7 c6 e0 57 cd 8a ba 75 0b 00 00 48 c7 c1 c0 54 cd 8a 31 c0 e8 a5 2a 23 07 <0f> 0b 66 90 55 41 57 41 56 41 55 41 54 53 48 83 ec 68 49 89 ff 49 RSP: 0018:ffffc900037bf2b8 EFLAGS: 00010246 RAX: 000000000000002b RBX: 0000000000000019 RCX: 3dd9d3a727890d00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: 00000000ffffffff R08: ffffffff816bd38d R09: ffffed10173467f1 R10: ffffed10173467f1 R11: 1ffff110173467f0 R12: ffff88807d757010 R13: 0000000000000000 R14: ffff88807d75703d R15: 000000000000001c FS: 00005555569fc300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000c380 CR3: 00000000724c5000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dbAllocDmapLev+0xa9/0x420 fs/jfs/jfs_dmap.c:1937 dbAlloc+0xa7b/0xc90 fs/jfs/jfs_dmap.c:825 extBalloc fs/jfs/jfs_extent.c:321 [inline] extAlloc+0x4b9/0xff0 fs/jfs/jfs_extent.c:122 jfs_get_block+0x342/0xce0 fs/jfs/inode.c:248 __block_write_begin_int+0x5f6/0x1ba0 fs/buffer.c:2006 __block_write_begin fs/buffer.c:2056 [inline] block_write_begin+0x93/0x1e0 fs/buffer.c:2117 jfs_write_begin+0x2d/0x60 fs/jfs/inode.c:304 generic_perform_write+0x2a8/0x5b0 mm/filemap.c:3738 __generic_file_write_iter+0x176/0x400 mm/filemap.c:3866 generic_file_write_iter+0xab/0x310 mm/filemap.c:3898 do_iter_write+0x6c2/0xc20 fs/read_write.c:861 vfs_writev fs/read_write.c:934 [inline] do_writev+0x23e/0x430 fs/read_write.c:977 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f982b5cfe69 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe90f7c188 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f982b5cfe69 RDX: 0000000000000001 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00007f982b58f630 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000f8008000 R13: 0000000000000000 R14: 00080000000000f8 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbFindLeaf+0x43c/0x440 fs/jfs/jfs_dmap.c:2933 Code: dc fe eb 87 e8 c5 02 8a fe 48 c7 c7 20 4a cd 8a 48 c7 c6 e0 57 cd 8a ba 75 0b 00 00 48 c7 c1 c0 54 cd 8a 31 c0 e8 a5 2a 23 07 <0f> 0b 66 90 55 41 57 41 56 41 55 41 54 53 48 83 ec 68 49 89 ff 49 RSP: 0018:ffffc900037bf2b8 EFLAGS: 00010246 RAX: 000000000000002b RBX: 0000000000000019 RCX: 3dd9d3a727890d00 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: 00000000ffffffff R08: ffffffff816bd38d R09: ffffed10173467f1 R10: ffffed10173467f1 R11: 1ffff110173467f0 R12: ffff88807d757010 R13: 0000000000000000 R14: ffff88807d75703d R15: 000000000000001c FS: 00005555569fc300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055aa92b26a00 CR3: 00000000724c5000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400