Hello,
syzbot found the following issue on:
HEAD commit: 69e434a1cb21 Linux 6.1.63
git tree: linux-6.1.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=17218c58e80000
kernel config:
https://syzkaller.appspot.com/x/.config?x=cb9f1be873e58e15
dashboard link:
https://syzkaller.appspot.com/bug?extid=306b27816dcf842bc83d
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/042eff9b94a8/disk-69e434a1.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/dce36c399f65/vmlinux-69e434a1.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/c40f6d7a93b8/bzImage-69e434a1.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+306b27...@syzkaller.appspotmail.com
BUG at fs/jfs/jfs_dmap.c:3010 assert(bitno < 32)
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_dmap.c:3010!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 32621 Comm: syz-executor.3 Not tainted 6.1.63-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
RIP: 0010:dbFindBits+0x1c8/0x1d0 fs/jfs/jfs_dmap.c:3010
Code: 97 bd 81 07 0f 0b e8 37 f9 84 fe 48 c7 c7 60 51 24 8b 48 c7 c6 a0 4e 24 8b ba c2 0b 00 00 48 c7 c1 40 59 24 8b e8 71 bd 81 07 <0f> 0b 66 0f 1f 44 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 50
RSP: 0018:ffffc900034ff980 EFLAGS: 00010246
RAX: 0000000000000030 RBX: 0000000000000000 RCX: cbab8d4b8d89f300
RDX: ffffc900129fc000 RSI: 0000000000005655 RDI: 0000000000005656
RBP: 0000000000000020 R08: ffffffff816e155c R09: fffff5200069fed1
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000008
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000003
FS: 00007f357e46a6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b5972a3000 CR3: 0000000027b3e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000f80
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
dbAllocDmapLev+0x1e3/0x490 fs/jfs/jfs_dmap.c:1976
dbAllocCtl+0x113/0x920 fs/jfs/jfs_dmap.c:1816
dbAllocAG+0x28b/0x10b0 fs/jfs/jfs_dmap.c:1357
dbDiscardAG+0x34e/0xa10 fs/jfs/jfs_dmap.c:1606
jfs_ioc_trim+0x42f/0x660 fs/jfs/jfs_discard.c:100
jfs_ioctl+0x2cc/0x3e0 fs/jfs/ioctl.c:131
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:870 [inline]
__se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f357d67cae9
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:00007f357e46a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f357d79bf80 RCX: 00007f357d67cae9
RDX: 0000000020000680 RSI: 00000000c0185879 RDI: 0000000000000006
RBP: 00007f357d6c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f357d79bf80 R15: 00007ffc6d996148
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dbFindBits+0x1c8/0x1d0 fs/jfs/jfs_dmap.c:3010
Code: 97 bd 81 07 0f 0b e8 37 f9 84 fe 48 c7 c7 60 51 24 8b 48 c7 c6 a0 4e 24 8b ba c2 0b 00 00 48 c7 c1 40 59 24 8b e8 71 bd 81 07 <0f> 0b 66 0f 1f 44 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 50
RSP: 0018:ffffc900034ff980 EFLAGS: 00010246
RAX: 0000000000000030 RBX: 0000000000000000 RCX: cbab8d4b8d89f300
RDX: ffffc900129fc000 RSI: 0000000000005655 RDI: 0000000000005656
RBP: 0000000000000020 R08: ffffffff816e155c R09: fffff5200069fed1
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000008
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000003
FS: 00007f357e46a6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055d718cfcc08 CR3: 0000000027b3e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000f80
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
---
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