Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932735AbbDOSFO (ORCPT ); Wed, 15 Apr 2015 14:05:14 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:62326 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756359AbbDOSFH (ORCPT ); Wed, 15 Apr 2015 14:05:07 -0400 X-AuditID: cbfec7f5-b7f1e6d00000617c-6e-552ea78ae030 Message-id: <552EA835.5070704@samsung.com> Date: Wed, 15 Apr 2015 21:04:37 +0300 From: Andrey Ryabinin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-version: 1.0 To: David Keitel Cc: Catalin Marinas , linux-mm@kvack.org, Andrew Morton , Will Deacon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/2] arm64: add KASan support References: <1427208544-8232-1-git-send-email-a.ryabinin@samsung.com> <1427208544-8232-3-git-send-email-a.ryabinin@samsung.com> <20150401122843.GA28616@e104818-lin.cambridge.arm.com> <551E993E.5060801@samsung.com> <552DCED9.40207@codeaurora.org> In-reply-to: <552DCED9.40207@codeaurora.org> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrILMWRmVeSWpSXmKPExsVy+t/xy7pdy/VCDc5sV7OYs34Nm8X7ZT2M FrsvPWO22PT4GqvF5V1z2CzurfnPavHy4wkWB3aPNfPWMHpc7utl8tj0aRK7x4kZv1k8Ni+p 9/i8SS6ALYrLJiU1J7MstUjfLoEro2XmApaCH+wVB97cYW1gXM7WxcjJISFgItHWuxvKFpO4 cG89kM3FISSwlFHixumHTBBOM5PEyw1/mUCqeAW0JKbMfckCYrMIqEq09+1lBLHZBPQk/s3a DtTNwSEqECFx+zInRLmgxI/J98DKRQQ0JXY3NLOAzGQWuM4oMfnQCXaQhLCAocTiy3tZIJb9 ZpR43/ABbCingI7EiUmTGUGGMgMtuH9RCyTMLCAvsXnNW+YJjAKzkOyYhVA1C0nVAkbmVYyi qaXJBcVJ6blGesWJucWleel6yfm5mxghwf51B+PSY1aHGAU4GJV4eG/I6IUKsSaWFVfmHmKU 4GBWEuHdPB0oxJuSWFmVWpQfX1Sak1p8iJGJg1OqgbG2/6So7rzQtmMbdVWVYlbEScrPFoy0 krOIdVm79t1xu6YjLy7Zrrq462eEbMJJtZk7Vv1je6RmkXJYfs3CC4tqvvCcfJe89bqi+s9b G/c5rZd7VyVdqPX3jZh6fgX7+/qr888YM8vI3bn6ac58tpVCkaUNeyz6V56ey7kkmjepflPM R6mdP2crsRRnJBpqMRcVJwIAEDcgTVQCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1233 Lines: 33 On 04/15/2015 05:37 AM, David Keitel wrote: >>>> + pgd = __pgd(__pa(kasan_zero_pmd) | PAGE_KERNEL); >>>> +#else >>>> + pgd = __pgd(__pa(kasan_zero_pte) | PAGE_KERNEL); >>>> +#endif >>>> + >>>> + for (i = pgd_index(start); start < end; i++) { >>>> + set_pgd(&pgdp[i], pgd); >>>> + start += PGDIR_SIZE; >>>> + } >>>> +} >>> >>> Same problem as above with PAGE_KERNEL. You should just use >>> pgd_populate(). > > Any suggestion what the correct flag setting would be here for a 4K mapping? > > I tried fixing this by changing this to pud and setting the PMD_TYPE_TABLE flag for kasan_zero_pmd. However the MMU doesn't like it and I get a first level address translation fault. > > If you have any updated patches to share I'd be glad to try them out. > Sorry, I didn't have much time on work on this yet. I've pushed the most fresh thing that I have in git: git://github.com/aryabinin/linux.git kasan/arm64v1 It's the same patches with two simple but important fixes on top of it. -- 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/