Hello,
syzbot found the following issue on:
HEAD commit: 5fa4793a2d2d Linux 6.6.119
git tree: linux-6.6.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=11ef4b1a580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=691a6769a86ac817
dashboard link:
https://syzkaller.appspot.com/bug?extid=b215f932b51a9ee989eb
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/63699875f1dd/disk-5fa4793a.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/8506652fcb6f/vmlinux-5fa4793a.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/1b30ceed1710/bzImage-5fa4793a.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+b215f9...@syzkaller.appspotmail.com
loop2: detected capacity change from 0 to 32768
BUG at fs/jfs/jfs_dmap.c:2983 assert(n < 4)
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_dmap.c:2983!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 6373 Comm: syz.2.96 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:dbFindLeaf+0x517/0x520 fs/jfs/jfs_dmap.c:2983
Code: fe e9 51 ff ff ff e8 68 ea 87 fe 48 c7 c7 a0 cd e3 8a 48 c7 c6 e0 ca e3 8a ba a7 0b 00 00 48 c7 c1 80 d8 e3 8a e8 e9 84 5e 07 <0f> 0b 0f 1f 80 00 00 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec
RSP: 0018:ffffc900031d7ac0 EFLAGS: 00010246
RAX: 000000000000002b RBX: 00000000ffffffff RCX: dc0129ca2449a700
RDX: ffffc9000d2cd000 RSI: 0000000000013ecc RDI: 0000000000013ecd
RBP: 0000000000000001 R08: ffffc900031d77c7 R09: 1ffff9200063aef8
R10: dffffc0000000000 R11: fffff5200063aef9 R12: 0000000000000008
R13: 0000000000000060 R14: 000000000000005d R15: 0000000000000155
FS: 00007f6dd10aa6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f01d7999000 CR3: 0000000025f5b000 CR4: 00000000003506e0
Call Trace:
<TASK>
dbAllocDmapLev+0x61/0x3c0 fs/jfs/jfs_dmap.c:1969
dbAllocCtl+0x148/0x9b0 fs/jfs/jfs_dmap.c:1825
dbAllocAG+0x1e7/0xfe0 fs/jfs/jfs_dmap.c:1353
dbDiscardAG+0x2ce/0x8f0 fs/jfs/jfs_dmap.c:1608
jfs_ioc_trim+0x42f/0x660 fs/jfs/jfs_discard.c:105
jfs_ioctl+0x2b9/0x3d0 fs/jfs/ioctl.c:131
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:871 [inline]
__se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f6dd018f749
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f6dd10aa038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f6dd03e5fa0 RCX: 00007f6dd018f749
RDX: 0000200000000080 RSI: 00000000c0185879 RDI: 0000000000000006
RBP: 00007f6dd0213f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6dd03e6038 R14: 00007f6dd03e5fa0 R15: 00007ffe885aece8
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dbFindLeaf+0x517/0x520 fs/jfs/jfs_dmap.c:2983
Code: fe e9 51 ff ff ff e8 68 ea 87 fe 48 c7 c7 a0 cd e3 8a 48 c7 c6 e0 ca e3 8a ba a7 0b 00 00 48 c7 c1 80 d8 e3 8a e8 e9 84 5e 07 <0f> 0b 0f 1f 80 00 00 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec
RSP: 0018:ffffc900031d7ac0 EFLAGS: 00010246
RAX: 000000000000002b RBX: 00000000ffffffff RCX: dc0129ca2449a700
RDX: ffffc9000d2cd000 RSI: 0000000000013ecc RDI: 0000000000013ecd
RBP: 0000000000000001 R08: ffffc900031d77c7 R09: 1ffff9200063aef8
R10: dffffc0000000000 R11: fffff5200063aef9 R12: 0000000000000008
R13: 0000000000000060 R14: 000000000000005d R15: 0000000000000155
FS: 00007f6dd10aa6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000560f680d3950 CR3: 0000000025f5b000 CR4: 00000000003506f0
---
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