Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933135AbbDJNCr (ORCPT ); Fri, 10 Apr 2015 09:02:47 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:61186 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932636AbbDJNCq (ORCPT ); Fri, 10 Apr 2015 09:02:46 -0400 From: Arnd Bergmann To: Andrey Ryabinin Cc: linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton Subject: Re: [PATCH 2/2] arm64: add KASan support Date: Fri, 10 Apr 2015 15:02:39 +0200 Message-ID: <8790947.ikOtIjWHkt@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <5527AA94.5080803@samsung.com> References: <1427208544-8232-1-git-send-email-a.ryabinin@samsung.com> <3164609.kEhR8riVSV@wuerfel> <5527AA94.5080803@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:M27p7GeAh1coTjXu+l8lqspUDCoCX/gbAhiiicxqLYIJ7JEfFhL Xi63mkuCsSklMkiUrV09WuCQtMI6MmJgQoOgnEc+x/LvERuU2J3d9K4NVwv/d290PTxNiLX h8IcJsu9RG6u0uiAaLrdkotbWhVRBVKABK1LnCH+kn9qP/nhXH5FjD+1nw87QX2yORKmlvR uw3n850h1ShV/mMntia2A== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1116 Lines: 26 On Friday 10 April 2015 13:48:52 Andrey Ryabinin wrote: > On 04/09/2015 11:17 PM, Arnd Bergmann wrote: > > On Tuesday 24 March 2015 17:49:04 Andrey Ryabinin wrote: > >> arch/arm64/mm/kasan_init.c | 211 +++++++++++++++++++++++++++++++++++ > >> > > > > Just one very high-level question: as this code is clearly derived from > > the x86 version and nontrivial, could we move most of it out of > > arch/{x86,arm64} into mm/kasan/init.c and have the rest in some header > > file? > > > > I think most of this could be moved out from arch code, but not everything. > E.g. kasan_init() function is too arch-specific. Right, makes sense. So presumably, populate_zero_shadow could become a global function by another name, and possibly also handle registering the die handler, so you can call it from an architecture specific kasan_init() function, right? Arnd -- 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/