syzbot


BUG: unable to handle kernel NULL pointer dereference in pvclock_gtod_notify (2)

Status: auto-closed as invalid on 2020/12/30 22:28
Subsystems: kvm
[Documentation on labels]
First crash: 1341d, last: 1295d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel NULL pointer dereference in pvclock_gtod_notify kvm 1 1503d 1499d 0/26 auto-closed as invalid on 2020/06/05 14:13

Sample crash report:
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
PGD 58c58067 P4D 58c58067 PUD 58c59067 PMD 0 
Oops: 0002 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 6902 Comm: syz-executor.3 Not tainted 5.9.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:gtod_is_based_on_tsc arch/x86/kvm/x86.c:1951 [inline]
RIP: 0010:pvclock_gtod_notify+0x3e0/0x570 arch/x86/kvm/x86.c:7471
Code: 48 c7 c7 a8 d0 97 8c 48 8b 74 24 10 48 89 05 17 9b 8b 0b e8 a2 c9 4f 00 8b 1d ac 9a 8b 0b bf 01 00 00 00 83 05 70 9a 8b 0b 01 <00> 00 00 00 00 00 00 00 6a 00 83 fb 01 74 29 e8 4c 08 6a 00 be 04
RSP: 0018:ffffc90000007bf0 EFLAGS: 00010002
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: ffffffff8c97d0a8 RDI: 0000000000000001
RBP: ffffffff89f77140 R08: 0000000000000001 R09: ffff888058c4ee60
R10: fffffbfff16b2ca9 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff89f02dc0
FS:  00000000018a8940(0000) GS:ffff8880ae400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000058c57000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 notifier_call_chain+0xb5/0x200 kernel/notifier.c:83
 update_pvclock_gtod kernel/time/timekeeping.c:581 [inline]
 timekeeping_update+0x28a/0x4a0 kernel/time/timekeeping.c:675
 timekeeping_advance+0x6ad/0xa40 kernel/time/timekeeping.c:2122
 tick_do_update_jiffies64.part.0+0x1ec/0x330 kernel/time/tick-sched.c:101
 tick_do_update_jiffies64 kernel/time/tick-sched.c:64 [inline]
 tick_sched_do_timer kernel/time/tick-sched.c:147 [inline]
 tick_sched_timer+0x236/0x2a0 kernel/time/tick-sched.c:1321
 __run_hrtimer kernel/time/hrtimer.c:1524 [inline]
 __hrtimer_run_queues+0x1d5/0xfc0 kernel/time/hrtimer.c:1588
 hrtimer_interrupt+0x334/0x940 kernel/time/hrtimer.c:1650
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1080 [inline]
 __sysvec_apic_timer_interrupt+0x147/0x5f0 arch/x86/kernel/apic/apic.c:1097
 asm_call_irq_on_stack+0xf/0x20
 </IRQ>
 __run_sysvec_on_irqstack arch/x86/include/asm/irq_stack.h:37 [inline]
 run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:89 [inline]
 sysvec_apic_timer_interrupt+0xb2/0xf0 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581
