general protection fault in do_syscall_64

7 views
Skip to first unread message

syzbot

unread,
Apr 12, 2020, 8:56:14 AM4/12/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: dda0e292 Linux 4.19.114
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15c90020100000
kernel config: https://syzkaller.appspot.com/x/.config?x=f32ac7e5b2d5c341
dashboard link: https://syzkaller.appspot.com/bug?extid=67b72e30d4ab7e0bdb1f
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+67b72e...@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: 0 PID: 6805 Comm: syz-executor.4 Not tainted 4.19.114-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline]
RIP: 0010:syscall_return_slowpath arch/x86/entry/common.c:253 [inline]
RIP: 0010:do_syscall_64+0x134/0x620 arch/x86/entry/common.c:296
Code: 48 c1 e9 03 80 3c 11 00 0f 85 be 04 00 00 48 89 45 50 e8 3f 09 67 00 48 b8 00 00 00 00 00 fc ff df 65 48 8b 1c 25 00 00 00 00 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RSP: 0018:ffff888054b07f28 EFLAGS: 00010293
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff1100a960ff5
RDX: 0000000000000000 RSI: ffffffff81009b31 RDI: ffff888054b07fa8
RBP: ffff888054b07f58 R08: ffff888054af86c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffffffff88b25698 R14: 0000000000000000 R15: 0000000000000000
FS: 0000000000d80940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe4c116c740 CR3: 0000000054af0000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45ad30
Code: c0 5b 5d c3 66 0f 1f 44 00 00 8b 04 24 48 83 c4 18 5b 5d c3 66 0f 1f 44 00 00 83 3d 21 dc 82 00 00 75 14 b8 23 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 d4 d1 fb ff c3 48 83 ec 08 e8 ea 46 00 00
RSP: 002b:00007ffd60039d78 EFLAGS: 00000246 ORIG_RAX: 0000000000000023
RAX: 0000000000000000 RBX: 000000000009639d RCX: 000000000045ad30
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffd60039d80
RBP: 00000000000005c7 R08: 0000000000000001 R09: 0000000000d80940
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd60039dd0 R14: 000000000009639d R15: 00007ffd60039de0
Modules linked in:
BUG: unable to handle kernel NULL pointer dereference at 0000000000000007
PGD 54af1067 P4D 54af1067 PUD 54af2067 PMD 0
Oops: 0002 [#2] PREEMPT SMP KASAN
CPU: 0 PID: 6805 Comm: syz-executor.4 Tainted: G D 4.19.114-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline]
RIP: 0010:update_vsyscall+0x63/0x380 arch/x86/entry/vsyscall/vsyscall_gtod.c:37
Code: ff df 48 8b 5d 00 48 8d 7b 24 48 89 fa 48 c1 ea 03 0f b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 bb 00 00 00 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RSP: 0018:ffff8880ae607c48 EFLAGS: 00010046
RAX: 0000000000000007 RBX: ffffffff88b25080 RCX: ffffffff81597baf
RDX: 0000000000000000 RSI: ffffffff8100ba36 RDI: ffffffff88b250a4
RBP: ffffffff8b6d4b20 R08: ffff888054af86c0 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: ffffffff8b6d4bb0 R14: 000000005264be97 R15: ffffffff8b6d4b48
FS: 0000000000d80940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000007 CR3: 0000000054af0000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
timekeeping_update+0x264/0x4a0 kernel/time/timekeeping.c:670
timekeeping_advance+0x647/0x990 kernel/time/timekeeping.c:2124
tick_do_update_jiffies64.part.0+0x187/0x290 kernel/time/tick-sched.c:101
tick_do_update_jiffies64 kernel/time/tick-sched.c:67 [inline]
tick_sched_do_timer+0x15c/0x1a0 kernel/time/tick-sched.c:139
tick_sched_timer+0x29/0x130 kernel/time/tick-sched.c:1271
__run_hrtimer kernel/time/hrtimer.c:1401 [inline]
__hrtimer_run_queues+0x2fc/0xd50 kernel/time/hrtimer.c:1463
hrtimer_interrupt+0x312/0x770 kernel/time/hrtimer.c:1521
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1067 [inline]
smp_apic_timer_interrupt+0x10c/0x550 arch/x86/kernel/apic/apic.c:1092
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893
</IRQ>
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:oops_end+0x5c/0xf0 arch/x86/kernel/dumpstack.c:343
Code: 00 00 00 c7 05 11 6d 8a 07 ff ff ff ff e8 9c e4 17 00 83 2d 0d fe 88 09 01 74 34 48 83 3d 83 8c 8d 07 00 74 51 48 89 df 57 9d <0f> 1f 44 00 00 e8 aa ea 17 00 be 02 00 00 00 48 c7 c7 20 c8 ad 8a
RSP: 0018:ffff888054b07e58 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000001 RBX: 0000000000000286 RCX: ffffffff813caee4
RDX: 0000000000000000 RSI: ffffffff813caeb1 RDI: 0000000000000286
RBP: ffff888054b07e78 R08: ffff888054af86c0 R09: fffffbfff11f89f9
R10: fffffbfff11f89f8 R11: 0000000000000003 R12: 000000000000000b
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
general_protection+0x1e/0x30 arch/x86/entry/entry_64.S:1203
RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline]
RIP: 0010:syscall_return_slowpath arch/x86/entry/common.c:253 [inline]
RIP: 0010:do_syscall_64+0x134/0x620 arch/x86/entry/common.c:296
Code: 48 c1 e9 03 80 3c 11 00 0f 85 be 04 00 00 48 89 45 50 e8 3f 09 67 00 48 b8 00 00 00 00 00 fc ff df 65 48 8b 1c 25 00 00 00 00 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
RSP: 0018:ffff888054b07f28 EFLAGS: 00010293
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff1100a960ff5
RDX: 0000000000000000 RSI: ffffffff81009b31 RDI: ffff888054b07fa8
RBP: ffff888054b07f58 R08: ffff888054af86c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffffffff88b25698 R14: 0000000000000000 R15: 0000000000000000
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45ad30
Code: c0 5b 5d c3 66 0f 1f 44 00 00 8b 04 24 48 83 c4 18 5b 5d c3 66 0f 1f 44 00 00 83 3d 21 dc 82 00 00 75 14 b8 23 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 d4 d1 fb ff c3 48 83 ec 08 e8 ea 46 00 00
RSP: 002b:00007ffd60039d78 EFLAGS: 00000246 ORIG_RAX: 0000000000000023
RAX: 0000000000000000 RBX: 000000000009639d RCX: 000000000045ad30
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffd60039d80
RBP: 00000000000005c7 R08: 0000000000000001 R09: 0000000000d80940
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd60039dd0 R14: 000000000009639d R15: 00007ffd60039de0
Modules linked in:
CR2: 0000000000000007
---[ end trace aa3e6d8d243e36c9 ]---
invalid opcode: 0000 [#3] PREEMPT SMP KASAN
RIP: 0010:__read_once_size include/linux/compiler.h:193 [inline]
RIP: 0010:syscall_return_slowpath arch/x86/entry/common.c:253 [inline]
RIP: 0010:do_syscall_64+0x134/0x620 arch/x86/entry/common.c:296
CPU: 1 PID: 22304 Comm: syz-executor.5 Tainted: G D 4.19.114-syzkaller #0
Code: 48 c1 e9 03 80 3c 11 00 0f 85 be 04 00 00 48 89 45 50 e8 3f 09 67 00 48 b8 00 00 00 00 00 fc ff df 65 48 8b 1c 25 00 00 00 00 <00> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RSP: 0018:ffff888054b07f28 EFLAGS: 00010293
RIP: 0010:prepare_exit_to_usermode+0x290/0x2e0 arch/x86/entry/common.c:192
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff1100a960ff5
Code: e9 ea fe ff ff e8 70 0f 67 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <ff> e8 3a da 9c 00 e9 26 ff ff ff e8 30 da 9c 00 e9 99 fe ff ff e8
RDX: 0000000000000000 RSI: ffffffff81009b31 RDI: ffff888054b07fa8
RSP: 0000:ffff888041b07f30 EFLAGS: 00010003
RBP: ffff888054b07f58 R08: ffff888054af86c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
RAX: ffff888050854240 RBX: ffff888050854240 RCX: ffffffff8100941f
R13: ffffffff88b25698 R14: 0000000000000000 R15: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81009500 RDI: 0000000000000005
FS: 0000000000d80940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
RBP: 0000000000000008 R08: ffff888050854240 R09: ffffed1015ce4733
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
R10: ffffed1015ce4732 R11: ffff8880ae723993 R12: ffff888041b07f58
CR2: 0000000000000007 CR3: 0000000054af0000 CR4: 00000000001406f0
R13: 0000000000000008 R14: 0000000000000000 R15: 0000000000000000
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
FS: 0000000001de1940(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Sep 15, 2020, 8:00:12 AM9/15/20
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages