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 C0808D8094F for ; Mon, 20 Jan 2025 11:29:59 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=CP0WZTIGF6PMCbkZ6ZGRdNdV4MGSJganpGRoS/bLmVk=; c=relaxed/simple; d=groups.io; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc: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; s=20240830; t=1737372599; v=1; x=1737631798; b=BDe304avAVdmWoquS7WQv1Cj6dr3QcRjJsUla+mt/nK2rvkK8U+g+x/KLca64gZ6WeNZtykp wgmAthVR95JGl1At5DiPOFim6HGsm7oSJmbTeYtThue4Lku6OV3Zzh2OkAuQdQRg3C66ace0gk7 CFvqUVzoHbnDVwYDmKlmddGmtJme3/2LIdDhCALIomZ56WlWMTF2Hi915/wiCPegvTqa2hl9XJp ieaWL8uP3p4dnwd/c13TniVSI+wXptEdLRJ+MfF79GnMCFVuCqXjQ2GiojyjYHWY5O4j25nM+8g kPtpoZpsIvyVKGxl1LN/vfTNZw9DVtOIWR4trEYbQwYqA== X-Received: by 127.0.0.2 with SMTP id xysSYY7687511xgxGieGMufn; Mon, 20 Jan 2025 03:29:58 -0800 X-Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by mx.groups.io with SMTP id smtpd.web11.34794.1737372597336751215 for ; Mon, 20 Jan 2025 03:29:57 -0800 X-Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 9FD3BA40DED for ; Mon, 20 Jan 2025 11:28:08 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1594C4AF09 for ; Mon, 20 Jan 2025 11:29:55 +0000 (UTC) X-Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-30737db1ab1so17358481fa.1 for ; Mon, 20 Jan 2025 03:29:55 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCV8DmUHPGCqdFVsApo02FZzSRjK71T84BnET7Zvpp4EsNQfSazoeoXZzHeE5qmXNRFd5hddng==@edk2.groups.io X-Gm-Message-State: RsBn0vxLlq0CHSuxRTSJ8Rpzx7686176AA= X-Google-Smtp-Source: AGHT+IGNxrMOnOIAWE/wFoL5lfSdbC9E8swPrDYTeFRacrHO/Py3Bl/Wke94VpS8fEIG5mlWiSxjrfr3K7Vc/jvFUv0= X-Received: by 2002:a2e:bc18:0:b0:302:1e65:f2ab with SMTP id 38308e7fff4ca-3072caa13b5mr49028121fa.20.1737372594247; Mon, 20 Jan 2025 03:29:54 -0800 (PST) MIME-Version: 1.0 References: <20250108215957.3437660-1-usamaarif642@gmail.com> <20250108215957.3437660-2-usamaarif642@gmail.com> <8613563a-ee7c-4271-b1f0-4d1ac365ad3a@gmail.com> <138f28ec-341e-4c48-a14b-4371a8198de8@gmail.com> <029cff22-f2e0-4796-9c27-1df056e08f8f@gmail.com> In-Reply-To: <029cff22-f2e0-4796-9c27-1df056e08f8f@gmail.com> From: "Ard Biesheuvel via groups.io" Date: Mon, 20 Jan 2025 12:29:43 +0100 X-Gmail-Original-Message-ID: X-Gm-Features: AbW1kvYdsQPQ_3t732WmECe_gD4pITHs-agDHxVG4Hyf2tsLvavhpYRZ3h6XkUQ Message-ID: Subject: Re: [edk2-devel] [RFC 1/2] efi/memattr: Use desc_size instead of total size to check for corruption To: Usama Arif Cc: linux-efi@vger.kernel.org, devel@edk2.groups.io, kexec@lists.infradead.org, hannes@cmpxchg.org, x86@kernel.org, linux-kernel@vger.kernel.org, leitao@debian.org, gourry@gourry.net, kernel-team@meta.com, Dave Young 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: Mon, 20 Jan 2025 03:29:57 -0800 Resent-From: ardb@kernel.org Reply-To: devel@edk2.groups.io,ardb@kernel.org List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset="UTF-8" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=BDe304av; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=pass (policy=none) header.from=groups.io On Mon, 20 Jan 2025 at 11:50, Usama Arif wrote: > > > > On 20/01/2025 10:32, Ard Biesheuvel wrote: > > On Mon, 20 Jan 2025 at 11:27, Usama Arif wrote: > >> > >> > > ... > >> Hi Ard, > >> > >> Just wanted to check how should we proceed forward? Should we try and fix the warning > >> and corruption during kexec as done in this series or not initialize memory attributes > >> table at all in kexec boot? I would prefer fixing the issues as in this series. > >> > > > > I would prefer kexec boot on x86 to disregard the memory attributes > > table entirely. > > Would you like Dave to send something like > https://lore.kernel.org/all/CALu+AoS8tb=HgaybDw5OG4A1QbOXHvuidpu0ynmz-nE1nBqzTA@mail.gmail.com/ > on the mailing list (wrapped in ifdef CONFIG_X86_64) > I prefer this approach. and no need for the ifdef, this is x86 specific code, and the memory attributes table is already ignored entirely on 32-bit x86 iirc -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#121032): https://edk2.groups.io/g/devel/message/121032 Mute This Topic: https://groups.io/mt/110517813/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-