From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borislav Petkov Subject: Re: [PATCH 28/29] x86/mm: Report actual image regions in /proc/iomem Date: Thu, 10 Oct 2019 20:00:08 +0200 Message-ID: <20191010180008.GH7658@zn.tnic> References: <20190926175602.33098-1-keescook@chromium.org> <20190926175602.33098-29-keescook@chromium.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <20190926175602.33098-29-keescook@chromium.org> Sender: linux-kernel-owner@vger.kernel.org To: Kees Cook Cc: Thomas Gleixner , Rick Edgecombe , Ingo Molnar , "H. Peter Anvin" , Dave Hansen , Andy Lutomirski , Arnd Bergmann , linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-alpha@vger.kernel.org, linux-ia64@vger.kernel.org, linux-s390@vger.kernel.org, linux-c6x-dev@linux-c6x.org, Yoshinori Sato , Michal Simek , linux-parisc@vger.kernel.org, linux-xtensa@linux-xtensa.org, x86@kernel.org, linux-kernel@vger.kernel.org List-Id: linux-arch.vger.kernel.org On Thu, Sep 26, 2019 at 10:56:01AM -0700, Kees Cook wrote: > The resource reservations in made for the kernel image did not reflect ^ /proc/iomem > the gaps between text, rodata, and data. This adds the rodata resource s/This adds/Add/ > and updates the start/end calculations to match the respective calls to s/updates/update/ > free_kernel_image_pages(). > > Before (booted with "nokaslr" for easier comparison): ... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.skyhub.de ([5.9.137.197]:55384 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfJJSAS (ORCPT ); Thu, 10 Oct 2019 14:00:18 -0400 Date: Thu, 10 Oct 2019 20:00:08 +0200 From: Borislav Petkov Subject: Re: [PATCH 28/29] x86/mm: Report actual image regions in /proc/iomem Message-ID: <20191010180008.GH7658@zn.tnic> References: <20190926175602.33098-1-keescook@chromium.org> <20190926175602.33098-29-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190926175602.33098-29-keescook@chromium.org> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Kees Cook Cc: Thomas Gleixner , Rick Edgecombe , Ingo Molnar , "H. Peter Anvin" , Dave Hansen , Andy Lutomirski , Arnd Bergmann , linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-alpha@vger.kernel.org, linux-ia64@vger.kernel.org, linux-s390@vger.kernel.org, linux-c6x-dev@linux-c6x.org, Yoshinori Sato , Michal Simek , linux-parisc@vger.kernel.org, linux-xtensa@linux-xtensa.org, x86@kernel.org, linux-kernel@vger.kernel.org Message-ID: <20191010180008.5mjVT2xTVFKO0TewByuyoElkZio4XFYyydlAP5IsSEc@z> On Thu, Sep 26, 2019 at 10:56:01AM -0700, Kees Cook wrote: > The resource reservations in made for the kernel image did not reflect ^ /proc/iomem > the gaps between text, rodata, and data. This adds the rodata resource s/This adds/Add/ > and updates the start/end calculations to match the respective calls to s/updates/update/ > free_kernel_image_pages(). > > Before (booted with "nokaslr" for easier comparison): ... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette