BUG at fs/jfs/jfs_dmap.c:3123 assert(bitno < 32) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:3123! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 8879 Comm: syz.2.377 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 RIP: 0010:dbFindBits+0x19e/0x1a0 fs/jfs/jfs_dmap.c:3123 Code: b4 fd 90 0f 0b e8 72 60 55 fe 48 c7 c7 a0 e2 cd 8b 48 c7 c6 e0 df cd 8b ba 33 0c 00 00 48 c7 c1 e0 ea cd 8b e8 43 ef b4 fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 41 57 41 RSP: 0018:ffffc9000482f530 EFLAGS: 00010246 RAX: 0000000000000030 RBX: 0000000000000000 RCX: fd385c5ea507b200 RDX: ffffc9000ea61000 RSI: 0000000000000846 RDI: 0000000000000847 RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffff52000905e55 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000020 FS: 00007fd42e5dd6c0(0000) GS:ffff888124716000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd1bf22d000 CR3: 0000000041e20000 CR4: 00000000003526f0 Call Trace: dbAllocNear+0x23f/0x3c0 fs/jfs/jfs_dmap.c:1330 dbAlloc+0x937/0xba0 fs/jfs/jfs_dmap.c:919 ea_get+0x998/0x1300 fs/jfs/xattr.c:516 __jfs_setxattr+0x5d5/0x1190 fs/jfs/xattr.c:727 jfs_initxattrs+0x18c/0x260 fs/jfs/xattr.c:1040 security_inode_init_security+0x29b/0x3e0 security/security.c:1384 jfs_init_security+0x91/0xe0 fs/jfs/xattr.c:1052 jfs_mkdir+0x2bd/0xaf0 fs/jfs/namei.c:241 vfs_mkdir+0x417/0x670 fs/namei.c:5428 filename_mkdirat+0x288/0x560 fs/namei.c:5461 __do_sys_mkdirat fs/namei.c:5482 [inline] __se_sys_mkdirat+0x35/0x150 fs/namei.c:5479 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd4303ae3c7 Code: 00 66 90 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 db f7 ff ff 66 2e 0f 1f 84 00 00 00 00 00 90 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd42e5dce58 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fd42e5dcee0 RCX: 00007fd4303ae3c7 RDX: 00000000000001ff RSI: 0000200000001600 RDI: 00000000ffffff9c RBP: 00002000000015c0 R08: 0000200000001640 R09: 0000000000000000 R10: 00002000000015c0 R11: 0000000000000246 R12: 0000200000001600 R13: 00007fd42e5dcea0 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbFindBits+0x19e/0x1a0 fs/jfs/jfs_dmap.c:3123 Code: b4 fd 90 0f 0b e8 72 60 55 fe 48 c7 c7 a0 e2 cd 8b 48 c7 c6 e0 df cd 8b ba 33 0c 00 00 48 c7 c1 e0 ea cd 8b e8 43 ef b4 fd 90 <0f> 0b 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 41 57 41 RSP: 0018:ffffc9000482f530 EFLAGS: 00010246 RAX: 0000000000000030 RBX: 0000000000000000 RCX: fd385c5ea507b200 RDX: ffffc9000ea61000 RSI: 0000000000000846 RDI: 0000000000000847 RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffff52000905e55 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000020 FS: 00007fd42e5dd6c0(0000) GS:ffff888124716000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3afa9b6286 CR3: 0000000041e20000 CR4: 00000000003526f0