Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754084AbbDTGsy (ORCPT ); Mon, 20 Apr 2015 02:48:54 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:53126 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752640AbbDTGsw (ORCPT ); Mon, 20 Apr 2015 02:48:52 -0400 X-AuditID: cbfec7f4-f79c56d0000012ee-5a-5534a0a20062 Message-id: <5534A14E.5010507@samsung.com> Date: Mon, 20 Apr 2015 09:48:46 +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> <552EA835.5070704@samsung.com> <5531537C.1000107@codeaurora.org> In-reply-to: <5531537C.1000107@codeaurora.org> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHLMWRmVeSWpSXmKPExsVy+t/xa7qLFpiEGlw4LWoxZ/0aNov3y3oY LXZfesZssenxNVaLy7vmsFncW/Of1eLlxxMsDuwea+atYfS43NfL5LHp0yR2jxMzfrN4bF5S 7/F5k1wAWxSXTUpqTmZZapG+XQJXxuQVmgX3OSveXuthb2D8yN7FyMkhIWAicfb2QSYIW0zi wr31bF2MXBxCAksZJf5fn8QC4XxnlGhaf5cFpIpXQEtizsK9YN0sAqoSW9b+Ywax2QT0JP7N 2g7UzcEhKhAhcfsyJ0S5oMSPyffAWkUENCV2NzSDzWQWuM4oMfnQCbA5wgKGEosv74Vato9J YtfnfWBDOYGG9l1bygoylBnIvn9RCyTMLCAvsXnNW+YJjAKzkOyYhVA1C0nVAkbmVYyiqaXJ BcVJ6bmGesWJucWleel6yfm5mxghof5lB+PiY1aHGAU4GJV4eCMuG4cKsSaWFVfmHmKU4GBW EuEV3Q8U4k1JrKxKLcqPLyrNSS0+xCjNwaIkzjt31/sQIYH0xJLU7NTUgtQimCwTB6dUA6Mt S/W80rBflQyBNiobvLIVs2O08t+ez7Y/EHzH4Wxs1XyBey6J7mum/X78SWfRM0vdjlr7zp64 mkPx3Sv2id4vMrwQsUJNO/Hm3P+hjX8d75uVbL/ZfGG/XcRyDuF7amfOLgqu0uUOa2ZQf/SQ czF31bUuptuOR7mjdsVsXhy6z36NycLzUkosxRmJhlrMRcWJAEWTU4BxAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1469 Lines: 28 On 04/17/2015 09:39 PM, David Keitel wrote: > On 04/15/2015 11:04 AM, Andrey Ryabinin wrote: >> 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. > > Thanks, the two commits do fix compilation issues that I've had worked around to get to my mapping question. > > I've addressed the mapping problem using __create_page_tables in arch/arm64/head.S as an example. > > The next roadblock I hit was running into kasan_report_error calls in cgroups_early_init. After a short investigation it does seem to be a false positive due the the kasan_zero_page size and tracking bytes being reused for different memory regions. > > I worked around that by enabling kasan error reporting only after the kasan_init is run. This let me get to the shell with some real KAsan reports along the way. Reporting already disabled before kasan_init() and the last thing that kasan_init() is enable error reports. So, how did you managed to get kasan's report before kasan_init()? > There were some other fixes and hacks to get there. I'll backtrack to evaluate which ones warrant an RFC. > > - David > -- 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/