From owner-freebsd-current@freebsd.org Tue Feb 11 08:18:47 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8810822B0A3 for ; Tue, 11 Feb 2020 08:18:47 +0000 (UTC) (envelope-from dmarquess@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 48Gwdz0mdLz4g1P for ; Tue, 11 Feb 2020 08:18:47 +0000 (UTC) (envelope-from dmarquess@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 1A57822B0A2; Tue, 11 Feb 2020 08:18:47 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1A1E522B0A1 for ; Tue, 11 Feb 2020 08:18:47 +0000 (UTC) (envelope-from dmarquess@gmail.com) Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Gwdy70Mqz4g1L for ; Tue, 11 Feb 2020 08:18:46 +0000 (UTC) (envelope-from dmarquess@gmail.com) Received: by mail-lj1-x241.google.com with SMTP id q8so10539320ljb.2 for ; Tue, 11 Feb 2020 00:18:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=41JVtDio3REAAUPBvpEp5DwbQZHjzYn4mY8/CORW2bw=; b=mO6w3zDClyBu+cQCewar+ozX6a9f0F0KFkDRwjZ56yR/Z8uXFKwS/YOtJ9p3OB2o5m wZPNRWrhZCusCqE6yM1+x/X8aDdT7pK4TiKTytEmDq2JN8MBkWk0J7TTyioMw+zxKi1r 7LaT5y5GEV+fSJSx69fofaWoutAo8tmjQYMIobF+JHWIsoqLapH13qwWwmQ09ubPOb+g Hq0w+6ZaKgUBvl/FdCKpykDNyqc+mtuQ8SrIwkwwzOT812dlbxR/gZJUYo26SYTQPb3R 3cHcUvTOPBztn0dcX80spTxdCWk1Gtvn1bLmUCXy0MhUTY7LxBhx9uZHmpLxHEzeKzkt KmkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=41JVtDio3REAAUPBvpEp5DwbQZHjzYn4mY8/CORW2bw=; b=nR1BOAEUh6iXlv8gW1PgnK1gQyecrL4jRcwCSeSr6nKtpLq/UHl6iWRXMdC9oQxztF lb8hIT7vzRErJXsaoP9EykH7d/LBHGgNGNQUOthOeK/vrt93IAAvkuoMLTf7MdFxulhr XEztsXTGHYV57dGwckvZsV1aiu3em+p1ftSJkSqTl1JU2joWjKkmIrpZB8TnHAvSW8vm mLDM1weMaqOA4U0aBOSNiXRHAkhncxjIiIRmonUsnlhzBg8H2Mh4B6A0nQjdqH8GE/kp C9juB7Ux6gabPfLx9RNOVyRpbdIjq1uRs1MHcI0PZuMvoIj74KtI+EF+Ieqq++ougeSS 1LOw== X-Gm-Message-State: APjAAAU9zPUOF+hIxzbKAa9gQV/sADGzTbmWpEBpsVlbVD+DHms5Eiz+ 58FT5k3a6zTePhOgqEdJjXyQjioTY46++Hh+P4jeZ15kD30= X-Google-Smtp-Source: APXvYqy3Ijez9zeej6q0qlJgmuaFba386rHzqi/nL4DNLDi82EVvgJ+1kkGxpR36XFM8vHDoIOCxMF/XO270Opp/5Nk= X-Received: by 2002:a2e:7c08:: with SMTP id x8mr3412259ljc.185.1581409124533; Tue, 11 Feb 2020 00:18:44 -0800 (PST) MIME-Version: 1.0 References: <20200210125251.GQ1238@albert.catwhisker.org> In-Reply-To: <20200210125251.GQ1238@albert.catwhisker.org> From: Dustin Marquess Date: Tue, 11 Feb 2020 02:18:33 -0600 Message-ID: Subject: Re: GPF just after mounting root at r357726 To: current@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 48Gwdy70Mqz4g1L X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Feb 2020 08:18:47 -0000 On Mon, Feb 10, 2020 at 6:53 AM David Wolfskill wrote: > > Looks as if the same thing affected both my laptop and my build machine > -- each updated from r357688 (built yesterday & smoke-tested without > incident). While I got some screenshots for the laptop, I have a serial > console for the build machine, so: > > ... > ---<>--- > Table 'FACP' at 0xde3c1b98 > Table 'APIC' at 0xde3c1ca8 > APIC: Found table at 0xde3c1ca8 > APIC: Using the MADT enumerator. > Copyright (c) 1992-2020 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 13.0-CURRENT #817 r357726M/357726: Mon Feb 10 04:09:32 PST 2020 > root@freebeast.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/GENERIC amd64 > FreeBSD clang version 9.0.1 (git@github.com:llvm/llvm-project.git c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1) > WARNING: WITNESS option enabled, expect reduced performance. > ... > mountroot: waiting for device /dev/ada0s4a... > > > Fatal trap 9: general protection fault while in kernel mode > cpuid = 6; apic id = 06 > instruction pointer = 0x20:0xffffffff80c7f97b > stack pointer = 0x28:0xfffffe00aa965160 > frame pointer = 0x28:0xfffffe00aa965160 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 1 (kernel) > trap number = 9 > panic: general protection fault > cpuid = 6 > time = 24 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00aa964e40 > vpanic() at vpanic+0x185/frame 0xfffffe00aa964ea0 > panic() at panic+0x43/frame 0xfffffe00aa964f00 > trap_fatal() at trap_fatal+0x386/frame 0xfffffe00aa964f60 > trap() at trap+0x8b/frame 0xfffffe00aa965090 > calltrap() at calltrap+0x8/frame 0xfffffe00aa965090 > --- trap 0x9, rip = 0xffffffff80c7f97b, rsp = 0xfffffe00aa965160, rbp = 0xfffffe00aa965160 --- > biotrack_buf() at biotrack_buf+0xb/frame 0xfffffe00aa965160 > g_io_deliver() at g_io_deliver+0x30/frame 0xfffffe00aa9651b0 > g_io_request() at g_io_request+0x28a/frame 0xfffffe00aa9651e0 > g_part_start() at g_part_start+0x289/frame 0xfffffe00aa965260 > g_io_request() at g_io_request+0x28a/frame 0xfffffe00aa965290 > g_part_start() at g_part_start+0x289/frame 0xfffffe00aa965310 > g_io_request() at g_io_request+0x28a/frame 0xfffffe00aa965340 > g_io_getattr() at g_io_getattr+0x6b/frame 0xfffffe00aa965380 > ffs_mount() at ffs_mount+0x1950/frame 0xfffffe00aa965530 > vfs_domount() at vfs_domount+0x835/frame 0xfffffe00aa965760 > vfs_donmount() at vfs_donmount+0x911/frame 0xfffffe00aa965800 > kernel_mount() at kernel_mount+0x57/frame 0xfffffe00aa965850 > parse_mount() at parse_mount+0x4a1/frame 0xfffffe00aa9659a0 > vfs_mountroot() at vfs_mountroot+0x53b/frame 0xfffffe00aa965b10 > start_init() at start_init+0x28/frame 0xfffffe00aa965bb0 > fork_exit() at fork_exit+0x80/frame 0xfffffe00aa965bf0 > fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00aa965bf0 > --- trap 0, rip = 0, rsp = 0, rbp = 0 --- > KDB: enter: panic > [ thread pid 1 tid 100002 ] > Stopped at kdb_enter+0x37: movq $0,0x1087a36(%rip) > db> > > > I can leave the build machine in that state for up to a few hours > easily enough, in case there's value in that (so I can do a bit of > directed poking, for example). > > I have yesterday's (verbose) dmesg.boot for the build machine up at > http://www.catwhisker.org/~david/FreeBSD/history/freebeast.13_dmesg.txt; > based on that, it looks as if what showed up yesterday at that point > was: > > ... > da3: Delete methods: > GEOM: new disk da3 > (da3:umass-sim0:0:0:3): PREVENT ALLOW MEDIUM REMOVAL not supported. > mountroot: waiting for device /dev/ada0s4a... > atrtc0: providing initial system time > start_init: trying /sbin/init > GEOM_PART: partition 1 on (diskid/DISK-1350095E5057, MBR) is not aligned on 4096 bytes > GEOM_PART: partition 2 on (diskid/DISK-1350095E5057, MBR) is not aligned on 4096 bytes > ... > GEOM_PART: partition 2 on (diskid/DISK-1350095E5057, MBR) is not aligned on 4096 bytes > GEOM_PART: partition 3 on (diskid/DISK-1350095E5057, MBR) is not aligned on 4096 bytes > lo0: link state changed to UP > re0: link state changed to DOWN > cpuctl: access to MSR registers/cpuid info. > CPU: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (3591.76-MHz K8-class CPU) > Origin="GenuineIntel" Id=0x306c3 Family=0x6 Model=0x3c Stepping=3 > Features=0xbfebfbff > .... > > > I will go ahead and reboot the laptop in the mean time. Mine dies in the same spot, but with a different trap: kernel trap 12 with interrupts disabled -Dustin