From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 2BD447803CF for ; Tue, 5 Nov 2024 12:28:47 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=AvUBse0F6OiT29QYJJ3y0KmioZYhHNyvLRIgUokg+nQ=; c=relaxed/simple; d=groups.io; h=Date:From:To:Subject:Message-ID:References:MIME-Version:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Disposition; s=20240830; t=1730809727; v=1; x=1731068926; b=PnkClq5kaSM/+KpkLvSV+dOjFJ3hPgbwicfWwR5XYUI762HBF9BUbVi8L0nHxSJ5PfDDCpEk xpCYSvFiCLIu4TmWR1OcjXvHX0QZwlghzpzoRTU8pymhC3NGAnTIcuZNFEbZYDbHiStiMDgH5P3 DqhZKuUo32FV8inb4H2IyctJdnh+UuVteG5LYQNfj7MXtPvBd5wKQ0X3JSbeB7ihooV8prwDPXP k47MBubOnSTdK+mP0d54yfMXNtkEd+y8NRZHo+iQ49SVM7Wvf31VIG5w+DG1KIrvTYffD3FJ9ew n2mHPWVZYM2dqVgK48NQBe1gXFZCiJIaL3BvMhz/FuvNA== X-Received: by 127.0.0.2 with SMTP id as3mYY7687511xpuJ2U7XAnp; Tue, 05 Nov 2024 04:28:46 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.16661.1730809725672509124 for ; Tue, 05 Nov 2024 04:28:45 -0800 X-Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-235-OTj_dKMmPaml1l1gc3Wj6w-1; Tue, 05 Nov 2024 07:28:43 -0500 X-MC-Unique: OTj_dKMmPaml1l1gc3Wj6w-1 X-Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7CC2E195608C; Tue, 5 Nov 2024 12:28:42 +0000 (UTC) X-Received: from dobby.home.kraxel.org (unknown [10.39.195.58]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 18253300018D; Tue, 5 Nov 2024 12:28:41 +0000 (UTC) X-Received: by dobby.home.kraxel.org (Postfix, from userid 1000) id 52EF222B22F; Tue, 5 Nov 2024 13:28:39 +0100 (CET) Date: Tue, 5 Nov 2024 13:28:39 +0100 From: "Gerd Hoffmann" To: devel@edk2.groups.io, fred.lotter@canonical.com Subject: Re: [edk2-devel] QEMU / OVMF ESP corruption Message-ID: References: MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Tue, 05 Nov 2024 04:28:45 -0800 Resent-From: kraxel@redhat.com Reply-To: devel@edk2.groups.io,kraxel@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: vICtQmw8IrdHqdjmumtfc2dBx7686176AA= Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=PnkClq5k; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io Hi, > This pattern seen during the EFI stub preamble is also seen during OVMF > startup, so it seems this is some common EFI VAR ? related code. At OVMF > startup this seems to repeat a number of times before Grub starts. > > ===> If I move OVMF to pflash disks for code + vars, this issue does not > happen. Most likely this is OVMF reading/writing NvVars file (EFI variable storage). When using pflash OVMF doesn't do that. It's a very fundamental design bug in grub. Grub uses its own code for alot of stuff instead of calling EFI services. Which includes the FAT filesystem driver. Result is that there are *two* FAT filesystem drivers active in the system (both edk2 and grub driver), stomping on each others feed, especially if both are used for write access to the file system. take care, Gerd -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120725): https://edk2.groups.io/g/devel/message/120725 Mute This Topic: https://groups.io/mt/108674692/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-