Project

General

Profile

Bug #7573

panic while starting CPU on KVM

Added by Daniel Kimmel about 4 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2016-11-11
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

Running in KVM can sometime result in a spurious cyclic firing on a cpu that isn't totally initialized. If this happens, we just need to ignore the interrupt and continue booting. We track these spurious cyclics in a kstat. The panic looks like this:

panic[cpu1]/thread=ffffff00086ebc40: BAD TRAP: type=e (#pf Page fault) rp=ffffff000872ddc0 addr=98 occurred in module "genunix" due to a NULL pointer dereference

#pf Page fault
Bad kernel fault at addr=0x98
pid=0, pc=0xfffffffffbd40ab7, sp=0xffffff000872deb0, eflags=0x10282
cr0: 80050033<pg,wp,ne,et,mp,pe> cr4: 6b8<xmme,fxsr,pge,pae,pse,de>
cr2: 98cr3: d000000cr8: c

rdi: ffffff025c106580 rsi: 0 rdx: 0
rcx: 0 r8: d1 r9: 10
rax: 0 rbx: ffffff025c106580 rbp: ffffff000872df20
r10: 6 r11: fffffffffb8306c0 r12: 0
r13: 1 r14: 0 r15: 0
fsb: 200000000 gsb: ffffff025c106580 ds: 38
es: 38 fs: 0 gs: 0
trp: e err: 0 rip: fffffffffbd40ab7
cs: 30 rfl: 10282 rsp: ffffff000872deb0
ss: 38

cpu address timestamp type vc handler pc
0 fffffffffbc18e00 cc495dec9 intr d1 cbe_fire apic_cpu_send_SIPI+128
0 fffffffffbc18c88 cc1a82057 intr ff unknown fakesoftint+23
0 fffffffffbc18b10 cc1a7c98a intr ff unknown fakesoftint+23
0 fffffffffbc18998 cc1a7b1de intr ff unknown fakesoftint+23
0 fffffffffbc18820 cc1a0b755 intr ff unknown fakesoftint+23
0 fffffffffbc186a8 cc19fab9b intr ff unknown fakesoftint+23
0 fffffffffbc18530 cc19edbc9 intr ff unknown fakesoftint+23
0 fffffffffbc183b8 cc19eb1ea intr ff unknown fakesoftint+23
0 fffffffffbc18240 cc19ea5e4 intr ff unknown fakesoftint+23
0 fffffffffbc180c8 cc19ea0b6 intr ff unknown fakesoftint+23
1 ffffff025c112178 cc4991a30 trap e #pf cyclic_fire+27
1 ffffff025c112000 cc498f1cb intr d1 cbe_fire mp_startup_common+ab

Warning - stack not written to the dump buffer
ffffff000872dca0 unix:die+e9 ()
ffffff000872ddb0 unix:trap+13cd ()
ffffff000872ddc0 unix:cmntrap+1ca ()
ffffff000872df20 genunix:cyclic_fire+27 ()
ffffff000872df50 unix:cbe_fire+48 ()
ffffff000872dfc0 unix:av_dispatch_autovect+91 ()
ffffff000872dff0 unix:dispatch_hilevel+20 ()
ffffff025c123e30 unix:switch_sp_and_call+13 ()
ffffff025c123e90 unix:do_interrupt+1b0 ()
ffffff025c123ea0 unix:cmnint+1e9 ()
ffffff025c123fd0 unix:mp_startup_common+ab ()
ffffff025c123fe0 unix:mp_startup_boot+e ()
ffffff025c123ff0 unix:real_mode_start_cpu+12e ()

No data to display

Also available in: Atom PDF