From nobody Fri Jun 02 22:54:13 2023 X-Original-To: bugs@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 4QXyx12JMFz4YJmv for ; Fri, 2 Jun 2023 22:54:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QXyx111XLz4Vmv for ; Fri, 2 Jun 2023 22:54:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685746453; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zW4wvdovmMyQwl8sg7AvcJKMN1A9CUDHzzJvTxnjepA=; b=XpuqLE8OEJXSeysYqMS4eupiS8rNhGC0G8jArHQvRYvz5terPUwpvjPtEGWal7BW0ZvMLs b4zFIkCJxXtnnr9DEG0t6a4U6lF2Mvosn8GF2yoJFJe1Ssu8nqgwPrQHndlQD2mf6bM4x5 qq08Ef8RiBCgiwFUNzW4+elif+QJZ0IRbSuWuJNClJSRaX6NIwSkwZRACo6/CTFmDtHnxW lEm7grSI5Z7GsSnM3W9qyI+CdI56zX3zkFNMvY06mko7i44F6QDkyw1LRZINwvh7NzOYuV JsuaFdbyHxF0+e46cwPrXwA7W+Vyyd7WOycFcLTAICkvqv/UX8bGfkzyFFIrzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685746453; a=rsa-sha256; cv=none; b=EwtFulG55ayXaNbUO3kO1Jn+ulQPinWzfoCdlUfXXbDKWAL/dczJrBjpvunH20PTnly3u4 Ec9uAnJUu1fdWN1fs+WlAY6z0tT7B4cVMyr4vbYntQ/bryzh4SFhIqDP3T9jxiFCi2on3l VibzRKs3euKLtguEhZV8Be+2znuguaudvhN8mwEOSCkNyWXbDnC80EebsEELNOQxsrPXf7 0ejtLgNhP21pIYZkLi88dAliLEkMm9lo1TKZiTcR8CtYKhyXhbE0CnrLuu9JHb96H0Cx6w NFRfAY69ZBLu2l+mETg80/a1dEYOctnEyiBxl8WUSNl7YRV93WofmVGJv06QCA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QXyx101Fgz1GfP for ; Fri, 2 Jun 2023 22:54:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 352MsCbI036305 for ; Fri, 2 Jun 2023 22:54:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 352MsCUm036304 for bugs@FreeBSD.org; Fri, 2 Jun 2023 22:54:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 271794] boot1.efi hangs on a system with gjournaled partitions Date: Fri, 02 Jun 2023 22:54:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: longwitz@incore.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271794 Bug ID: 271794 Summary: boot1.efi hangs on a system with gjournaled partitions Product: Base System Version: Unspecified Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: longwitz@incore.de My ThinkPad L560 running FreeBSD 12.3-STABLE r371380 did not boot abruptly. The output of boot1.efi was: >> FreeBSD EFI boot block Loader path: /boot/loader.efi Initializing modules: ZFS UFS Load Path: \EFI\BOOT\BOOTX64.EFI Load Device: PciRoot(0x0)/Pci(0x17,0x0)/Sata(0x0,0x0,0x0)/HD(1,GPT,31EB33B1-A814-11EB-94= 74-FC4596A9D2D8,0x28,0xC8000) BootCurrent: 001a BootOrder: 0001 0010 0011 0012 0013 001b 0017 0018 0019 001a[*] 001c Probing 11 block devices...not supported not supported not supported not supported not supported better not supported better better better better done ZFS found no pools UFS found 5 partitions Nothing more, laptop hangs. I could not boot from disk anymore. I use gmirror/gjournal, and gpart show gives =3D> 40 500118112 mirror/gmnbsd GPT (238G) 40 819200 1 efi (400M) 819240 16777216 2 freebsd-swap (8.0G) 17596456 16777216 3 freebsd-swap (8.0G) 34373672 16777216 4 freebsd-swap (8.0G) 51150888 16777216 5 freebsd-swap (8.0G) 67928104 16777216 6 freebsd-swap (8.0G) 84705320 4194304 7 freebsd-ufs (2.0G) 88899624 25165824 8 freebsd-ufs (12G) 114065448 67108864 9 freebsd-ufs (32G) 181174312 318943840 10 freebsd-ufs (152G) Partitions p3-p6 are the gjournals for the ufs partitions p7-p10. The first "better" in the output of boot1.efi shows the problem: boot1 mistankenly thinks the gjournal partition p5 is an ufs partition and therfore tries to start loader.efi from this partition. boot1 fails because the check for ufs is done with a simple compare to FS_UFS_MAGIC and in a gjournal partition this data can be found. Of cource this is a rarely event, but I had a hit. It would be much safer when boot1.efi does a check for the partition type freebsd-ufs in the GPT, so done in gptboot. --=20 You are receiving this mail because: You are the assignee for the bug.=