loop0: detected capacity change from 0 to 32768 BUG at fs/jfs/jfs_dmap.c:3043 assert(n < 4) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:3043! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 4591 Comm: syz-executor.0 Not tainted 5.15.187-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:dbFindLeaf+0x517/0x520 fs/jfs/jfs_dmap.c:3043 Code: fe e9 51 ff ff ff e8 18 d9 ac fe 48 c7 c7 40 03 42 8a 48 c7 c6 c0 00 42 8a ba e3 0b 00 00 48 c7 c1 40 0e 42 8a e8 d9 24 d4 06 <0f> 0b 0f 1f 80 00 00 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec RSP: 0018:ffffc90002def350 EFLAGS: 00010246 RAX: 000000000000002b RBX: 00000000ffffffff RCX: 823e051f9878a400 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: 0000000000000003 R08: dffffc0000000000 R09: ffffed10172067a8 R10: ffffed10172067a8 R11: 1ffff110172067a7 R12: 0000000000000000 R13: 0000000000000014 R14: 0000000000000011 R15: 0000000000000155 FS: 00007fe585dd06c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020ea0000 CR3: 000000007e819000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dbAllocDmapLev+0x61/0x3c0 fs/jfs/jfs_dmap.c:2029 dbAllocCtl+0x148/0x9a0 fs/jfs/jfs_dmap.c:1885 dbAllocAG+0x1e9/0xf10 fs/jfs/jfs_dmap.c:1421 dbAlloc+0x5a3/0xb90 fs/jfs/jfs_dmap.c:877 extBalloc fs/jfs/jfs_extent.c:523 [inline] extAlloc+0x4d2/0xf30 fs/jfs/jfs_extent.c:125 jfs_get_block+0x343/0xab0 fs/jfs/inode.c:258 nobh_write_begin+0x3d5/0xe80 fs/buffer.c:2650 jfs_write_begin+0x3d/0x80 fs/jfs/inode.c:322 generic_perform_write+0x2aa/0x530 mm/filemap.c:3785 __generic_file_write_iter+0x25f/0x4e0 mm/filemap.c:3912 generic_file_write_iter+0xa6/0x1b0 mm/filemap.c:3944 do_iter_readv_writev+0x497/0x600 fs/read_write.c:-1 do_iter_write+0x205/0x7b0 fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_pwritev+0x204/0x340 fs/read_write.c:1025 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fe586a4ece9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe585dd00c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007fe586b6df80 RCX: 00007fe586a4ece9 RDX: 0000000000000001 RSI: 0000000020000100 RDI: 0000000000000004 RBP: 00007fe586a9b47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000005405 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fe586b6df80 R15: 00007fffd5780598 Modules linked in: ---[ end trace 27b5a25922fd328e ]--- RIP: 0010:dbFindLeaf+0x517/0x520 fs/jfs/jfs_dmap.c:3043 Code: fe e9 51 ff ff ff e8 18 d9 ac fe 48 c7 c7 40 03 42 8a 48 c7 c6 c0 00 42 8a ba e3 0b 00 00 48 c7 c1 40 0e 42 8a e8 d9 24 d4 06 <0f> 0b 0f 1f 80 00 00 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec RSP: 0018:ffffc90002def350 EFLAGS: 00010246 RAX: 000000000000002b RBX: 00000000ffffffff RCX: 823e051f9878a400 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: 0000000000000003 R08: dffffc0000000000 R09: ffffed10172067a8 R10: ffffed10172067a8 R11: 1ffff110172067a7 R12: 0000000000000000 R13: 0000000000000014 R14: 0000000000000011 R15: 0000000000000155 FS: 00007fe585dd06c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020ea0000 CR3: 000000007e819000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400