general protection fault in dtSplitUp

9 views
Skip to first unread message

syzbot

unread,
Oct 13, 2022, 12:49:37 PM10/13/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=11c7bf34880000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=b889179ab3dbc683dc36
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11276f42880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13d907a4880000

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
mounted in repro: https://storage.googleapis.com/syzbot-assets/e84e803d400d/mount_0.gz

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

kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8117 Comm: syz-executor523 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:dtExtendPage fs/jfs/jfs_dtree.c:1674 [inline]
RIP: 0010:dtSplitUp+0x1414/0x4e70 fs/jfs/jfs_dtree.c:1047
Code: d6 eb fe 48 8b 54 24 58 48 8b 44 24 20 4c 8d 62 e8 4c 89 20 e8 dd d6 eb fe 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 2f 39 00 00 49 8b 34 24 31 ff 48 89 74 24 20 e8
RSP: 0018:ffff88808d347740 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8276ae27
RDX: 0000000000000000 RSI: ffffffff8276ae93 RDI: 0000000000000003
RBP: ffff88808cc1b66a R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88808cc1b468 R14: ffff88808cc1b5a8 R15: 0000000000000000
FS: 0000555555f50300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f73b73ac658 CR3: 0000000098996000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
dtInsert+0x7fd/0xa00 fs/jfs/jfs_dtree.c:876
jfs_create.part.0+0x3c6/0x880 fs/jfs/namei.c:150
jfs_create+0x3f/0x60 fs/jfs/namei.c:90
vfs_create+0x461/0x6c0 fs/namei.c:2913
do_mknodat.part.0+0x2ff/0x480 fs/namei.c:3768
do_mknodat fs/namei.c:3789 [inline]
__do_sys_mknodat fs/namei.c:3792 [inline]
__se_sys_mknodat fs/namei.c:3789 [inline]
__x64_sys_mknodat+0x116/0x160 fs/namei.c:3789
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7ff0c7e1ee99
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:00007ffc969299f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000103
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007ff0c7e1ee99
RDX: 0000000000000008 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00007ff0c7dde700 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000103 R11: 0000000000000246 R12: 00000000f8008000
R13: 0000000000000000 R14: 00083878000000f4 R15: 0000000000000000
Modules linked in:
---[ end trace 5564f1e64822ba28 ]---
RIP: 0010:dtExtendPage fs/jfs/jfs_dtree.c:1674 [inline]
RIP: 0010:dtSplitUp+0x1414/0x4e70 fs/jfs/jfs_dtree.c:1047
Code: d6 eb fe 48 8b 54 24 58 48 8b 44 24 20 4c 8d 62 e8 4c 89 20 e8 dd d6 eb fe 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 2f 39 00 00 49 8b 34 24 31 ff 48 89 74 24 20 e8
RSP: 0018:ffff88808d347740 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff8276ae27
RDX: 0000000000000000 RSI: ffffffff8276ae93 RDI: 0000000000000003
RBP: ffff88808cc1b66a R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000000
R13: ffff88808cc1b468 R14: ffff88808cc1b5a8 R15: 0000000000000000
FS: 0000555555f50300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b0141a20e0 CR3: 0000000098996000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
0: eb fe jmp 0x0
2: 48 8b 54 24 58 mov 0x58(%rsp),%rdx
7: 48 8b 44 24 20 mov 0x20(%rsp),%rax
c: 4c 8d 62 e8 lea -0x18(%rdx),%r12
10: 4c 89 20 mov %r12,(%rax)
13: e8 dd d6 eb fe callq 0xfeebd6f5
18: 4c 89 e2 mov %r12,%rdx
1b: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
22: fc ff df
25: 48 c1 ea 03 shr $0x3,%rdx
* 29: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2d: 0f 85 2f 39 00 00 jne 0x3962
33: 49 8b 34 24 mov (%r12),%rsi
37: 31 ff xor %edi,%edi
39: 48 89 74 24 20 mov %rsi,0x20(%rsp)
3e: e8 .byte 0xe8


