From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Schwidefsky Subject: Re: [PATCH v4 08/10] s390: redefine randomize_et_dyn for ELF_ET_DYN_BASE Date: Mon, 9 Mar 2015 10:42:03 -0700 Message-ID: <20150309104203.7767babc@mschwide> References: <1425503454-7531-1-git-send-email-keescook@chromium.org> <1425503454-7531-9-git-send-email-keescook@chromium.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: akpm@linux-foundation.org, Ingo Molnar , Michael Ellerman , Hector Marco-Gisbert , Ismael Ripoll , Russell King , Catalin Marinas , Will Deacon , Ralf Baechle , Benjamin Herrenschmidt , Paul Mackerras , Heiko Carstens , linux390@de.ibm.com, x86@kernel.org, Alexander Viro , Andy Lutomirski , Oleg Nesterov , "David A. Long" , Andrey Ryabinin , Arun Chandran , Yann Droneaud , Min-Hua Chen , Paul Burton , Alex Smith , Ma To: Kees Cook Return-path: In-Reply-To: <1425503454-7531-9-git-send-email-keescook@chromium.org> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, 4 Mar 2015 13:10:52 -0800 Kees Cook wrote: > In preparation for moving ET_DYN randomization into the ELF loader (which > requires a static ELF_ET_DYN_BASE), this redefines s390's existing ET_DYN > randomization in a call to arch_mmap_rnd(). This refactoring results in > the same ET_DYN randomization on s390. > > Signed-off-by: Kees Cook > --- > arch/s390/include/asm/elf.h | 8 +++++--- > arch/s390/mm/mmap.c | 11 ++--------- > 2 files changed, 7 insertions(+), 12 deletions(-) Patch series including this patch works fine Acked-by: Martin Schwidefsky -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.