From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755852AbcBPSWk (ORCPT ); Tue, 16 Feb 2016 13:22:40 -0500 Received: from foss.arm.com ([217.140.101.70]:55760 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755574AbcBPSWj (ORCPT ); Tue, 16 Feb 2016 13:22:39 -0500 Date: Tue, 16 Feb 2016 18:22:35 +0000 From: Catalin Marinas To: David Brown Cc: Will Deacon , kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kees Cook Subject: Re: [PATCH] arm64: vdso: Mark vDSO code as read-only Message-ID: <20160216182235.GE19413@e104818-lin.cambridge.arm.com> References: <1455141142-6838-1-git-send-email-david.brown@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1455141142-6838-1-git-send-email-david.brown@linaro.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2016 at 01:52:22PM -0800, David Brown wrote: > diff --git a/arch/arm64/kernel/vdso/vdso.S b/arch/arm64/kernel/vdso/vdso.S > index 60c1db5..db7c0f2 100644 > --- a/arch/arm64/kernel/vdso/vdso.S > +++ b/arch/arm64/kernel/vdso/vdso.S > @@ -24,6 +24,7 @@ > __PAGE_ALIGNED_DATA > > .globl vdso_start, vdso_end > + .section .rodata > .balign PAGE_SIZE > vdso_start: > .incbin "arch/arm64/kernel/vdso/vdso.so" > -- > 2.7.1 Patch applied (and removed __PAGE_ALIGNED_DATA as well). Thanks. -- Catalin From mboxrd@z Thu Jan 1 00:00:00 1970 From: catalin.marinas@arm.com (Catalin Marinas) Date: Tue, 16 Feb 2016 18:22:35 +0000 Subject: [PATCH] arm64: vdso: Mark vDSO code as read-only In-Reply-To: <1455141142-6838-1-git-send-email-david.brown@linaro.org> References: <1455141142-6838-1-git-send-email-david.brown@linaro.org> Message-ID: <20160216182235.GE19413@e104818-lin.cambridge.arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Feb 10, 2016 at 01:52:22PM -0800, David Brown wrote: > diff --git a/arch/arm64/kernel/vdso/vdso.S b/arch/arm64/kernel/vdso/vdso.S > index 60c1db5..db7c0f2 100644 > --- a/arch/arm64/kernel/vdso/vdso.S > +++ b/arch/arm64/kernel/vdso/vdso.S > @@ -24,6 +24,7 @@ > __PAGE_ALIGNED_DATA > > .globl vdso_start, vdso_end > + .section .rodata > .balign PAGE_SIZE > vdso_start: > .incbin "arch/arm64/kernel/vdso/vdso.so" > -- > 2.7.1 Patch applied (and removed __PAGE_ALIGNED_DATA as well). Thanks. -- Catalin From mboxrd@z Thu Jan 1 00:00:00 1970 Reply-To: kernel-hardening@lists.openwall.com Date: Tue, 16 Feb 2016 18:22:35 +0000 From: Catalin Marinas Message-ID: <20160216182235.GE19413@e104818-lin.cambridge.arm.com> References: <1455141142-6838-1-git-send-email-david.brown@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1455141142-6838-1-git-send-email-david.brown@linaro.org> Subject: [kernel-hardening] Re: [PATCH] arm64: vdso: Mark vDSO code as read-only To: David Brown Cc: Will Deacon , kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kees Cook List-ID: On Wed, Feb 10, 2016 at 01:52:22PM -0800, David Brown wrote: > diff --git a/arch/arm64/kernel/vdso/vdso.S b/arch/arm64/kernel/vdso/vdso.S > index 60c1db5..db7c0f2 100644 > --- a/arch/arm64/kernel/vdso/vdso.S > +++ b/arch/arm64/kernel/vdso/vdso.S > @@ -24,6 +24,7 @@ > __PAGE_ALIGNED_DATA > > .globl vdso_start, vdso_end > + .section .rodata > .balign PAGE_SIZE > vdso_start: > .incbin "arch/arm64/kernel/vdso/vdso.so" > -- > 2.7.1 Patch applied (and removed __PAGE_ALIGNED_DATA as well). Thanks. -- Catalin