[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH][4.17] EFI: don't convert memory marked for runtime use to ordinary RAM
- To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
- Date: Fri, 30 Sep 2022 12:53:46 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=J7061ZzpFfw9cltov4YtMRU1Bm+P+oDbBUi0e9qeKnw=; b=PskeCwYpiRxJVTU+6hKCyIC1QBq6ZFf7+u0u3bfl5mUbtsiecpn4IhtcLrzKkzo0O4BJOulgGwMYN2c/CSuJrBS6ncy8uVkai3Cu4oIeMfWvTDDIb9mfeUXoChUgeGDxUOCcETj6b7k1Y4TlZWbOA+/jgSksCL6pokVqlMy2PEMW6+P+egcAWyXU5f4alEV4/AuKWjAZ4oUkoZYSRWKLZ8B0oPSlyD968mZxdWl+sIou78RGeijqsfFehdWFyYbD2w8OGJsGcQuqeMt4qvEejMdLA9znONJQYqRUjl3B7njlE/iLBunIIYlOq9TfnLieb6AvkugP3gDoW9pXj2vpDw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dHDkf7kzY8IERtupepBlHZOTeD2Lx7cvGCo5g3NS8Fkp2JhOJnloaIWuLJPziE2Mf1o2YRKchiPjPstAG8Rj+1OWG519UYk1qwCZnQbZggtbOPix68PIVV4PUjxFMN1lXe3TJtrAy78jTaXoodyUGCBQd1O68qAups51Dg9uxhsxd4JvNoQN0gzJ/HbdU3eHQ1gGm+PvslQ4uIQemnK1zBgQ1dLwhCKpOBa0kdP/bkFh5mI9zkKJ8VwfK20VBd/AB0z2r+TfWcY0zSwYtMjJdAvmX/DRb5tk5cekHFO0w0ZE8xjkVnYoBMGTXuz+YPBpPsPuaTPY3AHU9x4zvP9Cwg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Wei Liu <wl@xxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Henry Wang <Henry.Wang@xxxxxxx>
- Delivery-date: Fri, 30 Sep 2022 12:53:59 +0000
- Ironport-data: A9a23:fKSKsq7RD3rZYrxOikp99gxR2vbMJc67UCYv2ybI2n9qXhjvZKvfOBssXYv8Wpfo+PeyQoVEoa+/cxN6ZIJ+4YuAx8zB1MK+9aFtG1Ws5A2WgEhWToypr6DmCQ5shkJMLLsDjgZpzCWkm4ZkjSK7VWu5Z6faIw6/B3yNhnyGnCyiuGTnhoQMSBwPtd0fB3dE9yZA8oT4hGgLjMLP7qUquXjXWGDyci335vdvkTKnT2ln0s0N743uQd7RDqHJG47eyF5tARZmD6pyklETFmfg+10acZPqP+R0BDYGTVea3ejJSeU0DohZaBV+UFoFzXLHAt00SkqqdbVfiqWtdAKwxJKfMXeDTOnqFnBYsiRj6txcSRzkie2HiRbB4qp/gwhW0oxgkrQFlAR/qBaxTzsGCxhLxoK0oFMBVSvnsJ7d/A/Mszf6xJzpVMY+4xbJm+uy77e92AKatI/2cCjdvuUy3TycUelu9O8dH4jCz/ejMBzHqn88lOyNiMsKtpP9XjETIrZtcvZhtfys/JGvV1akNCJ/qtSdVm27+/opUPr8nxjqi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YAU4pYLjzj5KsAvg4SRhSG5OUcNipMAQa6jAS3tys5GY=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHY1KFbLsYTqKjbvUaNuuSOaOWfM6337hgA
- Thread-topic: [PATCH][4.17] EFI: don't convert memory marked for runtime use to ordinary RAM
On 30/09/2022 08:50, Jan Beulich wrote:
> efi_init_memory() in both relevant places is treating EFI_MEMORY_RUNTIME
> higher priority than the type of the range. To avoid accessing memory at
> runtime which was re-used for other purposes, make
> efi_arch_process_memory_map() follow suit. While on x86 in theory the
> same would apply to EfiACPIReclaimMemory, we don't actually "reclaim"
> E820_ACPI memory there and hence that type's handling can be left alone.
>
> Fixes: bf6501a62e80 ("x86-64: EFI boot code")
> Fixes: facac0af87ef ("x86-64: EFI runtime code")
> Fixes: 6d70ea10d49f ("Add ARM EFI boot support")
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Isn't this also liable to be the root cause of the crash reported on
IRC, where a read-only page was being inserted into the heap?
~Andrew
|