Insta-panic for amd64 on reboot after upgrade from r320307 -> r320324

From: David Wolfskill <david_at_catwhisker.org>
Date: Sun, 25 Jun 2017 05:07:31 -0700
Both on laptop and build machine; fortunately for me, the latter has a
serial console, so:

  ______               ____   _____ _____  
 |  ____|             |  _ \ / ____|  __ \ 
 | |___ _ __ ___  ___ | |_) | (___ | |  | |
 |  ___| '__/ _ \/ _ \|  _ < \___ \| |  | |
 | |   | | |  __/  __/| |_) |____) | |__| |
 | |   | | |    |    ||     |      |      |
 |_|   |_|  \___|\___||____/|_____/|_____/    ```                        `
                                             s` `.....---.......--.```   -/
 +============Welcome to FreeBSD===========+ +o   .--`         /y:`      +.
 |                                         |  yo`:.            :o      `+-
 |  1. Boot Multi User [Enter]             |   y/               -/`   -o/
 |  2. Boot [S]ingle User                  |  .-                  ::/sy+:.
 |  3. [Esc]ape to loader prompt           |  /                     `--  /
 |  4. Reboot                              | `:                          :`
 |                                         | `:                          :`
 |  Options:                               |  /                          /
 |  5. [K]ernel: kernel (1 of 2)           |  .-                        -.
 |  6. Configure Boot [O]ptions...         |   --                      -.
 |                                         |    `:`                  `:`
 |                                         |      .--             `--.
 |                                         |         .---.....----. 
 +=========================================+
                                          

/boot/kernel/kernel text=0x14dea68 data=0x146b38+0x567b68 syms=[0x8+0x16cae8+0x8+0x186331]
/boot/entropy size=0x1000
/boot/kernel/filemon.ko size 0xa128 at 0x2282000
loading required module 'kernel'
module 'kernel' exists but with wrong version
Booting...
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Table 'FACP' at 0xde3c1b98
Table 'APIC' at 0xde3c1ca8
APIC: Found table at 0xde3c1ca8
APIC: Using the MADT enumerator.
MADT: Found CPU APIC ID 0 ACPI ID 1: enabled
SMP: Added CPU 0 (AP)
MADT: Found CPU APIC ID 2 ACPI ID 2: enabled
SMP: Added CPU 2 (AP)
MADT: Found CPU APIC ID 4 ACPI ID 3: enabled
SMP: Added CPU 4 (AP)
MADT: Found CPU APIC ID 6 ACPI ID 4: enabled
SMP: Added CPU 6 (AP)
MADT: Found CPU APIC ID 1 ACPI ID 5: enabled
SMP: Added CPU 1 (AP)
MADT: Found CPU APIC ID 3 ACPI ID 6: enabled
SMP: Added CPU 3 (AP)
MADT: Found CPU APIC ID 5 ACPI ID 7: enabled
SMP: Added CPU 5 (AP)
MADT: Found CPU APIC ID 7 ACPI ID 8: enabled
SMP: Added CPU 7 (AP)
Copyright (c) 1992-2017 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #385  r320324M/320326:1200035: Sun Jun 25 04:51:08 PDT 2017
    root_at_freebeast.catwhisker.org:/common/S4/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0)
WARNING: WITNESS option enabled, expect reduced performance.
Table 'FACP' at 0xde3c1b98
Table 'APIC' at 0xde3c1ca8
Table 'FPDT' at 0xde3c1d40
Table 'ASF!' at 0xde3c1d88
Table 'SLIC' at 0xde3c1e30
Table 'SSDT' at 0xde3c1fa8
Table 'SSDT' at 0xde3c24e8
Table 'MCFG' at 0xde3c2fc0
Table 'HPET' at 0xde3c3000
Table 'SSDT' at 0xde3c3038
Table 'SSDT' at 0xde3c33a8
Table 'MSDM' at 0xde3c6688
Table 'DMAR' at 0xde3c66e0
ACPI: No SRAT table found
kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x10000000020
fault code              = supervisor read data, page not present
instruction pointer     = 0x20:0xffffffff80d585a4
stack pointer           = 0x28:0xffffffff82290a30
frame pointer           = 0x28:0xffffffff82290a60
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = resume, IOPL = 0
current process         = 0 ()
[ thread pid 0 tid 0 ]
Stopped at      vm_map_lookup_entry+0x24:       cmpq    %r15,0x20(%rbx)
db> bt
Tracing pid 0 tid 0 td 0xffffffff81e9e860
vm_map_lookup_entry() at vm_map_lookup_entry+0x24/frame 0xffffffff82290a60
vm_map_insert() at vm_map_insert+0x10b/frame 0xffffffff82290b00
kmem_init() at kmem_init+0x72/frame 0xffffffff82290b30
vm_mem_init() at vm_mem_init+0x46/frame 0xffffffff82290b50
mi_startup() at mi_startup+0x9c/frame 0xffffffff82290b70
btext() at btext+0x2c
db> 


(The laptop seems to have repeated the:

loading required module 'kernel'
module 'kernel' exists but with wrong version

sequence a few times, based on the video I got of it.)


The "saving grace" is that the panic happens before the file systems
are mounted.... :-}

Unloading the (r320324) kernel and loading the r320307 kernel
succeeds (at least enough to mount file systems).

Peace,
david
-- 
David H. Wolfskill				david_at_catwhisker.org
Trump (et al.): Hiding information doesn't prove its falsity.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

Received on Sun Jun 25 2017 - 10:07:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:12 UTC