general protection fault in dtInsertEntry

10 views
Skip to first unread message

syzbot

unread,
Sep 25, 2022, 7:44:35 PM9/25/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 4edbf74132a4 Linux 4.14.294
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17f37ca8880000
kernel config: https://syzkaller.appspot.com/x/.config?x=94d4cf9c4e23980f
dashboard link: https://syzkaller.appspot.com/bug?extid=5e8b600d8a36c4a51f7d
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=114cb7f8880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12174404880000

Downloadable assets:
disk image: https://storage.googleapis.com/b40da19b4827/disk-4edbf741.raw.xz
vmlinux: https://storage.googleapis.com/a36e39677c18/vmlinux-4edbf741.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+5e8b60...@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: 7965 Comm: syz-executor399 Not tainted 4.14.294-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
task: ffff8880975a8040 task.stack: ffff8880b37e8000
RIP: 0010:dtInsertEntry.isra.0+0x10a2/0x1440 fs/jfs/jfs_dtree.c:4018
RSP: 0018:ffff8880b37ef558 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc900015b90a8
RDX: 0000000000000001 RSI: 0000000000000003 RDI: 0000000000000008
RBP: ffff88808dedf446 R08: ffff8880b37ef738 R09: ffff8880b37ef718
R10: 0000000000000000 R11: ffff8880975a8040 R12: ffff8880b5221d9a
R13: dffffc0000000000 R14: 0000000000000073 R15: ffff88808dedf428
FS: 0000555555f50300(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffce6e02f80 CR3: 00000000aa1b7000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
dtInsert+0x47a/0x9e0 fs/jfs/jfs_dtree.c:898
jfs_create.part.0+0x364/0x800 fs/jfs/namei.c:150
jfs_create+0x35/0x50 fs/jfs/namei.c:90
lookup_open+0x77a/0x1750 fs/namei.c:3241
do_last fs/namei.c:3334 [inline]
path_openat+0xe08/0x2970 fs/namei.c:3571
do_filp_open+0x179/0x3c0 fs/namei.c:3605
do_sys_open+0x296/0x410 fs/open.c:1081
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f0b5376afd9
RSP: 002b:00007ffc28925448 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0b5376afd9
RDX: 000000000000275a RSI: 0000000020000040 RDI: 00000000ffffff9c
RBP: 00007f0b5372a840 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000f8008000
R13: 0000000000000000 R14: 00080000000000f8 R15: 0000000000000000
Code: c6 40 04 ff e9 9f f9 ff ff e8 2b 50 19 ff 48 8b 84 24 b0 00 00 00 48 8d 78 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 df 01 00
RIP: dtInsertEntry.isra.0+0x10a2/0x1440 fs/jfs/jfs_dtree.c:4018 RSP: ffff8880b37ef558
---[ end trace 2d49aa6f9324fe21 ]---
----------------
Code disassembly (best guess):
0: c6 40 04 ff movb $0xff,0x4(%rax)
4: e9 9f f9 ff ff jmpq 0xfffff9a8
9: e8 2b 50 19 ff callq 0xff195039
e: 48 8b 84 24 b0 00 00 mov 0xb0(%rsp),%rax
15: 00
16: 48 8d 78 08 lea 0x8(%rax),%rdi
1a: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
21: fc ff df
24: 48 89 fa mov %rdi,%rdx
27: 48 c1 ea 03 shr $0x3,%rdx
* 2b: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction
2f: 48 89 fa mov %rdi,%rdx
32: 83 e2 07 and $0x7,%edx
35: 38 d0 cmp %dl,%al
37: 7f 08 jg 0x41
39: 84 c0 test %al,%al
3b: 0f .byte 0xf
3c: 85 df test %ebx,%edi
3e: 01 00 add %eax,(%rax)


---
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,
Sep 25, 2022, 9:50:39 PM9/25/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=16760538880000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=53e875cf44c7572024d4
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16dee92f080000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16b1d188880000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+53e875...@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: 8083 Comm: syz-executor184 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:dtInsertEntry.isra.0+0x1253/0x15d0 fs/jfs/jfs_dtree.c:4019
Code: 40 04 ff e9 2f f9 ff ff e8 1a 38 ec fe 48 8b 84 24 b8 00 00 00 48 8d 78 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 d4 01 00 00
RSP: 0018:ffff888095657488 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff82764d04
RDX: 0000000000000001 RSI: ffffffff82764d56 RDI: 0000000000000008
RBP: 0000000000000000 R08: ffff888095657678 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000074071 R12: ffff88808b85b446
R13: 0000000000000073 R14: ffff88808b85b448 R15: 0000000000000000
FS: 0000555555c8d300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcb8e74e80 CR3: 00000000aa320000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
dtInsert+0x4c2/0xa00 fs/jfs/jfs_dtree.c:899
jfs_create.part.0+0x3c6/0x880 fs/jfs/namei.c:150
jfs_create+0x3f/0x60 fs/jfs/namei.c:90
lookup_open+0x893/0x1a20 fs/namei.c:3235
do_last fs/namei.c:3327 [inline]
path_openat+0x1094/0x2df0 fs/namei.c:3537
do_filp_open+0x18c/0x3f0 fs/namei.c:3567
do_sys_open+0x3b3/0x520 fs/open.c:1085
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f9ca093afd9
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:00007ffc49f25af8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9ca093afd9
RDX: 000000000000275a RSI: 0000000020000040 RDI: 00000000ffffff9c
RBP: 00007f9ca08fa840 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000f8008000
R13: 0000000000000000 R14: 00080000000000f8 R15: 0000000000000000
Modules linked in:
---[ end trace 2dc036272c4ab277 ]---
RIP: 0010:dtInsertEntry.isra.0+0x1253/0x15d0 fs/jfs/jfs_dtree.c:4019
Code: 40 04 ff e9 2f f9 ff ff e8 1a 38 ec fe 48 8b 84 24 b8 00 00 00 48 8d 78 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 d4 01 00 00
RSP: 0018:ffff888095657488 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff82764d04
RDX: 0000000000000001 RSI: ffffffff82764d56 RDI: 0000000000000008
RBP: 0000000000000000 R08: ffff888095657678 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000074071 R12: ffff88808b85b446
R13: 0000000000000073 R14: ffff88808b85b448 R15: 0000000000000000
FS: 0000555555c8d300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcb8e74e80 CR3: 00000000aa320000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 40 04 ff add $0xff,%al
3: e9 2f f9 ff ff jmpq 0xfffff937
8: e8 1a 38 ec fe callq 0xfeec3827
d: 48 8b 84 24 b8 00 00 mov 0xb8(%rsp),%rax
14: 00
15: 48 8d 78 08 lea 0x8(%rax),%rdi
19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
20: fc ff df
23: 48 89 fa mov %rdi,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction
2e: 48 89 fa mov %rdi,%rdx
31: 83 e2 07 and $0x7,%edx
34: 38 d0 cmp %dl,%al
36: 7f 08 jg 0x40
38: 84 c0 test %al,%al
3a: 0f 85 d4 01 00 00 jne 0x214
Reply all
Reply to author
Forward
0 new messages