================================================================================
UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:360:4
index 18 is out of range for type 'xad_t [18]'
CPU: 3 PID: 12290 Comm: syz-executor.2 Not tainted 6.5.0-rc6-syzkaller-00027-g91aa6c412d7f #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
ubsan_epilogue lib/ubsan.c:217 [inline]
__ubsan_handle_out_of_bounds+0x111/0x150 lib/ubsan.c:348
xtSearch+0x12e2/0x1650 fs/jfs/jfs_xtree.c:360
xtLookup+0x273/0x840 fs/jfs/jfs_xtree.c:152
extHint+0x22f/0x4f0 fs/jfs/jfs_extent.c:215
jfs_get_block+0x2d4/0xb20 fs/jfs/inode.c:246
__block_write_begin_int+0x3c0/0x1470 fs/buffer.c:2128
__block_write_begin fs/buffer.c:2178 [inline]
block_write_begin+0xb1/0x490 fs/buffer.c:2239
jfs_write_begin+0x31/0xd0 fs/jfs/inode.c:299
generic_perform_write+0x278/0x600 mm/filemap.c:3923
__generic_file_write_iter+0x1f9/0x240 mm/filemap.c:4018
generic_file_write_iter+0xe3/0x350 mm/filemap.c:4044
call_write_iter include/linux/fs.h:1877 [inline]
do_iter_readv_writev+0x21e/0x3c0 fs/read_write.c:735
do_iter_write+0x17f/0x830 fs/read_write.c:860
vfs_iter_write+0x7a/0xb0 fs/read_write.c:901
iter_file_splice_write+0x698/0xbf0 fs/splice.c:739
do_splice_from fs/splice.c:936 [inline]
direct_splice_actor+0x118/0x180 fs/splice.c:1145
splice_direct_to_actor+0x347/0xa30 fs/splice.c:1091
do_splice_direct+0x1af/0x280 fs/splice.c:1197
do_sendfile+0xb88/0x1390 fs/read_write.c:1254
__do_compat_sys_sendfile fs/read_write.c:1343 [inline]
__se_compat_sys_sendfile fs/read_write.c:1326 [inline]
__ia32_compat_sys_sendfile+0x1e3/0x220 fs/read_write.c:1326
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
RIP: 0023:0xf7f88579
Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
RSP: 002b:00000000f7f835ac EFLAGS: 00000292 ORIG_RAX: 00000000000000bb
RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 0000000000000008
RDX: 0000000000000000 RSI: 0000000000201005 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
================================================================================
================================================================================
UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:360:4
index 18 is out of range for type 'xad_t [18]'
CPU: 2 PID: 12290 Comm: syz-executor.2 Not tainted 6.5.0-rc6-syzkaller-00027-g91aa6c412d7f #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
ubsan_epilogue lib/ubsan.c:217 [inline]
__ubsan_handle_out_of_bounds+0x111/0x150 lib/ubsan.c:348
xtSearch+0x12a0/0x1650 fs/jfs/jfs_xtree.c:360
xtLookup+0x273/0x840 fs/jfs/jfs_xtree.c:152
extHint+0x22f/0x4f0 fs/jfs/jfs_extent.c:215
jfs_get_block+0x2d4/0xb20 fs/jfs/inode.c:246
__block_write_begin_int+0x3c0/0x1470 fs/buffer.c:2128
__block_write_begin fs/buffer.c:2178 [inline]
block_write_begin+0xb1/0x490 fs/buffer.c:2239
jfs_write_begin+0x31/0xd0 fs/jfs/inode.c:299
generic_perform_write+0x278/0x600 mm/filemap.c:3923
__generic_file_write_iter+0x1f9/0x240 mm/filemap.c:4018
generic_file_write_iter+0xe3/0x350 mm/filemap.c:4044
call_write_iter include/linux/fs.h:1877 [inline]
do_iter_readv_writev+0x21e/0x3c0 fs/read_write.c:735
do_iter_write+0x17f/0x830 fs/read_write.c:860
vfs_iter_write+0x7a/0xb0 fs/read_write.c:901
iter_file_splice_write+0x698/0xbf0 fs/splice.c:739
do_splice_from fs/splice.c:936 [inline]
direct_splice_actor+0x118/0x180 fs/splice.c:1145
splice_direct_to_actor+0x347/0xa30 fs/splice.c:1091
do_splice_direct+0x1af/0x280 fs/splice.c:1197
do_sendfile+0xb88/0x1390 fs/read_write.c:1254
__do_compat_sys_sendfile fs/read_write.c:1343 [inline]
__se_compat_sys_sendfile fs/read_write.c:1326 [inline]
__ia32_compat_sys_sendfile+0x1e3/0x220 fs/read_write.c:1326
do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
__do_fast_syscall_32+0x61/0xe0 arch/x86/entry/common.c:178
do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
entry_SYSENTER_compat_after_hwframe+0x70/0x82
RIP: 0023:0xf7f88579
Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
RSP: 002b:00000000f7f835ac EFLAGS: 00000292 ORIG_RAX: 00000000000000bb
RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 0000000000000008
RDX: 0000000000000000 RSI: 0000000000201005 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
----------------
Code disassembly (best guess), 2 bytes skipped:
0: 10 06 adc %al,(%rsi)
2: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi
6: 10 07 adc %al,(%rdi)
8: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi
c: 10 08 adc %cl,(%rax)
e: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi
1e: 00 51 52 add %dl,0x52(%rcx)
21: 55 push %rbp
22: 89 e5 mov %esp,%ebp
24: 0f 34 sysenter
26: cd 80 int $0x80
* 28: 5d pop %rbp <-- trapping instruction
29: 5a pop %rdx
2a: 59 pop %rcx
2b: c3 ret
2c: 90 nop
2d: 90 nop
2e: 90 nop
2f: 90 nop
30: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi
37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi