Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755109AbbFQLmS (ORCPT ); Wed, 17 Jun 2015 07:42:18 -0400 Received: from mx5.ptsecurity.com ([45.58.112.35]:30734 "EHLO mx5.ptsecurity.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753416AbbFQLmJ (ORCPT ); Wed, 17 Jun 2015 07:42:09 -0400 Message-ID: <55815D51.4050309@ptsecurity.com> Date: Wed, 17 Jun 2015 14:43:13 +0300 From: Alexander Popov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Borislav Petkov , Andrey Ryabinin CC: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andrey Konovalov , "Andrew Morton" , Andy Lutomirski , Alexander Kuleshov , Denys Vlasenko , Peter Zijlstra , Kees Cook , , Subject: Re: [PATCH v5 1/2] x86_64: remove not needed clear_page for init_level4_page References: <1433842921-18055-1-git-send-email-alpopov@ptsecurity.com> <1433842921-18055-2-git-send-email-alpopov@ptsecurity.com> <20150616111632.GF17786@pd.tnic> <20150616113436.GG17786@pd.tnic> <55800C42.4050702@samsung.com> <20150616154611.GJ17786@pd.tnic> In-Reply-To: <20150616154611.GJ17786@pd.tnic> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DC1-CAS-02.ptsecurity.ru (10.0.52.115) To DC1-MBX-02.ptsecurity.ru (10.0.52.117) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 762 Lines: 22 On 16.06.2015 18:46, Borislav Petkov wrote: > On Tue, Jun 16, 2015 at 02:45:06PM +0300, Andrey Ryabinin wrote: >> Can't we just move clear_page(init_level4_pgt) higher? Before or right >> after clear_bss() (iow before kasan_early_init()). > > That sounds much better. And I don't see anything depending on > init_level4_pgt before we clear it. And it boots here if I move it > before > > kasan_map_early_shadow(early_level4_pgt); Thanks, Borislav and Andrey. I'll return with version 6. Best regards, Alexander -- 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/