Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4158480ybc; Thu, 14 Nov 2019 23:11:28 -0800 (PST) X-Google-Smtp-Source: APXvYqyJJ9Yzl6VSX+I/7A9AJBYLDGUaCteh9as0wHyT2LnAYeA7gV5QfsdWGJOlPVMdvKIBnpI6 X-Received: by 2002:a17:906:4d58:: with SMTP id b24mr11596639ejv.277.1573801888851; Thu, 14 Nov 2019 23:11:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573801888; cv=none; d=google.com; s=arc-20160816; b=yHsArVPdpT3SIOh/XPjyvoMN+zdgzWd14Shhm/WfMm37Lsr5wpKti4h0DKSFe4BHdk hO9fICakgg81ipklCUSDM7v8b4ItsngBH9HOTyH/GVYf9U+sSRJnc4jnui17yEtICYhR 9YugpJ7C6xnQefLmPdLUJBplp6mdt2vmjdwIUglYhkGINqT6ma2lXD/Nk8pZj0i0l/Mu kuHaKQUIRYudA39FrPNSGJl8P20xD8Gp1MDh/VfT7CWjgqWHjkgAdIg23XwZEDRoYUQx MGQCZsir7J+ivnnmnwgLU3R01H46GxQFhNsYRwRlEnBQ9IAM+zt0VccQlAJgle+Ad5jw NSZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=si7doS+8+HaqDyRJyxAQRRxZLilJCzb4wG4YUdbal9c=; b=cVYleVLZPjRropHWzSAcE4TRhbnX8viQmIK6Hkugc8YjbCGEbWfdbyx4upxf3x/Ge2 9LMdEWMnIBvMBkdLLw82o4/QTkgDv8PKiTgJ2w1qPLjXJnAFY4QBtVD+R3NEZRjVxBFG bCUfQu90H4neAdjuW96BdBkxyqvt4bKJvp0k6N3XSHrq46Ie1dC80a4Z8Z9/eK63pGyV Xw+1yUuUlgGpaVALW5m3FjcOe4o0oqD9HCBr97mBPl24C91Q0+1EDJhihn0wW22VYgil Zuh2enwZ8yU+/6HtOS0pSzvb4AVyYEBaAj3BoR7qC+AXYd4ikt8Y0RZHswCB7tFGZXg/ bEEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o57si6161506edc.240.2019.11.14.23.11.03; Thu, 14 Nov 2019 23:11:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727132AbfKOHJz (ORCPT + 99 others); Fri, 15 Nov 2019 02:09:55 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:52615 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbfKOHJz (ORCPT ); Fri, 15 Nov 2019 02:09:55 -0500 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iVViy-0003Na-GI; Fri, 15 Nov 2019 08:08:56 +0100 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iVVik-0008Gw-CK; Fri, 15 Nov 2019 08:08:42 +0100 Date: Fri, 15 Nov 2019 08:08:42 +0100 From: Marco Felsch To: Florian Fainelli Cc: linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com, alexandre.belloni@bootlin.com, mhocko@suse.com, julien.thierry@arm.com, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, dhowells@redhat.com, yamada.masahiro@socionext.com, ryabinin.a.a@gmail.com, glider@google.com, kvmarm@lists.cs.columbia.edu, corbet@lwn.net, liuwenliang@huawei.com, daniel.lezcano@linaro.org, linux@armlinux.org.uk, kasan-dev@googlegroups.com, bcm-kernel-feedback-list@broadcom.com, geert@linux-m68k.org, drjones@redhat.com, vladimir.murzin@arm.com, keescook@chromium.org, arnd@arndb.de, marc.zyngier@arm.com, andre.przywara@arm.com, philip@cog.systems, jinb.park7@gmail.com, tglx@linutronix.de, dvyukov@google.com, nico@fluxnic.net, gregkh@linuxfoundation.org, ard.biesheuvel@linaro.org, linux-doc@vger.kernel.org, christoffer.dall@arm.com, rob@landley.net, pombredanne@nexb.com, akpm@linux-foundation.org, thgarnie@google.com, kirill.shutemov@linux.intel.com, kernel@pengutronix.de Subject: Re: [PATCH v6 0/6] KASan for arm Message-ID: <20191115070842.2x7psp243nfo76co@pengutronix.de> References: <20190617221134.9930-1-f.fainelli@gmail.com> <20191114181243.q37rxoo3seds6oxy@pengutronix.de> <7322163f-e08e-a6b7-b143-e9d59917ee5b@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7322163f-e08e-a6b7-b143-e9d59917ee5b@gmail.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 07:52:54 up 181 days, 13:11, 128 users, load average: 0.02, 0.03, 0.00 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Florian, On 19-11-14 15:01, Florian Fainelli wrote: > Hello Marco, > > On 11/14/19 10:12 AM, Marco Felsch wrote: > > Hi Florian, > > > > first of all, many thanks for your work on this series =) I picked your > > and Arnd patches to make it compilable. Now it's compiling but my imx6q > > board didn't boot anymore. I debugged the code and found that the branch > > to 'start_kernel' won't be reached > > > > 8<------- arch/arm/kernel/head-common.S ------- > > .... > > > > #ifdef CONFIG_KASAN > > bl kasan_early_init > > #endif > > mov lr, #0 > > b start_kernel > > ENDPROC(__mmap_switched) > > > > .... > > 8<---------------------------------------------- > > > > Now, I found also that 'KASAN_SHADOW_OFFSET' isn't set due to missing > > 'CONFIG_KASAN_SHADOW_OFFSET' and so no '-fasan-shadow-offset=xxxxx' is > > added. Can that be the reason why my board isn't booted anymore? > > The latest that I have is here, though not yet submitted since I needed > to solve one issue on a specific platform with a lot of memory: > > https://github.com/ffainelli/linux/pull/new/kasan-v7 Thanks for that hint, I will try this series too :) I read that you wanna prepare a v7 but didn't found it ^^ > Can you share your branch as well? I did not pick all of Arnd's patches > since some appeared to be seemingly independent from KASan on ARM. This > is the KASAN related options that are set in my configuration: Of course I will push it to github and inform you shortly. > grep KASAN build/linux-custom/.config > CONFIG_HAVE_ARCH_KASAN=y > CONFIG_CC_HAS_KASAN_GENERIC=y > CONFIG_KASAN=y > CONFIG_KASAN_GENERIC=y > CONFIG_KASAN_OUTLINE=y > # CONFIG_KASAN_INLINE is not set > CONFIG_KASAN_STACK=1 > CONFIG_TEST_KASAN=m My config is: CONFIG_HAVE_ARCH_KASAN=y CONFIG_CC_HAS_KASAN_GENERIC=y CONFIG_KASAN=y CONFIG_KASAN_GENERIC=y CONFIG_KASAN_OUTLINE=y # CONFIG_KASAN_INLINE is not set CONFIG_KASAN_STACK=1 # CONFIG_TEST_KASAN is not set > are you using something different by any chance? Unfortunately not. Regards, Marco > -- > Florian > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |