kernel BUG in dbFindLeaf (2)

5 views
Skip to first unread message

syzbot

unread,
Oct 2, 2022, 12:21:46 AM10/2/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13643648880000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=adae3ec9e00224b6c1ba
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=137b5512880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10bc0ab8880000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ea228ff02669/vmlinux-3f8a27f9.xz

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

BUG at fs/jfs/jfs_dmap.c:3002 assert(n < 4)
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_dmap.c:3002!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8102 Comm: syz-executor382 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:dbFindLeaf+0x147/0x240 fs/jfs/jfs_dmap.c:3002
Code: fe 83 fb 04 75 96 e8 88 2f ed fe 48 c7 c1 e0 f7 9a 88 ba ba 0b 00 00 48 c7 c6 60 f7 9a 88 48 c7 c7 a0 f7 9a 88 e8 d4 60 7e 05 <0f> 0b e8 62 2f ed fe 41 83 ef 01 31 ff 8d 04 ad 01 00 00 00 44 89
RSP: 0018:ffff8880915af4b8 EFLAGS: 00010282
RAX: 000000000000002b RBX: 0000000000000004 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed10122b5e89
RBP: 000000000000001c R08: 000000000000002b R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880aaf9f010
R13: 0000000000000000 R14: 00000000ffffffff R15: 00000000001cb702
FS: 0000555556183300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffeb5797f40 CR3: 000000009d3e6000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
dbAllocDmapLev+0xaf/0x330 fs/jfs/jfs_dmap.c:2010
dbAlloc+0x82b/0xb00 fs/jfs/jfs_dmap.c:830
extBalloc fs/jfs/jfs_extent.c:531 [inline]
extAlloc+0x4cb/0xdb0 fs/jfs/jfs_extent.c:138
jfs_get_block+0x1f5/0xae0 fs/jfs/inode.c:258
nobh_write_begin+0x446/0x1030 fs/buffer.c:2619
jfs_write_begin+0x3e/0x1a0 fs/jfs/inode.c:323
generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3170
__generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295
generic_file_write_iter+0x3f8/0x730 mm/filemap.c:3323
call_write_iter include/linux/fs.h:1821 [inline]
do_iter_readv_writev+0x668/0x790 fs/read_write.c:681
do_iter_write+0x182/0x5d0 fs/read_write.c:960
vfs_writev+0x153/0x2e0 fs/read_write.c:1005
do_writev+0x136/0x330 fs/read_write.c:1040
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fa2365fde59
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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc2948e478 EFLAGS: 00000246 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fa2365fde59
RDX: 0000000000000001 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 00007fa2365bd6c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000f8008000
R13: 0000000000000000 R14: 00080000000000f4 R15: 0000000000000000
Modules linked in:
---[ end trace ddbf4f56a168b38e ]---
RIP: 0010:dbFindLeaf+0x147/0x240 fs/jfs/jfs_dmap.c:3002
Code: fe 83 fb 04 75 96 e8 88 2f ed fe 48 c7 c1 e0 f7 9a 88 ba ba 0b 00 00 48 c7 c6 60 f7 9a 88 48 c7 c7 a0 f7 9a 88 e8 d4 60 7e 05 <0f> 0b e8 62 2f ed fe 41 83 ef 01 31 ff 8d 04 ad 01 00 00 00 44 89
RSP: 0018:ffff8880915af4b8 EFLAGS: 00010282
RAX: 000000000000002b RBX: 0000000000000004 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed10122b5e89
RBP: 000000000000001c R08: 000000000000002b R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880aaf9f010
R13: 0000000000000000 R14: 00000000ffffffff R15: 00000000001cb702
FS: 0000555556183300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005655382e90a0 CR3: 000000009d3e6000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 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.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages