[v5.15] UBSAN: shift-out-of-bounds in dbSplit

0 views
Skip to first unread message

syzbot

unread,
Apr 15, 2024, 6:09:19 PMApr 15
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: fa3df276cd36 Linux 5.15.155
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16980c53180000
kernel config: https://syzkaller.appspot.com/x/.config?x=f12ea3f162537c9c
dashboard link: https://syzkaller.appspot.com/bug?extid=eac84ce8b38992ca3441
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/feaf3fb3f68f/disk-fa3df276.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/537c519f1dd0/vmlinux-fa3df276.xz
kernel image: https://storage.googleapis.com/syzbot-assets/5396ec75d1be/bzImage-fa3df276.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+eac84c...@syzkaller.appspotmail.com

================================================================================
UBSAN: shift-out-of-bounds in fs/jfs/jfs_dmap.c:2707:11
shift exponent 80 is too large for 32-bit type 'int'
CPU: 1 PID: 5547 Comm: syz-executor.3 Not tainted 5.15.155-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106
ubsan_epilogue lib/ubsan.c:151 [inline]
__ubsan_handle_shift_out_of_bounds+0x3bf/0x420 lib/ubsan.c:321
dbSplit+0x21a/0x220 fs/jfs/jfs_dmap.c:2707
dbAllocBits+0x4e5/0x9a0 fs/jfs/jfs_dmap.c:2259
dbAllocDmap fs/jfs/jfs_dmap.c:2100 [inline]
dbAllocDmapLev+0x24c/0x490 fs/jfs/jfs_dmap.c:2054
dbAllocCtl+0x113/0x920 fs/jfs/jfs_dmap.c:1891
dbAllocAG+0x28b/0x10b0 fs/jfs/jfs_dmap.c:1432
dbAlloc+0x654/0xc90 fs/jfs/jfs_dmap.c:888
dtSplitUp fs/jfs/jfs_dtree.c:979 [inline]
dtInsert+0xda3/0x6b00 fs/jfs/jfs_dtree.c:868
jfs_symlink+0x823/0x10e0 fs/jfs/namei.c:1019
vfs_symlink+0x247/0x3d0 fs/namei.c:4429
do_symlinkat+0x1fd/0x600 fs/namei.c:4458
__do_sys_symlinkat fs/namei.c:4475 [inline]
__se_sys_symlinkat fs/namei.c:4472 [inline]
__x64_sys_symlinkat+0x95/0xa0 fs/namei.c:4472
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f31fff7ce69
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:00007f31fe4ef0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007f32000aaf80 RCX: 00007f31fff7ce69
RDX: 0000000020000340 RSI: 0000000000000004 RDI: 0000000020000440
RBP: 00007f31fffc947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f32000aaf80 R15: 00007ffd2cf46258
</TASK>
================================================================================


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Apr 15, 2024, 6:11:27 PMApr 15
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: cd5d98c0556c Linux 6.1.86
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14816a35180000
kernel config: https://syzkaller.appspot.com/x/.config?x=1002eed7bd96ee12
dashboard link: https://syzkaller.appspot.com/bug?extid=dde611e78c1b7981727a
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/22fd59eeffbc/disk-cd5d98c0.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/064559777212/vmlinux-cd5d98c0.xz
kernel image: https://storage.googleapis.com/syzbot-assets/11c6ce06eda3/bzImage-cd5d98c0.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+dde611...@syzkaller.appspotmail.com

