From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Lendacky Subject: Re: [PATCH v5 17/32] x86/mm: Add support to access boot related data in the clear Date: Tue, 30 May 2017 12:47:30 -0500 Message-ID: <900ee7c4-221a-f4d6-93c6-81dfc0612dbf@amd.com> References: <20170418211612.10190.82788.stgit@tlendack-t1.amdoffice.net> <20170418211921.10190.1537.stgit@tlendack-t1.amdoffice.net> <20170515183517.mb4k2gp2qobbuvtm@pd.tnic> <20170518195051.GA5651@codeblueprint.co.uk> <4c2ef3ba-2940-3330-d362-5b2b0d812c6f@amd.com> <20170526163517.nrweesvse24dszkz@pd.tnic> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170526163517.nrweesvse24dszkz-fF5Pk5pvG8Y@public.gmane.org> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Borislav Petkov Cc: linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Brijesh Singh , Toshimitsu Kani , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Matt Fleming , x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, Alexander Potapenko , "H. Peter Anvin" , Larry Woodman , linux-arch-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jonathan Corbet , linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kasan-dev-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, Ingo Molnar , Andrey Ryabinin , Dave Young , Rik van Riel , Arnd Bergmann , Andy Lutomirski , Thomas Gleixner , Dmitry Vyukov , Ard Biesheuvel , kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, iommu-cunTk1MwBs//PtFMR13I2A@public.gmane.org List-Id: linux-efi@vger.kernel.org On 5/26/2017 11:35 AM, Borislav Petkov wrote: > On Fri, May 26, 2017 at 11:22:36AM -0500, Tom Lendacky wrote: >> In addition to the same issue as efi.memmap.phys_map, efi_phys has >> the __initdata attribute so it will be released/freed which will cause >> problems in checks performed afterwards. > > Sounds to me like we should drop the __initdata attr and prepare them > much earlier for use by the SME code. Probably something we can look at for a follow-on patch. Thanks, Tom >