loop0: detected capacity change from 0 to 32768 ------------[ cut here ]------------ UBSAN: shift-out-of-bounds in fs/jfs/jfs_dmap.c:2639:11 shift exponent 80 is too large for 32-bit type 'int' CPU: 0 PID: 7174 Comm: syz-executor.0 Tainted: G W 6.10.0-rc3-syzkaller-gac2193b4b460 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:317 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:324 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:114 dump_stack+0x1c/0x28 lib/dump_stack.c:123 ubsan_epilogue lib/ubsan.c:231 [inline] __ubsan_handle_shift_out_of_bounds+0x2f4/0x36c lib/ubsan.c:468 dbSplit+0x1d4/0x1d8 fs/jfs/jfs_dmap.c:2639 dbAllocBits+0x434/0x8d8 fs/jfs/jfs_dmap.c:2191 dbAllocDmap fs/jfs/jfs_dmap.c:2032 [inline] dbAllocNear+0x224/0x334 fs/jfs/jfs_dmap.c:1258 dbAlloc+0x8b4/0xb68 fs/jfs/jfs_dmap.c:843 extBalloc fs/jfs/jfs_extent.c:326 [inline] extAlloc+0x404/0xdec fs/jfs/jfs_extent.c:122 jfs_get_block+0x340/0xb98 fs/jfs/inode.c:248 __block_write_begin_int+0x580/0x166c fs/buffer.c:2128 __block_write_begin fs/buffer.c:2177 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2236 jfs_write_begin+0x44/0x88 fs/jfs/inode.c:299 generic_perform_write+0x28c/0x588 mm/filemap.c:4015 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4110 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4136 new_sync_write fs/read_write.c:497 [inline] vfs_write+0x828/0xc78 fs/read_write.c:590 ksys_write+0x15c/0x26c fs/read_write.c:643 __do_sys_write fs/read_write.c:655 [inline] __se_sys_write fs/read_write.c:652 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:652 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:133 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:152 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 ---[ end trace ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 7174 at fs/jfs/jfs_dmap.c:2873 dbAdjTree+0x3a0/0x480 fs/jfs/jfs_dmap.c:2873 Modules linked in: CPU: 0 PID: 7174 Comm: syz-executor.0 Tainted: G W 6.10.0-rc3-syzkaller-gac2193b4b460 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : dbAdjTree+0x3a0/0x480 fs/jfs/jfs_dmap.c:2873 lr : dbAdjTree+0x3a0/0x480 fs/jfs/jfs_dmap.c:2873 sp : ffff80009da37080 x29: ffff80009da37080 x28: dfff800000000000 x27: 0000000000000001 x26: 0000000000000052 x25: 0000000000040000 x24: 0000000000000005 x23: 0000000000000155 x22: 0000000000040057 x21: 0000000000000005 x20: 0000000000040002 x19: ffff0000c74dc010 x18: ffff0001fea899d0 x17: 00000000000335a6 x16: ffff80008033656c x15: 0000000000000001 x14: 1fffffbff863a6e0 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000040000 x10: 0000000000037b7b x9 : ffff8000a121d000 x8 : 0000000000037b7c x7 : ffff800080823fec x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000 x2 : 0000000000000005 x1 : 0000000000000155 x0 : 0000000000040057 Call trace: dbAdjTree+0x3a0/0x480 fs/jfs/jfs_dmap.c:2873 dbSplit+0x10c/0x1d8 fs/jfs/jfs_dmap.c:2646 dbAllocBits+0x434/0x8d8 fs/jfs/jfs_dmap.c:2191 dbAllocDmap+0x6c/0x128 fs/jfs/jfs_dmap.c:2032 dbAllocNext+0x364/0x3a8 fs/jfs/jfs_dmap.c:1182 dbAlloc+0x3d8/0xb68 fs/jfs/jfs_dmap.c:816 extBalloc fs/jfs/jfs_extent.c:326 [inline] extAlloc+0x404/0xdec fs/jfs/jfs_extent.c:122 jfs_get_block+0x340/0xb98 fs/jfs/inode.c:248 __block_write_begin_int+0x580/0x166c fs/buffer.c:2128 __block_write_begin fs/buffer.c:2177 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2236 jfs_write_begin+0x44/0x88 fs/jfs/inode.c:299 generic_perform_write+0x28c/0x588 mm/filemap.c:4015 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4110 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4136 new_sync_write fs/read_write.c:497 [inline] vfs_write+0x828/0xc78 fs/read_write.c:590 ksys_write+0x15c/0x26c fs/read_write.c:643 __do_sys_write fs/read_write.c:655 [inline] __se_sys_write fs/read_write.c:652 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:652 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:133 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:152 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 76454 hardirqs last enabled at (76453): [] mod_objcg_state+0x304/0x4ac mm/memcontrol.c:3534 hardirqs last disabled at (76454): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (75792): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (75792): [] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582 softirqs last disabled at (75441): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- read_mapping_page failed! ------------[ cut here ]------------ UBSAN: shift-out-of-bounds in fs/jfs/jfs_dmap.c:2793:11 shift exponent 82 is too large for 32-bit type 'int' CPU: 0 PID: 7174 Comm: syz-executor.0 Tainted: G W 6.10.0-rc3-syzkaller-gac2193b4b460 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:317 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:324 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:114 dump_stack+0x1c/0x28 lib/dump_stack.c:123 ubsan_epilogue lib/ubsan.c:231 [inline] __ubsan_handle_shift_out_of_bounds+0x2f4/0x36c lib/ubsan.c:468 dbJoin+0x2a0/0x2a4 fs/jfs/jfs_dmap.c:2793 dbFreeBits+0x458/0xc30 fs/jfs/jfs_dmap.c:2338 dbAllocDmap+0xdc/0x128 fs/jfs/jfs_dmap.c:2043 dbAllocNext+0x364/0x3a8 fs/jfs/jfs_dmap.c:1182 dbAlloc+0x3d8/0xb68 fs/jfs/jfs_dmap.c:816 extBalloc fs/jfs/jfs_extent.c:326 [inline] extAlloc+0x404/0xdec fs/jfs/jfs_extent.c:122 jfs_get_block+0x340/0xb98 fs/jfs/inode.c:248 __block_write_begin_int+0x580/0x166c fs/buffer.c:2128 __block_write_begin fs/buffer.c:2177 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2236 jfs_write_begin+0x44/0x88 fs/jfs/inode.c:299 generic_perform_write+0x28c/0x588 mm/filemap.c:4015 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4110 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4136 new_sync_write fs/read_write.c:497 [inline] vfs_write+0x828/0xc78 fs/read_write.c:590 ksys_write+0x15c/0x26c fs/read_write.c:643 __do_sys_write fs/read_write.c:655 [inline] __se_sys_write fs/read_write.c:652 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:652 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:133 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:152 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 ---[ end trace ]---