Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751617AbbEYINF (ORCPT ); Mon, 25 May 2015 04:13:05 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:27650 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750843AbbEYINA (ORCPT ); Mon, 25 May 2015 04:13:00 -0400 X-AuditID: cbfec7f4-f79c56d0000012ee-4f-5562d98a927d Message-id: <5562D989.3030206@samsung.com> Date: Mon, 25 May 2015 11:12:57 +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: Alexander Popov Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andrey Konovalov , Denys Vlasenko , Andy Lutomirski , Alexander Kuleshov , Sergey Kovalev , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] x86_64: fix KASan shadow region page tables References: <1432310581-11965-1-git-send-email-alpopov@ptsecurity.com> In-reply-to: <1432310581-11965-1-git-send-email-alpopov@ptsecurity.com> Content-type: text/plain; charset=windows-1251 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHLMWRmVeSWpSXmKPExsVy+t/xy7pdN5NCDa5O0LD4vXcmq8X0HX3s Fue/H2K3mLZR3GL9zs/sFpd3zWGzWL22gdXi0oEFTBYf7/YzW2zeNJXZ4seGx6wO3B733/xl 8dg56y67x6ZVnWwe786dY/fY/mgqi8f7fVfZPD5vkvM40fKFNYAjissmJTUnsyy1SN8ugSuj +epHtoJu5oq1J2YxNjDuZepi5OSQEDCRePZ0CwuELSZx4d56ti5GLg4hgaWMEr8uXoNyvjNK PO66xwhSxSugJfGq/RI7iM0ioCrx63gPM4jNJqAn8W/WdjYQW1QgQuLt5ZNMEPWCEj8m3wPb ICKgI9G74zPYUGaBt0wSS/7vBWsWFnCROHtmEViDkICbxIQ9n4DiHBycAu4Sv2/FgoSZgeZ/ uneTHcKWl9i85i3zBEaBWUhWzEJSNgtJ2QJG5lWMoqmlyQXFSem5hnrFibnFpXnpesn5uZsY IbHyZQfj4mNWhxgFOBiVeHg3ZCWFCrEmlhVX5h5ilOBgVhLhtd4PFOJNSaysSi3Kjy8qzUkt PsQozcGiJM47d9f7ECGB9MSS1OzU1ILUIpgsEwenVAOj0cTPs62qZdj8nosmZ01SaduyNYzt QUZHe5L41b2flb///Xp/5eVnnCdy3y/t/MvaIfNz11PvrIojT7wmvt/0qLbg7dIyBc+C7lJB y8yJgpv7nz86479jUmTXRfnLrfw30xSPFX2yEFhTwFDJd2XytTeJdwKPMS76cDC1Yt/O9+01 a+IvxouJKLEUZyQaajEXFScCAAxwe8WRAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 628 Lines: 17 On 05/22/2015 07:03 PM, Alexander Popov wrote: > Physical addresses in KASan shadow region page tables need fixup: > kernel halts without it if phys_base is not zero. > Indeed. Since we have to patch page tables anyway, compile-time created kasan page tables become pointless. So, I'd suggest to create them in runtime. This could be done in plain C in kasan_map_early_shadow(). -- 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/