Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754766AbbFPLpS (ORCPT ); Tue, 16 Jun 2015 07:45:18 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:64771 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753529AbbFPLpL (ORCPT ); Tue, 16 Jun 2015 07:45:11 -0400 X-AuditID: cbfec7f5-f794b6d000001495-af-55800c44f4b8 Message-id: <55800C42.4050702@samsung.com> Date: Tue, 16 Jun 2015 14:45:06 +0300 From: Andrey Ryabinin 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 , Alexander Popov Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andrey Konovalov , Andrew Morton , Andy Lutomirski , Alexander Kuleshov , Denys Vlasenko , Peter Zijlstra , Kees Cook , x86@kernel.org, linux-kernel@vger.kernel.org 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> In-reply-to: <20150616113436.GG17786@pd.tnic> Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFIsWRmVeSWpSXmKPExsVy+t/xq7ouPA2hBtsO8Fv83juT1WLO+jVs FtN39LFbfN7wj83i/PdD7BbTNopbnOnOtVi/8zO7xeVdc4DCu9ayWlw6sIDJ4njvASaLzZum Mlv82PCY1YHP43trH4vH7IaLLB47Z91l99i8Qstj06pONo93586xe5yY8ZvFY/ujqSwe7/dd ZfP4vEnO40TLF9YA7igum5TUnMyy1CJ9uwSujGf7utkL9rFUnFtxm62B8QhzFyMnh4SAicSd s99ZIGwxiQv31rN1MXJxCAksZZQ4sOgXI4TznVFiW+N8sCpeAS2JVc1TWEFsFgFVicu37zCC 2GwCehL/Zm1nA7FFBSIk3l4+yQRRLyjxY/I9sF4RAR+JZaubwDYwC2xhlrh6sRWsSFggXGLN 0qPMENuOM0ps3NsGdh+ngK7ElO072LsYOYA61CWmTMkFCTMLyEtsXvOWeQKjwCwkO2YhVM1C UrWAkXkVo2hqaXJBcVJ6rpFecWJucWleul5yfu4mRkiMfd3BuPSY1SFGAQ5GJR7eiE+1oUKs iWXFlbmHGCU4mJVEeNu+1IcK8aYkVlalFuXHF5XmpBYfYpTmYFES5525632IkEB6Yklqdmpq QWoRTJaJg1OqgZFDKV9EeP5xT5u2vFjTB3/ufd+91ScjO8bjC6sHuydP+Ckbp+/i+Z9/HLyZ v2nqCxbx5/kr9lyqqH+w92zn/T1L5+fvrNeXkPpn7Rm9Zl/asQUX/mkwL3hUxv8q9/WJaUxR j/4sCjyvtWn5jpxLGW1FsgL/WZ1bj0eqnFVNK/y81PDP9q+pHQVKLMUZiYZazEXFiQCMk9vb rQIAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 800 Lines: 24 On 06/16/2015 02:34 PM, Borislav Petkov wrote: > On Tue, Jun 16, 2015 at 01:16:32PM +0200, Borislav Petkov wrote: >> Now my hunch is that those entries get overwritten later but I wouldn't >> want to debug any strange bugs from leftovers in init_level4_pgt so >> having the clear_page() is actually a good thing. > > So I guess we can do that: > > #ifndef CONFIG_KASAN > clear_page(init_level4_pgt); > #endif > Ugh.. Can't we just move clear_page(init_level4_pgt) higher? Before or right after clear_bss() (iow before kasan_early_init()). -- 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/