Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 1BDB884F16 for ; Wed, 27 Dec 2023 09:28:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id NknCvfRcnm06 for ; Wed, 27 Dec 2023 09:28:04 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id ACFE784CF2 for ; Wed, 27 Dec 2023 09:28:04 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 9B060FA42; Wed, 27 Dec 2023 09:28:04 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 27 Dec 2023 09:28:04 +0000 From: "Rin Okuyama" Subject: CVS commit: src/sys/stand/efiboot To: source-changes@NetBSD.org Approved: for-source-only Reply-To: rin@netbsd.org X-Mailer: log_accum Message-Id: <20231227092804.9B060FA42@cvs.NetBSD.org> Module Name: src Committed By: rin Date: Wed Dec 27 09:28:04 UTC 2023 Modified Files: src/sys/stand/efiboot: efinet.c Log Message: MI efiboot: Stop using efi_bootdp after exclusive open for PXE Once boot device is exclusively opened for Simple Network Protocol, further access via device path (efi_bootdp) is illegal. For some implementations, boot device path gets corrupted by exclusive open, and subsequent access by efi_device_path_depth(), e.g., causes infinite recursion. Fix PXE boot for QEMU/aarch64 with EDK2 on some Linux distributions. Thanks yamaguchi@ for comments and tests. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/stand/efiboot/efinet.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.