From nobody Sat Jan 04 01:39:15 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YQ35f4TWxz5j0n5 for ; Sat, 04 Jan 2025 01:39:34 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YQ35d72nxz4dSl for ; Sat, 4 Jan 2025 01:39:33 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; none Received: from kalamity.joker.local (124-18-43-234.area1a.commufa.jp [124.18.43.234]) (authenticated bits=0) by www121.sakura.ne.jp (8.17.1/8.17.1/[SAKURA-WEB]/20201212) with ESMTPA id 5041dF8A008998; Sat, 4 Jan 2025 10:39:17 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dec.sakura.ne.jp; s=s2405; t=1735954758; bh=r/lJKgxAj7Zc4ikFsVhBRgjcClhZ5Us/BhkL9WBPte0=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=SWFjN2ibqZc17YjcRQGsp9Wm6MnF2Yeb61wRSQC41xpVNxXn3DnGZqlvHxojxCGz3 e2d4KTqh8jDC4kO+OMN+5vF4sVYutE8ie0P1KZtr7NebVSQrU1oLgwU4COj+BxiY2R C7gOSG9xj6AyjzoWFwm6L2NVcMtpnzpzdAWe+Whw= Date: Sat, 4 Jan 2025 10:39:15 +0900 From: Tomoaki AOKI To: Dennis Clarke Cc: Current FreeBSD Subject: Re: EFI RT page fault in init pid = 1 Message-Id: <20250104103915.2efe0d88e4c97abcbf989683@dec.sakura.ne.jp> In-Reply-To: <32e6b7cd-a4a3-425b-9569-5f72eea59be7@blastwave.org> References: <32e6b7cd-a4a3-425b-9569-5f72eea59be7@blastwave.org> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.1) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4YQ35d72nxz4dSl X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP] On Fri, 3 Jan 2025 18:43:55 -0500 Dennis Clarke wrote: > > I wonder if anyone else has seen such a message at shutdown : > > > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x0 > fault code = supervisor read data, page not present > instruction pointer = 0x20:0x7c38f87a > stack pointer = 0x28:0xfffffe035500bba8 > frame pointer = 0x28:0x5 > 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 (init) > rdi: fffffe035500bcd8 rsi: 0000000000000004 rdx: 0000000000000000 > rcx: 0000000000000000 r8: 0000000000000000 r9: 0000000000000000 > rax: 00000000800b0040 rbx: 0000000000000002 rbp: 0000000000000005 > r10: 00000000800b0000 r11: 0000000000000000 r12: fffff80103969000 > r13: fffff80101c57140 r14: 0000000000004008 r15: fffff801019895a8 > trap number = 12 > EFI RT page fault > acpi0: Powering system off > > I have not seen such a thing while the machine was running. > > Machine in question is 15.0-CURRENT : > > Loading kernel... > /boot/kernel/kernel text=0x1826b8 text=0xd92d38 text=0x437223 > data=0x180+0xe80 data=0x19e1e0+0x461e20 0x8+0x198e70+0x8+0x1bcd67 > Loading configured modules... > /boot/kernel/vmm.ko size 0x37e660 at 0x2156000 > /etc/hostid size=0x25 > /boot/kernel/zfs.ko size 0x6082b8 at 0x24d5000 > /boot/kernel/geom_mirror.ko size 0x21428 at 0x2ade000 > /boot/entropy size=0x1000 > /boot/kernel/cryptodev.ko size 0x8808 at 0x2b01000 > staging 0x6b200000 (not copying) tramp 0x6b14b000 PT4 0x6b142000 > Start @ 0xffffffff80383000 ... > Loading splash ok > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > ---<>--- > Copyright (c) 1992-2025 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 15.0-CURRENT #3 main-n274510-3d0a0dda3a7d-dirty: Thu Jan 2 > 01:28:25 GMT 2025 > root@titan:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 > FreeBSD clang version 19.1.5 (https://github.com/llvm/llvm-project.git > llvmorg-19.1.5-0-gab4b5a2db582) > VT(vga): resolution 640x480 > CPU: Intel(R) Xeon(R) CPU E5-2640 v4 @ 2.40GHz (2394.50-MHz K8-class CPU) > Origin="GenuineIntel" Id=0x406f1 Family=0x6 Model=0x4f Stepping=1 > > Features=0xbfebfbff > > Features2=0x7ffefbff > AMD Features=0x2c100800 > AMD Features2=0x121 > Structured Extended > Features=0x21cbfbb > Structured Extended Features3=0x9c000400 > XSAVE Features=0x1 > VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID,VID,PostIntr > TSC: P-state invariant, performance statistics > real memory = 549739036672 (524272 MB) > avail memory = 535434485760 (510630 MB) > . > . > . > etc > > > > I suspect there are changes recently in the RT EFI world ? Hi. Just a FYI. Not dug into. AFAICR, there were commit dd2b5443644505af51c95503898ab363e7d7c29d [1] "amd64: on any fault during call to EFI RT, restore execution and print fault details" and commit 3e8f4a30594fad6784504d019613ad815b6c9dc5 [2] "efirt: use correct ABI for runtime EFI functions" last December. And at least the former depends on commit 5e3ab1894e1ef0520925038f8d4e4a451e841345 [3] "amd64: extract code to print fault details from trap_fatal() into a new helper" which is not directly related with EFIRT itself. [1] https://cgit.freebsd.org/src/commit/?id=dd2b5443644505af51c95503898ab363e7d7c29d [2] https://cgit.freebsd.org/src/commit/?id=3e8f4a30594fad6784504d019613ad815b6c9dc5 [3] https://cgit.freebsd.org/src/commit/?id=5e3ab1894e1ef0520925038f8d4e4a451e841345 > > > > -- > Dennis Clarke > RISC-V/SPARC/PPC/ARM/CISC > UNIX and Linux spoken -- Tomoaki AOKI