Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp419208rwb; Fri, 4 Aug 2023 15:14:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjRILqhhh4e2GLJZpoUWnxYwRJdCFQR+BQTyr8P8K73LgIH+VW6XzqJUCmmICZOT6/Syr9 X-Received: by 2002:a17:902:7683:b0:1bb:141c:3034 with SMTP id m3-20020a170902768300b001bb141c3034mr2837111pll.12.1691187295316; Fri, 04 Aug 2023 15:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691187295; cv=none; d=google.com; s=arc-20160816; b=Vd+deihadcl8UDOosiZCCHxhlU7lQ6Ykm/FiWq/YHOSrQB9YSNLNNNrUwRHkW8Rz1M APbgiGnHRKou6iXMe1G3m9TVNNnKnmIZ+HfBR9SDeKQCEY/McXzzSQEAjFZGpEZhIqCp WdL/UjsZYjYN/Ln8qc37WB25/LgcISYV9aHt13/vUZu4fHW/cjyklxEuYAKVYHa01PXH HFxE3I1+VEHF/82ZqnxgS2uZnBLxOXKo3jjz0lgaqOfE55VB7DGkNW85b5YgszGciRM7 CZj+kDxzkauq/Wc3NGienKOv6fJKsTTrsknwec9m7t/8NGo5WsXBmw1+CI99ODG91Mnf A7xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mDnUTGH0jIyF0W35Fz5jCv0LwPzbjAoFysVz0wgH//g=; fh=uraizIcz6EFtM22qJv+bGs/utvwroRIElltOQZExEGA=; b=W5l73GzpKjvaVeHC4i2yULN0/oq5uWABZLZcwdAuTFamuZsfyA9H1lxrFmqToJcPD+ cWz9vCdjkk+AbRhqepXEmKfa1Y03zJ7QMPeLwmkQtBozUTasYja5FUmPrUTM+Ju+4SGm 2uQXmBWBHIVeIUS9c3EsaDYufwwjTqNCDaaDLAyl/6zE1KPuWhHPuH79BHfMhMZlCg0D vby3n6Be4mvGm2ohPw3Fzf3ztc0AvHFAXYKk7anX1IAOEh2P7Q6driDjQZlaz/jWtPqG kgvcGtNZW1xPc8VXBbAWGXxPwaKvIAdqPloSI8R5qylX0xImVYECZ+FUOlSqpDTh2D9O KkEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FTFavO9o; 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 lj15-20020a17090b344f00b0026831f63e8csi4848819pjb.52.2023.08.04.15.14.43; Fri, 04 Aug 2023 15:14:55 -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=FTFavO9o; 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 S230036AbjHDVls (ORCPT + 99 others); Fri, 4 Aug 2023 17:41:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230010AbjHDVlr (ORCPT ); Fri, 4 Aug 2023 17:41:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7F5411B; Fri, 4 Aug 2023 14:41:45 -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) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 38F3362133; Fri, 4 Aug 2023 21:41:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07A5EC433C8; Fri, 4 Aug 2023 21:41:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691185304; bh=4oZZa6/5J3tp2hGps780vjomCCoCv4gQ/jJS4HuXwbs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FTFavO9oc9MXJo2lBxr2UT7TIuntlcsQxmz40Y+JN3DLkuLYB9SdHKslOP3sIxjEL qcncTBpfnCvTKoCteG7SLkWFl7o35Vw+bOLN2frpWJ8f6vN9xHyUtKKkjFb7YI2X+e 35tHBl/2guVAsXnDWzJ/KXl7kF0tqoc8A7IWsH0I5WarhblEJ4YzoD+oOaD46xlQ9z Z4oLkvXhZT5EDD5f9u7F44dF3niJPd3L0j3l8s2dRbY61WPxVvFYFOLOTi9QaBbWeL 8FpZMWmrVQrSKbwOeZUV5x9+IgfWs/SGyCqGXCwfWV4WDNJEZ2yfNHkX31G7PEoVV9 JY+33OX+BH3pw== Date: Fri, 4 Aug 2023 22:41:39 +0100 From: Conor Dooley To: "Jason A. Donenfeld" Cc: guoren@kernel.org, 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 Subject: Re: [PATCH -next V13 1/3] riscv: stack: Support HAVE_IRQ_EXIT_ON_IRQ_STACK Message-ID: <20230804-hut-morbidity-126fc9158f38@spud> References: <20230614013018.2168426-1-guoren@kernel.org> <20230614013018.2168426-2-guoren@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MVOpWrz7M88U4iQD" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 --MVOpWrz7M88U4iQD Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 overflo= ws. > > > 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 and > > 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@kernel.= org/=20 Hopefully that's it, Conor. > > > > Thanks, > > Jason >=20 > And, err, I guess I failed to describe what's broken exactly. Here's > what happens: >=20 > 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/selftests/= wireguard/qemu/build/riscv64/result,id=3Dresult > \ > -device virtio-serial-device -device virtserialport,chardev=3Dresu= lt \ > -no-reboot \ > -monitor none \ > -kernel /home/zx2c4/Projects/wireguard-linux/tools/testing/selftes= ts/wireguard/qemu/build/riscv64/kernel/arch/riscv/boot/Image >=20 > OpenSBI v1.2 > ____ _____ ____ _____ > / __ \ / ____| _ \_ _| > | | | |_ __ ___ _ __ | (___ | |_) || | > | | | | '_ \ / _ \ '_ \ \___ \| _ < | | > | |__| | |_) | __/ | | |____) | |_) || |_ > \____/| .__/ \___|_| |_|_____/|____/_____| > | | > |_| >=20 > 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 >=20 > 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 >=20 > 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] >=20 > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv --MVOpWrz7M88U4iQD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZM1wkwAKCRB4tDGHoIJi 0uGmAP9waGa5m8QD9MFBBMtItnHQGucKNSvlZSDTpClaKux1DgEA6vRRGJ384u7h kUZzyGaYLyDuarTcLDTU2Fg+7RcnRwo= =kOIj -----END PGP SIGNATURE----- --MVOpWrz7M88U4iQD--