Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp562248rwb; Fri, 4 Aug 2023 18:28:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYFjpSS7XPLtXZu172zdeaSJg+VddlXrWO6NzbVRfS5BTXIjbkCeQpgJ2yytC0ItXyC8NI X-Received: by 2002:a05:6870:8092:b0:1b0:222f:9cda with SMTP id q18-20020a056870809200b001b0222f9cdamr4256212oab.0.1691198884210; Fri, 04 Aug 2023 18:28:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691198884; cv=none; d=google.com; s=arc-20160816; b=RPttst1P2puVYzVp6nM+aAUvDhYFMarVbUFOMP+EfNq8hpUE2F8LovTCzJ4UQlRDIu o1BwUm36deO1PX3UOA0O/Y+JeDSO/Z6BM3MA0h7w9AsZ8lx9ExmO0m6bIBTnivrI9d/8 U+3KtwgPMeVghGKqn6xiht7Oc+tXMCIU0oJhlNgJJfIo5LWeNbtpoy7cUuz9OQBLNIG3 eYcwM1VQwBMM55gzpv01lsxZzo4kY15hNym/wUkmoPY5uGP86OBWsMxa4t45Dz69GWM6 MuIq9m4UbxBT3VCdmgXA/F3WE0Fpbj470/A40HNbLLYW6vmM8O0JtG3yCO87HYH6mJdM G2Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=KGrl+d8OtZg+Je/wpJnKONqV985m7oE0n8X9rLHZ9gA=; fh=iDOtPI54ZgSD4yNmX7eLLpUD4nYcWl+5KaYeA+A3w1Q=; b=UtoK3jeQVCvyKa+q39XuY4Hrgm2g4U5CQ1lZFWBOIPP3VGxX0ubj5oni+SdcQTevMz 1Y5xq7gYCc5yZ9ndNivXRn6tIb+Zs4U72qq/Fo/9KryMaf/jj6veoGbLmvT4tTIVjzv4 2dNwAHv+iXxj6Ko0FPxlKiHXod4Gtde8pQuE93fMhQRtjtxgwa/dY+2fBFKkcC0jDrWy N4U5qqWqTpGj53aZsn1Dfy4ck5WDUYWsS3xUSadXvwERGLlIetW0FO3Gtq2XLNe58zBb WxT/BhUpXEPEFkxv9F4mLob7A/LwNSfxT1pXILeHwg6rpEmHbgpMk/j87+PqPb7yTTUk nF4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eHg8q74s; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y35-20020a17090a53a600b0025eab041423si5735932pjh.189.2023.08.04.18.27.52; Fri, 04 Aug 2023 18:28:04 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=eHg8q74s; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229697AbjHEAAf (ORCPT + 99 others); Fri, 4 Aug 2023 20:00:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbjHEAAd (ORCPT ); Fri, 4 Aug 2023 20:00:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C1084EE4; Fri, 4 Aug 2023 17:00:31 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BE5FC6217E; Sat, 5 Aug 2023 00:00:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31B14C433C7; Sat, 5 Aug 2023 00:00:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691193630; bh=5Btpzxhwy1py8ALbN0tM+A7Ge6dF3mwFVy6nXkQlmKo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=eHg8q74soKjL8GBTtjCMrgfDMcNwEBGBZQcjVtWxmuWQzyH/AsT5nCzjSXTywS6mu dFbDR2LBLY+QOfey7Vui25pzACNvo2FECm5AoGpXSGRJURWuZiFDtGxPlgWCcPRj2x pxPxeKjf1qHhkFmuT4hnCsH/THkv7ihf6TGeeFnyatlcmbsYrJWgUqVbo6KsPE9xV8 H+N+ZDrOY2AkzCHj9q26v5KXLTB6f+RNHB68ZZhlY7iZLwCaA2WL2MjlHzjQ35ocMd fx6WR5SNuqKFv7kgo9HNzgfnSOW5UZuOj7LKAUFCnzVYYnk/tBQUxZ/Pf8927DoA4W m4wfZvN2V71Jw== Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-2b9e6cc93d8so42541641fa.0; Fri, 04 Aug 2023 17:00:30 -0700 (PDT) X-Gm-Message-State: AOJu0YwwjZ9nseoaow2ZaYZRX1daGXyH6+m26QGzQDIcBKjI/P/FLI1Z NoTptb4XnHHR0OgvBXJ0DkregoTQhXy4VXFBwyk= X-Received: by 2002:a19:915c:0:b0:4fa:21d4:b3ca with SMTP id y28-20020a19915c000000b004fa21d4b3camr2229529lfj.2.1691193628194; Fri, 04 Aug 2023 17:00:28 -0700 (PDT) MIME-Version: 1.0 References: <20230614013018.2168426-1-guoren@kernel.org> <20230614013018.2168426-2-guoren@kernel.org> <20230804-hut-morbidity-126fc9158f38@spud> In-Reply-To: <20230804-hut-morbidity-126fc9158f38@spud> From: Guo Ren Date: Fri, 4 Aug 2023 20:00:16 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH -next V13 1/3] riscv: stack: Support HAVE_IRQ_EXIT_ON_IRQ_STACK To: Conor Dooley Cc: "Jason A. Donenfeld" , arnd@arndb.de, palmer@rivosinc.com, conor.dooley@microchip.com, heiko@sntech.de, jszhang@kernel.org, bjorn@kernel.org, cleger@rivosinc.com, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Guo Ren Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 Fri, Aug 4, 2023 at 5:41=E2=80=AFPM Conor Dooley wrot= e: > > On Fri, Aug 04, 2023 at 11:28:17PM +0200, Jason A. Donenfeld wrote: > > On Fri, Aug 4, 2023 at 11:28=E2=80=AFPM Jason A. Donenfeld wrote: > > > > > > Hi Guo, > > > > > > On Tue, Jun 13, 2023 at 09:30:16PM -0400, guoren@kernel.org wrote: > > > > From: Guo Ren > > > > > > > > Add independent irq stacks for percpu to prevent kernel stack overf= lows. > > > > It is also compatible with VMAP_STACK by arch_alloc_vmap_stack. > > > > > > > > Tested-by: Jisheng Zhang > > > > Signed-off-by: Guo Ren > > > > Signed-off-by: Guo Ren > > > > Cc: Cl=C3=A9ment L=C3=A9ger > > > > > > This patch broke the WireGuard test suite. I've attached the .config > > > file that it uses. I'm able to fix it by setting CONFIG_EXPERT=3Dy an= d > > > CONFIG_IRQ_STACKS=3Dn to essentially reverse the effect of this patch= . But > > > I'd rather not do that. > > > > > > Any idea what's up? > > Given your config, I suspect you're hitting the issue that is resolved > by Guo Ren's series: > https://lore.kernel.org/linux-riscv/20230716001506.3506041-1-guoren@kerne= l.org/ Thx Conor's reply. > > Hopefully that's it, > Conor. > > > > > > > Thanks, > > > Jason > > > > And, err, I guess I failed to describe what's broken exactly. Here's > > what happens: > > > > timeout --foreground 20m qemu-system-riscv64 \ > > -nodefaults \ > > -nographic \ > > -smp 4 \ > > -cpu rv64 -machine virt \ > > -m 256M \ > > -serial stdio \ > > -chardev > > file,path=3D/home/zx2c4/Projects/wireguard-linux/tools/testing/selftest= s/wireguard/qemu/build/riscv64/result,id=3Dresult > > \ > > -device virtio-serial-device -device virtserialport,chardev=3Dre= sult \ > > -no-reboot \ > > -monitor none \ > > -kernel /home/zx2c4/Projects/wireguard-linux/tools/testing/selft= ests/wireguard/qemu/build/riscv64/kernel/arch/riscv/boot/Image > > > > OpenSBI v1.2 > > ____ _____ ____ _____ > > / __ \ / ____| _ \_ _| > > | | | |_ __ ___ _ __ | (___ | |_) || | > > | | | | '_ \ / _ \ '_ \ \___ \| _ < | | > > | |__| | |_) | __/ | | |____) | |_) || |_ > > \____/| .__/ \___|_| |_|_____/|____/_____| > > | | > > |_| > > > > Platform Name : riscv-virtio,qemu > > Platform Features : medeleg > > Platform HART Count : 4 > > Platform IPI Device : aclint-mswi > > Platform Timer Device : aclint-mtimer @ 10000000Hz > > Platform Console Device : uart8250 > > Platform HSM Device : --- > > Platform PMU Device : --- > > Platform Reboot Device : sifive_test > > Platform Shutdown Device : sifive_test > > Firmware Base : 0x80000000 > > Firmware Size : 236 KB > > Runtime SBI Version : 1.0 > > > > Domain0 Name : root > > Domain0 Boot HART : 0 > > Domain0 HARTs : 0*,1*,2*,3* > > Domain0 Region00 : 0x0000000002000000-0x000000000200ffff (I) > > Domain0 Region01 : 0x0000000080000000-0x000000008003ffff () > > Domain0 Region02 : 0x0000000000000000-0xffffffffffffffff (R,W,= X) > > Domain0 Next Address : 0x0000000080200000 > > Domain0 Next Arg1 : 0x000000008fe00000 > > Domain0 Next Mode : S-mode > > Domain0 SysReset : yes > > > > Boot HART ID : 0 > > Boot HART Domain : root > > Boot HART Priv Version : v1.12 > > Boot HART Base ISA : rv64imafdch > > Boot HART ISA Extensions : time,sstc > > Boot HART PMP Count : 16 > > Boot HART PMP Granularity : 4 > > Boot HART PMP Address Bits: 54 > > Boot HART MHPM Count : 16 > > Boot HART MIDELEG : 0x0000000000001666 > > Boot HART MEDELEG : 0x0000000000f0b509 > > [terminates/hangs here] > > > > _______________________________________________ > > linux-riscv mailing list > > linux-riscv@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-riscv --=20 Best Regards Guo Ren