Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp3698079rwp; Sat, 15 Jul 2023 07:44:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlG02myQgfuR36Y4MXGWYZuD5qCIuf8eCv61XlSrtQjfg4ACfmo8IfK3v5692W1stvvSU7Hr X-Received: by 2002:a05:6a20:42a9:b0:10c:7676:73af with SMTP id o41-20020a056a2042a900b0010c767673afmr8211879pzj.53.1689432280792; Sat, 15 Jul 2023 07:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689432280; cv=none; d=google.com; s=arc-20160816; b=d5AVkJWeZ+p5bDKK6mwhV3UWoXjztO+WK/3jkuMtknyUTWzFg6XnjVXps0QsUF3pj6 mSxjR63JuYenGzgodVvFns+1OeezUJ+ak5xaxDJ1VSCiUPkKi8N2lgKYCLQNF0Bvaq0b DDxQjk60yX5AFiWnZdHKTP6EyNJS+Rq5ShP/yMY6cpgHQ42bR52p8TfIkZXcFjAwDppO YKypidZJJ7S+8lmp2TA1U1FsIaC97pQSqt5qFA8/w7C8U2htG3ofQgGVsGCkeDmxbfLZ s57tgoB/oYFrgSk7p5BbDYklC3kni2n0WQBTfKPnq19cSfoMMO6gkrJVAwW21Ry7oG2f yTiQ== 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=Tv7uXgDiosc5P5+s5Dm+Wxq+qunq/i4X0Rsh7CDYvP8=; fh=o5qhVyUr51v1a0LOgoENz9RS8A21U9fksWEStm/xkug=; b=ZLfY/VKUOo6AsAVB9ltzg8yFZUaW4TDTz7TYMjy3wVbZbBTn6PfeeOHbNNrM3pOPA4 o9pIOc4mtE73UpIX/aoA93+PItD53okQT0CuaXd33HkQBJX2TrW3QKhIiyT+7EEdZ2mo zFZL8oErNIab35Hnax8t/JUkwcwNjG+FYTGDn8qh75X085cihst0RArbzoWKvS3aAAqp UHdHsXw/S1gLAlYjfWR53NEXLtzuoStLcnkpfZmxOKSfsIh8arU4v795zjWysWwzEZ3+ JdMQZKno5kA3sjHhQ8AjpbpnDfxdKEVY0YQ0D/DUM4kNdQWqEXGxmzsNFsLRmWc9CMly /gsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Zy3rfFDF; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v65-20020a632f44000000b0054fd9e9b862si8638896pgv.232.2023.07.15.07.44.26; Sat, 15 Jul 2023 07:44:40 -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=@linuxfoundation.org header.s=korg header.b=Zy3rfFDF; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230184AbjGOOTl (ORCPT + 99 others); Sat, 15 Jul 2023 10:19:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229919AbjGOOTk (ORCPT ); Sat, 15 Jul 2023 10:19:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEC1B1BDA; Sat, 15 Jul 2023 07:19:38 -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 6E4AF60A26; Sat, 15 Jul 2023 14:19:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5476CC433C8; Sat, 15 Jul 2023 14:19:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689430777; bh=+Zc6MkX4Je1o4oRfyxtSq9WhWkGFgbpOiD6Q71QeBYI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Zy3rfFDF9/RcEDqv/V++Mi0WYdWrN0WzDeIRaOAJtqNziHBGyxmQCrOpfIJF193ZZ SKIEF2VT9uOU3GbnWIiyD2NLSdjwASvzp6befCgGeHVVK+/oBns/kK6RspFIzyOxZ5 BK1HNxTZ1+H1pH/VVp3C7+hLEHvSf9B2R5sKe7uM= Date: Sat, 15 Jul 2023 16:19:33 +0200 From: Greg KH To: guoren@kernel.org Cc: palmer@rivosinc.com, paul.walmsley@sifive.com, falcon@tinylab.org, bjorn@kernel.org, conor.dooley@microchip.com, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, stable@vger.kernel.org, Guo Ren Subject: Re: [PATCH 2/2] riscv: stack: Fixup independent softirq stack for CONFIG_FRAME_POINTER=n Message-ID: <2023071528-traverse-parting-14b2@gregkh> References: <20230715134552.3437933-1-guoren@kernel.org> <20230715134552.3437933-3-guoren@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230715134552.3437933-3-guoren@kernel.org> 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,T_SCC_BODY_TEXT_LINE, 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 Sat, Jul 15, 2023 at 09:45:52AM -0400, guoren@kernel.org wrote: > From: Guo Ren > > The independent softirq stack uses s0 to save & restore sp, but s0 would > be corrupted when CONFIG_FRAME_POINTER=n. So add s0 in the clobber list > to fix the problem. > > Fixes: dd69d07a5a6c ("riscv: stack: Support HAVE_SOFTIRQ_ON_OWN_STACK") > Reported-by: Zhangjin Wu > Signed-off-by: Guo Ren > Signed-off-by: Guo Ren > --- > arch/riscv/kernel/irq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/riscv/kernel/irq.c b/arch/riscv/kernel/irq.c > index d0577cc6a081..0b58720109db 100644 > --- a/arch/riscv/kernel/irq.c > +++ b/arch/riscv/kernel/irq.c > @@ -83,7 +83,7 @@ void do_softirq_own_stack(void) > : > : [sp] "r" (sp) > : "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", > - "t0", "t1", "t2", "t3", "t4", "t5", "t6", > + "t0", "t1", "t2", "t3", "t4", "t5", "t6", "s0", > "memory"); > } else > #endif > -- > 2.36.1 > This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.