RIP: 0010:__sanitizer_cov_trace_pc+0x30/0x60 kernel/kcov.c:197
Code: fe 01 00 65 8b 05 e0 bf 8b 7e a9 00 01 ff 00 48 8b 34 24 74 0f f6 c4 01 74 35 8b 82 2c 14 00 00 85 c0 74 2b 8b 82 08 14 00 00 <83> f8 02 75 20 48 8b 8a 10 14 00 00 8b 92 0c 14 00 00 48 8b 01 48
RSP: 0018:ffffc90005777de0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 00007ffc6dd1ea40 RCX: ffffffff83bff77b
RDX: ffff888058c4e580 RSI: ffffffff83bff785 RDI: 0000000000000006
RBP: 0000000000000010 R08: 0000000000000001 R09: ffff888058c4ee60
R10: 00007ffffffff000 R11: 0000000000000000 R12: ffffc90005777e40
R13: 00007ffc6dd1ea50 R14: 00007ffffffff000 R15: 0000000000000000
 instrument_copy_from_user include/linux/instrumented.h:105 [inline]
 _copy_from_user+0x105/0x190 lib/usercopy.c:14
 copy_from_user include/linux/uaccess.h:160 [inline]
 get_timespec64+0x75/0x220 kernel/time/time.c:787
 __do_sys_nanosleep kernel/time/hrtimer.c:1962 [inline]
 __se_sys_nanosleep kernel/time/hrtimer.c:1957 [inline]
 __x64_sys_nanosleep+0xaa/0x260 kernel/time/hrtimer.c:1957
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
BUG: unable to handle page fault for address: 0000000080010002
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
PGD 58c58067 P4D 58c58067 PUD 0 
Oops: 0002 [#2] PREEMPT SMP KASAN
CPU: 0 PID: 6902 Comm: syz-executor.3 Not tainted 5.9.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:in_gate_area_no_mm+0x3e/0x6a arch/x86/entry/vsyscall/vsyscall_64.c:344
Code: 00 00 00 89 ee e8 52 95 75 00 83 fd 02 74 24 e8 e8 98 75 00 48 81 e3 00 f0 ff ff 48 c7 c7 00 00 60 ff 48 89 de e8 52 95 75 00 <48> 81 00 00 00 00 00 00 00 00 c4 98 75 00 45 31 e4 5b 44 89 e0 5d
RSP: 0018:ffffc900000070f0 EFLAGS: 00010046
RAX: 0000000080010002 RBX: 000000000045c000 RCX: ffffffff8100a5be
RDX: 000000000045c000 RSI: ffff888058c4e580 RDI: 0000000000000007
RBP: 0000000000000000 R08: ffffc900000072b8 R09: ffffffff8d3fd0c9
R10: ffffffffff600000 R11: 0000000000000001 R12: ffffc900000072b8
R13: 0000000000000001 R14: 000000000045c261 R15: ffffc900000071c8
FS:  00000000018a8940(0000) GS:ffff8880ae400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000080010002 CR3: 0000000058c57000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 is_kernel include/linux/kallsyms.h:44 [inline]
 is_ksym_addr include/linux/kallsyms.h:50 [inline]
 kallsyms_lookup+0xc3/0x2e0 kernel/kallsyms.c:291
 __sprint_symbol+0x9c/0x1c0 kernel/kallsyms.c:364
 symbol_string+0x14c/0x370 lib/vsprintf.c:972
 pointer+0x185/0x970 lib/vsprintf.c:2224
 vsnprintf+0x5b2/0x14f0 lib/vsprintf.c:2622
 vscnprintf+0x29/0x80 lib/vsprintf.c:2721
 vprintk_store+0x44/0x4a0 kernel/printk/printk.c:1950
 vprintk_emit+0x14c/0x740 kernel/printk/printk.c:2011
 vprintk_func+0x8d/0x1d4 kernel/printk/printk_safe.c:393
 printk+0xba/0xed kernel/printk/printk.c:2078
 show_ip+0x22/0x30 arch/x86/kernel/dumpstack.c:131
 show_iret_regs+0xd/0x33 arch/x86/kernel/dumpstack.c:138
 __show_regs+0x1f/0x60 arch/x86/kernel/process_64.c:73
 show_trace_log_lvl+0x25b/0x2ba arch/x86/kernel/dumpstack.c:281
 show_regs arch/x86/kernel/dumpstack.c:457 [inline]
 __die_body arch/x86/kernel/dumpstack.c:400 [inline]
 __die+0x58/0x97 arch/x86/kernel/dumpstack.c:414
 no_context+0x56b/0x9f0 arch/x86/mm/fault.c:741
 __bad_area_nosemaphore+0xa9/0x4f0 arch/x86/mm/fault.c:835
 do_user_addr_fault+0x760/0xbf0 arch/x86/mm/fault.c:1248
 handle_page_fault arch/x86/mm/fault.c:1429 [inline]
 exc_page_fault+0xa8/0x190 arch/x86/mm/fault.c:1482
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:538
RIP: 0010:gtod_is_based_on_tsc arch/x86/kvm/x86.c:1951 [inline]
RIP: 0010:pvclock_gtod_notify+0x3e0/0x570 arch/x86/kvm/x86.c:7471
Code: 48 c7 c7 a8 d0 97 8c 48 8b 74 24 10 48 89 05 17 9b 8b 0b e8 a2 c9 4f 00 8b 1d ac 9a 8b 0b bf 01 00 00 00 83 05 70 9a 8b 0b 01 <00> 00 00 00 00 00 00 00 6a 00 83 fb 01 74 29 e8 4c 08 6a 00 be 04
RSP: 0018:ffffc90000007bf0 EFLAGS: 00010002
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: ffffffff8c97d0a8 RDI: 0000000000000001
RBP: ffffffff89f77140 R08: 0000000000000001 R09: ffff888058c4ee60
R10: fffffbfff16b2ca9 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff89f02dc0
 notifier_call_chain+0xb5/0x200 kernel/notifier.c:83
 update_pvclock_gtod kernel/time/timekeeping.c:581 [inline]
 timekeeping_update+0x28a/0x4a0 kernel/time/timekeeping.c:675
 timekeeping_advance+0x6ad/0xa40 kernel/time/timekeeping.c:2122
 tick_do_update_jiffies64.part.0+0x1ec/0x330 kernel/time/tick-sched.c:101
 tick_do_update_jiffies64 kernel/time/tick-sched.c:64 [inline]
 tick_sched_do_timer kernel/time/tick-sched.c:147 [inline]
 tick_sched_timer+0x236/0x2a0 kernel/time/tick-sched.c:1321
 __run_hrtimer kernel/time/hrtimer.c:1524 [inline]
 __hrtimer_run_queues+0x1d5/0xfc0 kernel/time/hrtimer.c:1588
 hrtimer_interrupt+0x334/0x940 kernel/time/hrtimer.c:1650
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1080 [inline]
 __sysvec_apic_timer_interrupt+0x147/0x5f0 arch/x86/kernel/apic/apic.c:1097
 asm_call_irq_on_stack+0xf/0x20
 </IRQ>
 __run_sysvec_on_irqstack arch/x86/include/asm/irq_stack.h:37 [inline]
 run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:89 [inline]
 sysvec_apic_timer_interrupt+0xb2/0xf0 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581
RIP: 0010:__sanitizer_cov_trace_pc+0x30/0x60 kernel/kcov.c:197
Code: fe 01 00 65 8b 05 e0 bf 8b 7e a9 00 01 ff 00 48 8b 34 24 74 0f f6 c4 01 74 35 8b 82 2c 14 00 00 85 c0 74 2b 8b 82 08 14 00 00 <83> f8 02 75 20 48 8b 8a 10 14 00 00 8b 92 0c 14 00 00 48 8b 01 48
RSP: 0018:ffffc90005777de0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 00007ffc6dd1ea40 RCX: ffffffff83bff77b
RDX: ffff888058c4e580 RSI: ffffffff83bff785 RDI: 0000000000000006
RBP: 0000000000000010 R08: 0000000000000001 R09: ffff888058c4ee60
R10: 00007ffffffff000 R11: 0000000000000000 R12: ffffc90005777e40
R13: 00007ffc6dd1ea50 R14: 00007ffffffff000 R15: 0000000000000000
 instrument_copy_from_user include/linux/instrumented.h:105 [inline]
 _copy_from_user+0x105/0x190 lib/usercopy.c:14
 copy_from_user include/linux/uaccess.h:160 [inline]
 get_timespec64+0x75/0x220 kernel/time/time.c:787
 __do_sys_nanosleep kernel/time/hrtimer.c:1962 [inline]
 __se_sys_nanosleep kernel/time/hrtimer.c:1957 [inline]
 __x64_sys_nanosleep+0xaa/0x260 kernel/time/hrtimer.c:1957
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
BUG: unable to handle page fault for address: 0000000080010002
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
PGD 58c58067 P4D 58c58067 PUD 0 
Oops: 0002 [#3] PREEMPT SMP KASAN
CPU: 0 PID: 6902 Comm: syz-executor.3 Not tainted 5.9.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:in_gate_area_no_mm+0x3e/0x6a arch/x86/entry/vsyscall/vsyscall_64.c:344
Code: 00 00 00 89 ee e8 52 95 75 00 83 fd 02 74 24 e8 e8 98 75 00 48 81 e3 00 f0 ff ff 48 c7 c7 00 00 60 ff 48 89 de e8 52 95 75 00 <48> 81 00 00 00 00 00 00 00 00 c4 98 75 00 45 31 e4 5b 44 89 e0 5d
RSP: 0018:ffffc900000065c0 EFLAGS: 00010046
RAX: 0000000080010002 RBX: 000000000045c000 RCX: ffffffff8100a5be
RDX: 000000000045c000 RSI: ffff888058c4e580 RDI: 0000000000000007
RBP: 0000000000000000 R08: ffffc90000006788 R09: ffff8880ae424389
R10: ffffffffff600000 R11: 0000000000000001 R12: ffffc90000006788
R13: 0000000000000001 R14: 000000000045c261 R15: ffffc90000006698
FS:  00000000018a8940(0000) GS:ffff8880ae400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000080010002 CR3: 0000000058c57000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 is_kernel include/linux/kallsyms.h:44 [inline]
 is_ksym_addr include/linux/kallsyms.h:50 [inline]
 kallsyms_lookup+0xc3/0x2e0 kernel/kallsyms.c:291
 __sprint_symbol+0x9c/0x1c0 kernel/kallsyms.c:364
 symbol_string+0x14c/0x370 lib/vsprintf.c:972
 pointer+0x185/0x970 lib/vsprintf.c:2224
 vsnprintf+0x5b2/0x14f0 lib/vsprintf.c:2622
 vscnprintf+0x29/0x80 lib/vsprintf.c:2721
 printk_safe_log_store+0xf5/0x250 kernel/printk/printk_safe.c:94
 vprintk_safe kernel/printk/printk_safe.c:347 [inline]
 vprintk_func+0xf5/0x1d4 kernel/printk/printk_safe.c:390
 printk+0xba/0xed kernel/printk/printk.c:2078
 show_ip+0x22/0x30 arch/x86/kernel/dumpstack.c:131
 show_iret_regs+0xd/0x33 arch/x86/kernel/dumpstack.c:138
 __show_regs+0x1f/0x60 arch/x86/kernel/process_64.c:73
 show_trace_log_lvl+0x25b/0x2ba arch/x86/kernel/dumpstack.c:281
 show_regs arch/x86/kernel/dumpstack.c:457 [inline]
 __die_body arch/x86/kernel/dumpstack.c:400 [inline]
 __die+0x58/0x97 arch/x86/kernel/dumpstack.c:414
 no_context+0x56b/0x9f0 arch/x86/mm/fault.c:741
 __bad_area_nosemaphore+0xa9/0x4f0 arch/x86/mm/fault.c:835
 do_user_addr_fault+0x760/0xbf0 arch/x86/mm/fault.c:1248
 handle_page_fault arch/x86/mm/fault.c:1429 [inline]
 exc_page_fault+0xa8/0x190 arch/x86/mm/fault.c:1482
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:538
RIP: 0010:in_gate_area_no_mm+0x3e/0x6a arch/x86/entry/vsyscall/vsyscall_64.c:344
Code: 00 00 00 89 ee e8 52 95 75 00 83 fd 02 74 24 e8 e8 98 75 00 48 81 e3 00 f0 ff ff 48 c7 c7 00 00 60 ff 48 89 de e8 52 95 75 00 <48> 81 00 00 00 00 00 00 00 00 c4 98 75 00 45 31 e4 5b 44 89 e0 5d
RSP: 0018:ffffc900000070f0 EFLAGS: 00010046
RAX: 0000000080010002 RBX: 000000000045c000 RCX: ffffffff8100a5be
RDX: 000000000045c000 RSI: ffff888058c4e580 RDI: 0000000000000007
Lost 130 message(s)!

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/01 22:23 upstream fcadab740480 9602ddf4 .config console log report info ci-upstream-kasan-gce-root
2020/10/01 07:42 upstream 60e720931556 a9767fb2 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/28 00:39 upstream 16bc1d5432eb 5dd8aee8 .config console log report info ci-upstream-kasan-gce-selinux-root
2020/09/27 06:06 upstream eeddbe6841cd 5dd8aee8 .config console log report info ci-upstream-kasan-gce-root
2020/09/21 13:08 upstream ba4f184e126b 9e1fa68e .config console log report info ci-upstream-kasan-gce
2020/09/19 19:24 upstream eb5f95f1593f 53ce8104 .config console log report info ci-upstream-kasan-gce
2020/08/20 23:49 upstream da2968ff879b 1d75fe45 .config console log report ci-upstream-kasan-gce-selinux-root
2020/08/18 04:17 upstream 06a4ec1d9dc6 424dd8e7 .config console log report ci-upstream-kasan-gce
2020/09/28 12:05 upstream a1b8638ba132 6bfdbe89 .config console log report info ci-upstream-kasan-gce-386
2020/09/24 02:30 upstream 805c6d3c1921 287cd75a .config console log report info ci-upstream-kasan-gce-386
2020/09/23 13:30 upstream 805c6d3c1921 287cd75a .config console log report info ci-upstream-kasan-gce-386
2020/08/27 10:14 upstream 15bc20c6af4c 816e0689 .config console log report ci-upstream-kasan-gce-386
2020/08/20 23:21 upstream da2968ff879b 1d75fe45 .config console log report ci-upstream-kasan-gce-386
2020/08/16 20:13 upstream 2cc3c4b3c2e9 424dd8e7 .config console log report ci-upstream-kasan-gce-386
2020/08/28 05:10 linux-next 88abac0b753d 816e0689 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.