From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751430AbcEJLWG (ORCPT ); Tue, 10 May 2016 07:22:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:39322 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751136AbcEJLWE (ORCPT ); Tue, 10 May 2016 07:22:04 -0400 Date: Tue, 10 May 2016 13:21:57 +0200 From: Borislav Petkov To: Ingo Molnar Cc: Yinghai Lu , Kees Cook , Baoquan He , Ingo Molnar , "H. Peter Anvin" , Vivek Goyal , Andy Lutomirski , Lasse Collin , Andrew Morton , Dave Young , "kernel-hardening@lists.openwall.com" , LKML , Linus Torvalds Subject: Re: [PATCH v7 1/9] x86/KASLR: Initialize mapping_info every time Message-ID: <20160510112157.GB28520@pd.tnic> References: <1462825332-10505-1-git-send-email-keescook@chromium.org> <1462825332-10505-2-git-send-email-keescook@chromium.org> <20160510055853.GA2293@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160510055853.GA2293@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 10, 2016 at 07:58:54AM +0200, Ingo Molnar wrote: > Ok, could you guys please update the code and the changelog as well, > and also rename that horribly named prepare_level4() function? Oh, and while at it, call that new function at the beginning of choose_random_location() before the first call to add_identity_map() through mem_avoid_init() and make the code flow even clearer this way instead of doing funky checks like if (!level4p) prepare_level4(); Thanks. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --