Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753977AbbLITfO (ORCPT ); Wed, 9 Dec 2015 14:35:14 -0500 Received: from mail-ig0-f175.google.com ([209.85.213.175]:37401 "EHLO mail-ig0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753544AbbLITfM (ORCPT ); Wed, 9 Dec 2015 14:35:12 -0500 MIME-Version: 1.0 In-Reply-To: <565CCCBB.1070500@zytor.com> References: <1448494286-16029-1-git-send-email-keescook@chromium.org> <1448494286-16029-3-git-send-email-keescook@chromium.org> <56564F0F.3158.108D0B78@pageexec.freemail.hu> <565CCCBB.1070500@zytor.com> Date: Wed, 9 Dec 2015 11:35:11 -0800 X-Google-Sender-Auth: BfNHhfX707bQopzmE1a8qcVFk00 Message-ID: Subject: Re: [PATCH v2 2/4] introduce post-init read-only memory From: Kees Cook To: "H. Peter Anvin" Cc: PaX Team , LKML , Andy Lutomirski , Michael Ellerman , Mathias Krause , Ingo Molnar , Thomas Gleixner , "x86@kernel.org" , Arnd Bergmann , Emese Revfy , "kernel-hardening@lists.openwall.com" , linux-arch Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1268 Lines: 33 On Mon, Nov 30, 2015 at 2:24 PM, H. Peter Anvin wrote: > On 11/25/15 16:15, PaX Team wrote: >> On 25 Nov 2015 at 15:31, Kees Cook wrote: >> >>> diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h >>> index c4bd0e2c173c..772c784ba763 100644 >>> --- a/include/asm-generic/vmlinux.lds.h >>> +++ b/include/asm-generic/vmlinux.lds.h >>> @@ -256,6 +256,7 @@ >>> .rodata : AT(ADDR(.rodata) - LOAD_OFFSET) { \ >>> VMLINUX_SYMBOL(__start_rodata) = .; \ >>> *(.rodata) *(.rodata.*) \ >>> + *(.data..ro_after_init) /* Read only after init */ \ >> ^^^^^^^^^^^ >> looks like it's tabs vs. spaces... Not sure what caused that, but I see it as tabs in my tree. > One more thing... double dots I think has special meanings to gcc, so it > might be better to avoid. Hrm, I could find no information about this, so I've left it as-is. -Kees -- Kees Cook Chrome OS & Brillo Security -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/