---
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

syzbot

unread,
Oct 15, 2022, 7:58:46 AM10/15/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 9d5c0b3a8e1a Linux 4.14.295
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=123279aa880000
kernel config: https://syzkaller.appspot.com/x/.config?x=746c079015a92425
dashboard link: https://syzkaller.appspot.com/bug?extid=1d7194bb8a1776f5162f
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=152815aa880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=171af0c2880000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/ed6fcf5895a2/disk-9d5c0b3a.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/341aa3534116/vmlinux-9d5c0b3a.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/ea637480b734/mount_0.gz

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

kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7984 Comm: syz-executor377 Not tainted 4.14.295-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
task: ffff8880aaf00640 task.stack: ffff8880b3378000
RIP: 0010:dtExtendPage fs/jfs/jfs_dtree.c:1673 [inline]
RIP: 0010:dtSplitUp+0x11c1/0x47d0 fs/jfs/jfs_dtree.c:1046
RSP: 0018:ffff8880b337f7e0 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff8880b337fcb0 RDI: ffff8880b337fb80
RBP: 0000000000000000 R08: ffffffff8b9a1db8 R09: 0000000000000004
R10: 0000000000000000 R11: ffff8880aaf00640 R12: ffff88808e3ad468
R13: ffff8880b337fb78 R14: ffff88808e3ad5a8 R15: ffff88808e3ad228
FS: 0000555556a8d300(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd9ff27cb8 CR3: 000000009b76f000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
dtInsert+0x77c/0x9e0 fs/jfs/jfs_dtree.c:875
jfs_create.part.0+0x364/0x800 fs/jfs/namei.c:150
jfs_create+0x35/0x50 fs/jfs/namei.c:90
vfs_create+0x3e3/0x620 fs/namei.c:2935
SYSC_mknodat fs/namei.c:3806 [inline]
SyS_mknodat+0x2f4/0x470 fs/namei.c:3783
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f341cc1ee99
RSP: 002b:00007ffe6bb915b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000103
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f341cc1ee99
RDX: 0000000000000008 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00007f341cbde700 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000103 R11: 0000000000000246 R12: 00000000f8008000
R13: 0000000000000000 R14: 00083878000000f4 R15: 0000000000000000
Code: f6 f4 18 ff 48 8b 44 24 50 48 8b 74 24 18 48 8d 58 e8 48 89 1e e8 e0 f4 18 ff 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 b8 2c 00 00 48 8b 33 48 85 f6 0f 85 18 1a 00
RIP: dtExtendPage fs/jfs/jfs_dtree.c:1673 [inline] RSP: ffff8880b337f7e0
RIP: dtSplitUp+0x11c1/0x47d0 fs/jfs/jfs_dtree.c:1046 RSP: ffff8880b337f7e0
---[ end trace 9afa8b7de5625124 ]---
----------------
Code disassembly (best guess):
0: f6 f4 div %ah
2: 18 ff sbb %bh,%bh
4: 48 8b 44 24 50 mov 0x50(%rsp),%rax
9: 48 8b 74 24 18 mov 0x18(%rsp),%rsi
e: 48 8d 58 e8 lea -0x18(%rax),%rbx
12: 48 89 1e mov %rbx,(%rsi)
15: e8 e0 f4 18 ff callq 0xff18f4fa
1a: 48 89 da mov %rbx,%rdx
1d: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
24: fc ff df
27: 48 c1 ea 03 shr $0x3,%rdx
* 2b: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2f: 0f 85 b8 2c 00 00 jne 0x2ced
35: 48 8b 33 mov (%rbx),%rsi
38: 48 85 f6 test %rsi,%rsi
3b: 0f .byte 0xf
3c: 85 18 test %ebx,(%rax)
3e: 1a 00 sbb (%rax),%al
Reply all
Reply to author
Forward
0 new messages