syzbot


invalid opcode in pvclock_gtod_notify

Status: auto-closed as invalid on 2020/12/26 00:44
Subsystems: kvm
[Documentation on labels]
First crash: 1349d, last: 1307d

Sample crash report:
GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 10476 Comm: syz-executor.5 Not tainted 5.9.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:update_pvclock_gtod arch/x86/kvm/x86.c:1750 [inline]
RIP: 0010:pvclock_gtod_notify+0x241/0x570 arch/x86/kvm/x86.c:7466
Code: f5 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 6b 38 48 8d 7d 4c 48 89 fa 48 c1 ea 03 0f b6 14 02 48 89 f8 83 e0 07 83 c0 70 <07> 77 00 00 00 00 00 85 73 02 00 00 8b 45 4c 48 8d 7b 48 48 89 fa
RSP: 0018:ffffc90000da8bf0 EFLAGS: 00010006
RAX: 0000000000000074 RBX: ffffffff8d440980 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff89f7718c
RBP: ffffffff89f77140 R08: 0000000000000000 R09: ffffffff8d0c0a1f
R10: fffffbfff1a18143 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff89f02dc0
FS:  0000000000000000(0000) GS:ffff8880ae500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e522000 CR3: 00000000a64e8000 CR4: 00000000001526e0
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_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [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:__tlb_remove_page_size+0x8c/0x420 mm/mmu_gather.c:81
Code: c1 ea 03 80 3c 02 00 0f 85 2a 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 6b 28 48 8d 7d 08 48 89 fa 48 c1 ea 03 0f b6 04 02 <84> c0 74 08 3c 03 0f 8e ed 02 00 00 48 b8 00 00 00 00 00 fc ff df
RSP: 0018:ffffc9000873f750 EFLAGS: 00000a02
RAX: 0000000000000000 RBX: ffffc9000873fa50 RCX: ffffffff81a9ff32
RDX: 1ffff1100a925a01 RSI: ffffffff81a9ff40 RDI: ffff88805492d008
RBP: ffff88805492d000 R08: 0000000000000000 R09: ffffea0001794573
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000023
R13: ffff888063bad4e0 R14: ffffea0001794540 R15: ffffc9000873fa78
 __tlb_remove_page include/asm-generic/tlb.h:438 [inline]
 zap_pte_range mm/memory.c:1108 [inline]
 zap_pmd_range mm/memory.c:1209 [inline]
 zap_pud_range mm/memory.c:1238 [inline]
 zap_p4d_range mm/memory.c:1259 [inline]
 unmap_page_range+0xfe8/0x2bf0 mm/memory.c:1280
 unmap_single_vma+0x198/0x300 mm/memory.c:1325
 unmap_vmas+0x168/0x2e0 mm/memory.c:1357
 exit_mmap+0x2b1/0x530 mm/mmap.c:3183
 __mmput+0x122/0x470 kernel/fork.c:1076
 mmput+0x53/0x60 kernel/fork.c:1097
 exit_mm kernel/exit.c:483 [inline]
 do_exit+0xa8b/0x29f0 kernel/exit.c:793
 do_group_exit+0x125/0x310 kernel/exit.c:903
 get_signal+0x428/0x1f00 kernel/signal.c:2757
 arch_do_signal+0x82/0x2520 arch/x86/kernel/signal.c:811
 exit_to_user_mode_loop kernel/entry/common.c:161 [inline]
 exit_to_user_mode_prepare+0x1ae/0x200 kernel/entry/common.c:192
 syscall_exit_to_user_mode+0x7e/0x2e0 kernel/entry/common.c:267
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45e179
Code: Bad RIP value.
RSP: 002b:00007f9f35152cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 000000000118d098 RCX: 000000000045e179
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000118d098
RBP: 000000000118d090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118d09c
R13: 000000000169fb6f R14: 00007f9f351539c0 R15: 000000000118d09c
Modules linked in:
---[ end trace 014c57eacaecf6db ]---
RIP: 0010:update_pvclock_gtod arch/x86/kvm/x86.c:1750 [inline]
RIP: 0010:pvclock_gtod_notify+0x241/0x570 arch/x86/kvm/x86.c:7466
Code: f5 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 6b 38 48 8d 7d 4c 48 89 fa 48 c1 ea 03 0f b6 14 02 48 89 f8 83 e0 07 83 c0 70 <07> 77 00 00 00 00 00 85 73 02 00 00 8b 45 4c 48 8d 7b 48 48 89 fa
RSP: 0018:ffffc90000da8bf0 EFLAGS: 00010006
RAX: 0000000000000074 RBX: ffffffff8d440980 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff89f7718c
RBP: ffffffff89f77140 R08: 0000000000000000 R09: ffffffff8d0c0a1f
R10: fffffbfff1a18143 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff89f02dc0
FS:  0000000000000000(0000) GS:ffff8880ae500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e522000 CR3: 00000000a64e8000 CR4: 00000000001526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/27 00:37 upstream eeddbe6841cd 2d5ea0cb .config console log report info ci-upstream-kasan-gce
2020/09/18 22:22 upstream 92ab97adeefc 53ce8104 .config console log report info ci-upstream-kasan-gce-smack-root
2020/08/26 13:29 upstream 2ac69819ba9e 318430cb .config console log report ci-upstream-kasan-gce
2020/08/23 21:01 upstream c3d8f220d012 cef5ae68 .config console log report ci-upstream-kasan-gce-root
2020/09/17 20:57 upstream 5925fa68fe82 8247808b .config console log report info ci-upstream-kasan-gce-386
2020/09/06 10:57 upstream 9322c47b21b9 abf9ba4f .config console log report ci-upstream-kasan-gce-386
2020/08/15 16:03 upstream c9c9735c46f5 424dd8e7 .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.