Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp785557pxb; Wed, 16 Feb 2022 04:30:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwAVyTDROFnMTVh5D+UVRx/s4Ttn49X332VzeTG0Zhh3MUxhjX273k8DgrQD9Tmq5jUszOD X-Received: by 2002:a63:d354:0:b0:372:fbd2:a22a with SMTP id u20-20020a63d354000000b00372fbd2a22amr2155589pgi.438.1645014642534; Wed, 16 Feb 2022 04:30:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645014642; cv=none; d=google.com; s=arc-20160816; b=odAMaWVYlcQRZxuQvYjmZDYaMApA7zUl8ES2TLDnbcan9taN/21Gz76YMoQgbTtAcT EvYyWDFvHqON5/a7teG+2/GE/Zw6KCFkgBlbYUEpBy1eo2c2cevJyOxle+rfXBul2FRa 9rjbgtpsyZVKOPVMyGFkRRqwyNwbp6sBy/NQ6mYS5aQDmYSSq8s6pdWijaFt8yST9DES AF1hkp77Y8wD7XNiW9LZg+kSeZGhkr6/lXZHAGyP+D57jgAy6IS5mazJaPETIBSRyTBB 19F0C/ZzoEbMRLmcYR7YtROTc9v3TP9uMZuZpd/boC+OLlXGrR1t8WLCsRQ1+FatQBO1 hn2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zQ426YIiyZCGwhq/0eYvVXz0if/mrj+i3L6Ot4o8TMs=; b=K01RYY1D1/f+OOgHpuZUaIUghlidXIV39MYMJsdyCcrGf2GtH8kx1+W8lKExAmCrvL IWYmKzrB1FdfMqlexP/0qNc1Uxerlq5hLYdnC/GPkbx8Jazsj+vQcqvCD10/XQ8mVCAv z5cswdSNa5bvIz94cXtXCwi7wuFOo+5mYp+q4T7vqgMYwibWDYB1zg/1xtIA1iIUhjR9 tVcUILT3M5iasbXOiCvQfEoVDdnf5g4388iprcdzp/JMaDS/LyadTcg6O6nVieGO6drb XEjmygt/mBzgue8yyLyuEZGSz3cOSpzKHik4tPObl4C3IC4v/ykCyuAlmcbqo8VBKzwE Fd+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=JIL+GG0b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j22si9745216pfj.322.2022.02.16.04.30.26; Wed, 16 Feb 2022 04:30:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=JIL+GG0b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232343AbiBPLry (ORCPT + 99 others); Wed, 16 Feb 2022 06:47:54 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230254AbiBPLrx (ORCPT ); Wed, 16 Feb 2022 06:47:53 -0500 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EE8092D14 for ; Wed, 16 Feb 2022 03:47:40 -0800 (PST) Received: by mail-il1-x130.google.com with SMTP id e11so1233289ils.3 for ; Wed, 16 Feb 2022 03:47:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zQ426YIiyZCGwhq/0eYvVXz0if/mrj+i3L6Ot4o8TMs=; b=JIL+GG0b+7KSzYQSWUZZrMWM3fw2AyPiHDkjuA2EE9M+LKX4rQMVlT/wknhTiJ0WuE WgtSP9X+ECI07ds8ZFCfiOxxa0tWz5YJqgILqYLFshVs5FKr6VQsirwNzB5I7eAnI3Ig wqXDQOThdIHLVztqbp7z6HFe3vmNT7LdplFQCVoe2hSlFDsWCZjFZ+VkRaEVX0xqj8Kt PkS6w+CtiZvhemwHv4GCRpcl2OOr+PgCG8STri+twucrasQLiCTBh45oe/TbEfKEidJn kEg0d4Cdb8Q5OtxUDu9/rTALWOlq2q6F5dIdBz2l1xn4oVlZEIuguXidsluQqVScuo62 yL0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zQ426YIiyZCGwhq/0eYvVXz0if/mrj+i3L6Ot4o8TMs=; b=CJDUka9hXNB/Vv3AVVmw/lVy6vUsSq57zs2npgNoR9orIzB/fxVDb3c5mONQaSEfzJ DcldYoUGUlUV95hXwbdmTvGgJVc2pB+gub8iqTL7iNpg/9+26f6raSz+Dt7Bct2SZMFs kUqyWDG/W2NxJCIFL7hmK0z29C6tmG8GS0Kw9Pmhq9S8N/soTIYd6jqEIo+v1cdmwYZv 7u7M3z1i/rASDDSj3hA9KZrsfjSDtdjHBI8wIBmKjtt4+XhAvMPDziFOiFuiVX0Xyr+N KHAC0yq0keDtwmgw8qyKk9gjetkKXCVH7kBwOhV3mZDnXvTvW33FSyxjmHOvytQKxAJ9 6wGA== X-Gm-Message-State: AOAM531ocHLyCApPy+zyb3uDTJP+AZjN3cT00SqveOaPAluAk8ETLJkf zOSIBrPRLUynt8loVOv/Kw5ulWBlw+sul+A9KRpMIg== X-Received: by 2002:a05:6e02:1bc5:b0:2be:ebbe:1879 with SMTP id x5-20020a056e021bc500b002beebbe1879mr1528527ilv.127.1645012059881; Wed, 16 Feb 2022 03:47:39 -0800 (PST) MIME-Version: 1.0 References: <00000000000038779505d5d8b372@google.com> In-Reply-To: From: Aleksandr Nogikh Date: Wed, 16 Feb 2022 12:47:28 +0100 Message-ID: Subject: Re: [syzbot] riscv/fixes boot error: can't ssh into the instance To: Alexandre Ghiti Cc: Dmitry Vyukov , Alexandre Ghiti , linux-riscv@lists.infradead.org, kasan-dev , Palmer Dabbelt , syzbot , LKML , syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 16, 2022 at 11:37 AM Aleksandr Nogikh wrote: > > Hi Alex, > > On Wed, Feb 16, 2022 at 5:14 AM Alexandre Ghiti wrote: > > > > Hi Dmitry, > > > > On 2/15/22 18:12, Dmitry Vyukov wrote: > > > On Wed, 2 Feb 2022 at 14:18, Alexandre Ghiti > > > wrote: > > >> Hi Aleksandr, > > >> > > >> On Wed, Feb 2, 2022 at 12:08 PM Aleksandr Nogikh wrote: > > >>> Hello, > > >>> > > >>> syzbot has already not been able to fuzz its RISC-V instance for 97 > > >> That's a longtime, I'll take a look more regularly. > > >> > > >>> days now because the compiled kernel cannot boot. I bisected the issue > > >>> to the following commit: > > >>> > > >>> commit 54c5639d8f507ebefa814f574cb6f763033a72a5 > > >>> Author: Alexandre Ghiti > > >>> Date: Fri Oct 29 06:59:27 2021 +0200 > > >>> > > >>> riscv: Fix asan-stack clang build > > >>> > > >>> Apparently, the problem appears on GCC-built RISC-V kernels with KASAN > > >>> enabled. In the previous message syzbot mentions > > >>> "riscv64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU > > >>> Binutils for Debian) 2.35.2", but the issue also reproduces finely on > > >>> a newer GCC compiler: "riscv64-linux-gnu-gcc (Debian 11.2.0-10) > > >>> 11.2.0, GNU ld (GNU Binutils for Debian) 2.37". > > >>> For convenience, I also duplicate the .config file from the bot's > > >>> message: https://syzkaller.appspot.com/x/.config?x=522544a2e0ef2a7d > > >>> > > >>> Can someone with KASAN and RISC-V expertise please take a look? > > >> I'll take a look at that today. > > >> > > >> Thanks for reporting the issue, > > > > > > > I took a quick look, not enough to fix it but I know the issue comes > > from the inline instrumentation, I have no problem with the outline > > instrumentation. I need to find some cycles to work on this, my goal is > > to fix this for 5.17. > > Thanks for the update! > > Can you please share the .config with which you tested the outline > instrumentation? > I updated the syzbot config to use KASAN_OUTLINE instead of KASAN_INLINE, > but it still does not boot :( > > Here's what I used: > https://gist.github.com/a-nogikh/279c85c2d24f47efcc3e865c08844138 Update: it doesn't boot with that big config, but boots if I generate a simple one with KASAN_OUTLINE: make defconfig ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- ./scripts/config -e KASAN -e KASAN_OUTLINE make olddefconfig ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- And it indeed doesn't work if I use KASAN_INLINE. > > -- > Best Regards, > Aleksandr > > > > > Sorry about the delay, > > > > Alex > > > > > > > > > > > > >>> -- > > >>> Best Regards, > > >>> Aleksandr > > >>> > > >>> > > >>> On Tue, Jan 18, 2022 at 11:26 AM syzbot > > >>> wrote: > > >>>> Hello, > > >>>> > > >>>> syzbot found the following issue on: > > >>>> > > >>>> HEAD commit: f6f7fbb89bf8 riscv: dts: sifive unmatched: Link the tmp451.. > > >>>> git tree: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes > > >>>> console output: https://syzkaller.appspot.com/x/log.txt?x=1095f85bb00000 > > >>>> kernel config: https://syzkaller.appspot.com/x/.config?x=522544a2e0ef2a7d > > >>>> dashboard link: https://syzkaller.appspot.com/bug?extid=330a558d94b58f7601be > > >>>> compiler: riscv64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 > > >>>> userspace arch: riscv64 > > >>>> > > >>>> IMPORTANT: if you fix the issue, please add the following tag to the commit: > > >>>> Reported-by: syzbot+330a558d94b58f7601be@syzkaller.appspotmail.com > > > _______________________________________________ > > > linux-riscv mailing list > > > linux-riscv@lists.infradead.org > > > http://lists.infradead.org/mailman/listinfo/linux-riscv > > > > -- > > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/a0769218-c84a-a1d3-71e7-aefd40bf54fe%40ghiti.fr.