loop0: detected capacity change from 0 to 32768 BUG at fs/jfs/jfs_dmap.c:3000 assert(bitno < 32) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:3000! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5609 Comm: syz-executor.0 Not tainted 6.3.0-rc7-next-20230421-syzkaller-13719-gd3e1ee0e67e7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 RIP: 0010:dbFindBits+0x165/0x190 fs/jfs/jfs_dmap.c:3000 Code: c3 45 31 ed eb e8 e8 da 21 99 fe 48 c7 c1 00 67 89 8a ba b8 0b 00 00 48 c7 c6 80 65 89 8a 48 c7 c7 c0 65 89 8a e8 9b 1a 7d fe <0f> 0b e8 b4 21 99 fe 48 c7 c1 c0 66 89 8a ba a9 0b 00 00 48 c7 c6 RSP: 0018:ffffc9000549f008 EFLAGS: 00010286 RAX: 0000000000000030 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff8168712c RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000020 R14: 0000000000000000 R15: 0000000000000001 FS: 00007fb1d40ba700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055c2efd21000 CR3: 0000000078254000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: dbAllocDmapLev+0x223/0x2e0 fs/jfs/jfs_dmap.c:1966 dbAllocCtl+0x131/0x7a0 fs/jfs/jfs_dmap.c:1809 dbAllocAG+0x8da/0xdc0 fs/jfs/jfs_dmap.c:1350 dbAlloc+0x411/0xab0 fs/jfs/jfs_dmap.c:874 dtSplitUp+0x365/0x51b0 fs/jfs/jfs_dtree.c:974 dtInsert+0x82f/0xa40 fs/jfs/jfs_dtree.c:863 jfs_create+0x602/0xb20 fs/jfs/namei.c:137 lookup_open.isra.0+0x105a/0x1400 fs/namei.c:3492 open_last_lookups fs/namei.c:3560 [inline] path_openat+0x975/0x2750 fs/namei.c:3788 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:0x7fb1d328b5a9 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb1d40ba168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fb1d33abf80 RCX: 00007fb1d328b5a9 RDX: 0000000000000000 RSI: 00000000000000f0 RDI: 0000000020000140 RBP: 00007fb1d32e67b0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdf5dcc28f R14: 00007fb1d40ba300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbFindBits+0x165/0x190 fs/jfs/jfs_dmap.c:3000 Code: c3 45 31 ed eb e8 e8 da 21 99 fe 48 c7 c1 00 67 89 8a ba b8 0b 00 00 48 c7 c6 80 65 89 8a 48 c7 c7 c0 65 89 8a e8 9b 1a 7d fe <0f> 0b e8 b4 21 99 fe 48 c7 c1 c0 66 89 8a ba a9 0b 00 00 48 c7 c6 RSP: 0018:ffffc9000549f008 EFLAGS: 00010286 RAX: 0000000000000030 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff8168712c RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000020 R14: 0000000000000000 R15: 0000000000000001 FS: 00007fb1d40ba700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f578d8a89ee CR3: 0000000078254000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400