================================================================================
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: 9585 Comm: syz-executor.4 Not tainted 6.1.86-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
ubsan_epilogue lib/ubsan.c:151 [inline]
__ubsan_handle_shift_out_of_bounds+0x3bf/0x420 lib/ubsan.c:321
dbSplit+0x21a/0x220 fs/jfs/jfs_dmap.c:2639
dbAllocBits+0x4e5/0x9a0 fs/jfs/jfs_dmap.c:2191
dbAllocDmap fs/jfs/jfs_dmap.c:2032 [inline]
dbAllocDmapLev+0x24c/0x490 fs/jfs/jfs_dmap.c:1986
dbAllocCtl+0x113/0x920 fs/jfs/jfs_dmap.c:1823
dbAllocAG+0x28b/0x10b0 fs/jfs/jfs_dmap.c:1364
dbAlloc+0x654/0xc90 fs/jfs/jfs_dmap.c:888
dtSplitUp fs/jfs/jfs_dtree.c:979 [inline]
dtInsert+0xda3/0x6b00 fs/jfs/jfs_dtree.c:868
jfs_symlink+0x823/0x10e0 fs/jfs/namei.c:1019
vfs_symlink+0x247/0x3d0 fs/namei.c:4473
do_symlinkat+0x21e/0x390 fs/namei.c:4502
__do_sys_symlinkat fs/namei.c:4519 [inline]
__se_sys_symlinkat fs/namei.c:4516 [inline]
__x64_sys_symlinkat+0x95/0xa0 fs/namei.c:4516
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7ff92fa7de69
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:00007ff9307750c8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007ff92fbabf80 RCX: 00007ff92fa7de69
RDX: 0000000020000340 RSI: 0000000000000004 RDI: 0000000020000440
RBP: 00007ff92faca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007ff92fbabf80 R15: 00007ffcc3965548

syzbot

unread,
Apr 15, 2024, 6:24:22 PMApr 15
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: fa3df276cd36 Linux 5.15.155
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11b46c7d180000
kernel config: https://syzkaller.appspot.com/x/.config?x=f12ea3f162537c9c
dashboard link: https://syzkaller.appspot.com/bug?extid=eac84ce8b38992ca3441
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=107e9857180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10f6841b180000
mounted in repro: https://storage.googleapis.com/syzbot-assets/f219c0beb3a3/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+eac84c...@syzkaller.appspotmail.com

loop0: detected capacity change from 0 to 32768
================================================================================
UBSAN: shift-out-of-bounds in fs/jfs/jfs_dmap.c:2707:11
shift exponent 80 is too large for 32-bit type 'int'
CPU: 1 PID: 3500 Comm: syz-executor347 Not tainted 5.15.155-syzkaller #0
RIP: 0033:0x7fa938c816b9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffea30b62c8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007ffea30b6498 RCX: 00007fa938c816b9
RDX: 0000000020000340 RSI: 0000000000000004 RDI: 0000000020000440
RBP: 00007fa938cfa610 R08: 0000000000000000 R09: 00007ffea30b6498
R10: 00000000000060f8 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffea30b6488 R14: 0000000000000001 R15: 0000000000000001
</TASK>
================================================================================


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

syzbot

unread,
Apr 15, 2024, 6:35:23 PMApr 15
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: cd5d98c0556c Linux 6.1.86
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1611fa63180000
kernel config: https://syzkaller.appspot.com/x/.config?x=1002eed7bd96ee12
dashboard link: https://syzkaller.appspot.com/bug?extid=dde611e78c1b7981727a
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=178420c3180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=121d3235180000
mounted in repro: https://storage.googleapis.com/syzbot-assets/83cc0ce7fab2/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+dde611...@syzkaller.appspotmail.com

loop0: detected capacity change from 0 to 32768
================================================================================
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: 1 PID: 3540 Comm: syz-executor320 Not tainted 6.1.86-syzkaller #0
RIP: 0033:0x7f7e1647c6b9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffea3f67f78 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007ffea3f68148 RCX: 00007f7e1647c6b9
RDX: 0000000020000340 RSI: 0000000000000004 RDI: 0000000020000440
RBP: 00007f7e164f5610 R08: 0000000000000000 R09: 00007ffea3f68148
R10: 00000000000060f8 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffea3f68138 R14: 0000000000000001 R15: 0000000000000001
Reply all
Reply to author
Forward
0 new messages