From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DA20C433DB for ; Tue, 19 Jan 2021 08:38:29 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4A81E22241 for ; Tue, 19 Jan 2021 08:38:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4A81E22241 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=U/L/1GDENw3ZOzFCsBDIrbQxhEZus3wkkc2/sjlCT0o=; b=yQpkkUy/jzmr9N0I/eDETPEAu LgnU6ke2QB3/SREDE0sCDdRQ7uatEY8rNMa+iHTPUPII9oIiQOs/SkXJ1Ys7aKvqwNzTrCM3bwJ6J 1cJY8EQ3XmBNVqKU4Y6N/vjSTjRup61NEuHC9spIrvsbcuzjT10bHGkdtrNNVQeLM8J6hhYT/9K5g +GjTe1ixdLWLhHovAJhcShYU0dVGlp1NirRSYmb3PE2w1R4Wpa8X9a8mKOEgAAsOniACGzCluoFYk ZecbEP026UFDtmaeTbBn70foDy4LqiaZLNXZw7J3RVKyKHcmDDo0XzToK9myUV2Qn70bad9l306rh 1+4ZcgX2w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1mVe-0002pB-SF; Tue, 19 Jan 2021 08:37:06 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1mVc-0002oj-4e for linux-arm-kernel@lists.infradead.org; Tue, 19 Jan 2021 08:37:05 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 159D722241 for ; Tue, 19 Jan 2021 08:37:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611045421; bh=sJKp4ExpWOnzerm8o6JjaWs8wifNXf9pIbtesnLwCmo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=qFZfASgQOW2q4LHgpXT4utHTK8ph7O4cwSf4kWivWltmG+dWt1YdDwPYg7IKkc+jm kC0oGrmFOjybYUD/Y0hkqFz2ZcWV3mzrYcy2AjcwqyR2DUvHYg7m2GLhQIiHh58YRf 80ftINyQwAmZE2Uz/UEjLrElehZYNYrvasq/vnbSi/K8VDwNqxX4eXn7GbypQslvat cY2Q0gEzXhc65IgIVVYpQAXfDI5x5vKyJuHi8/eKpFj4YD1Oc9FU8xd+zrRVzSmzzw PZrliZJltG1GEZ5ZkZ7ccPcyypbhU1uc8VzPcGNcgmw8NYBzr4QrT/jgkBtdL8/0+o spHj+DmObNtjg== Received: by mail-ed1-f48.google.com with SMTP id g24so20446610edw.9 for ; Tue, 19 Jan 2021 00:37:01 -0800 (PST) X-Gm-Message-State: AOAM532iOcaso+pNDuLsuSWgGVPdef/YJkwWmS7IJjEnnTlcuLT8QaLH rThyIb87P4aP086JfGmAAIKurM6aiK6adkXVKlw= X-Google-Smtp-Source: ABdhPJyPEGumV1+5/ed4tlXDm9rXf/sTJcu8GjUV3Dm2HP8fuP+WDQc51ukAfHXeUTbwcVpEbLBS7xF+wvSi8CPEAFI= X-Received: by 2002:a05:6402:160f:: with SMTP id f15mr2517992edv.348.1611045419534; Tue, 19 Jan 2021 00:36:59 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Krzysztof Kozlowski Date: Tue, 19 Jan 2021 09:36:47 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Arm + KASAN + syzbot To: Dmitry Vyukov X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210119_033704_336398_A46F1D35 X-CRM114-Status: GOOD ( 23.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Linus Walleij , Russell King - ARM Linux , kasan-dev , syzkaller , liu.hailong6@zte.com.cn, Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 18 Jan 2021 at 17:31, Dmitry Vyukov wrote: > > Hello Arm maintainers, > > We are considering setting up an Arm 32-bit instance on syzbot for > continuous testing using qemu emulation and I have several questions > related to that. > > 1. Is there interest in this on your end? Sure, the more, the better. > What git tree/branch should > be used for testing (contains latest development and is regularly > updated with fixes)? Depends on your testing capabilities, whether you can deal with every sub-maintainer's tree. 0-day kernel robot tests everything possible and this allows each submaintanier to early receive feedback about his tree. It can be around 30 Git trees, though... If you want only few, I would start with: - https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/ - linux-next - and Russell's for-next (http://git.armlinux.org.uk/cgit/linux-arm.git/log/?h=for-next) > 2. I see KASAN has just become supported for Arm, which is very > useful, but I can't boot a kernel with KASAN enabled. I am using > v5.11-rc4 and this config without KASAN boots fine: > https://gist.githubusercontent.com/dvyukov/12de2905f9479ba2ebdcc603c2fec79b/raw/c8fd3f5e8328259fe760ce9a57f3e6c6f5a95c8f/gistfile1.txt Maybe try first with a kernel based on vexpress defconfig. Yours looks closer to multi_v7 which enables a lot of stuff also as modules and this by itself brought up few issues (mostly with order of probes). You could also try other QEMU machine (I don't know many of them, some time ago I was using exynos defconfig on smdkc210, but without KASAN). > using the following qemu command line: > qemu-system-arm \ > -machine vexpress-a15 -cpu max -smp 2 -m 2G \ > -device virtio-blk-device,drive=hd0 \ > -drive if=none,format=raw,id=hd0,file=image-arm -snapshot \ > -kernel arch/arm/boot/zImage \ > -dtb arch/arm/boot/dts/vexpress-v2p-ca15-tc1.dtb \ > -nographic \ > -netdev user,host=10.0.2.10,hostfwd=tcp::10022-:22,id=net0 -device > virtio-net-device,netdev=net0 \ > -append "root=/dev/vda earlycon earlyprintk=serial console=ttyAMA0 > oops=panic panic_on_warn=1 panic=86400 vmalloc=512M" > > However, when I enable KASAN and get this config: > https://gist.githubusercontent.com/dvyukov/a7e3edd35cc39a1b69b11530c7d2e7ac/raw/7cbda88085d3ccd11227224a1c9964ccb8484d4e/gistfile1.txt > > kernel does not boot, qemu only prints the following output and then silence: > pulseaudio: set_sink_input_volume() failed > pulseaudio: Reason: Invalid argument > pulseaudio: set_sink_input_mute() failed > pulseaudio: Reason: Invalid argument > > What am I doing wrong? No clue but I just tried KASAN on my ARMv7 Exynos5422 board (real hardware) and it works (although kernel log appeared with a bigger delay): [ 0.000000] Booting Linux on physical CPU 0x100 [ 0.000000] Linux version 5.11.0-rc3-next-20210115-00001-g77140600eeec (kozik@kozik-lap) (arm-linux-gnueabi-gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #144 SMP PREEMPT Tue Jan 19 09:23:24 CET 2021 [ 0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d ... [ 0.000000] kasan: Truncating shadow for memory block at 0x40000000-0xbea00000 to lowmem region at 0x70000000 [ 0.000000] kasan: Mapping kernel virtual memory block: c0000000-f0000000 at shadow: b7000000-bd000000 [ 0.000000] kasan: Mapping kernel virtual memory block: bf000000-c0000000 at shadow: b6e00000-b7000000 [ 0.000000] kasan: Kernel address sanitizer initialized Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel