Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6926115rwl; Wed, 22 Mar 2023 18:36:50 -0700 (PDT) X-Google-Smtp-Source: AK7set8WL+sEp69HJHLwhWZaEzYtmqm/zrH6og4jNhe2YeqjIMS9O6CkUHtsrZLJIf5So8US4R2O X-Received: by 2002:a05:6a20:81c8:b0:db:df13:4f73 with SMTP id r8-20020a056a2081c800b000dbdf134f73mr1150517pzb.26.1679535410230; Wed, 22 Mar 2023 18:36:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679535410; cv=none; d=google.com; s=arc-20160816; b=jWH1lkl1YrNQbezC/3XKhSiVPilw5wfqU+jO76DrfXKumcXF75OY3faRecMA++JNzd Nmyb3JZpM8FtyYF5qgG50BN/K476AhLnjWCZ2VRSqMhp9Qd4ueKc7wjIzI7SPjkFCeZ2 YOEPEZO/EAwcpozGf6VNZwQf8ucanPh+0265Z0ru8huahlVEA+aZFZ9cS3eDBpEaSrU/ AW10/yqyNhld7sUCA0X4JytFouleKRM1UUGJ5/fAK+wYVVm8DEosmuIFimXLUtEhViSA ne40ijq5t1lKdpcLIAD6Rd6lS26MvYhVND3CI8Bu/MXd0rZJNilbzrtOX3Kz2mVeubko KBTQ== 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=+vlNxsLKgegiKpM60yJ1PswzD9m10wJ/SVzO7cih6mE=; b=kD1ay55hEShUO/w1Qt1K4XpnZ8AqjLqg/THhsj/DAodosSxMPmqymmu0/ZdF8klIDV Pw/IeBsSLyQnFx4ks9VV1OUvu3r6GUJbWiu09EhEDuQ92vvSopHMKWhtb8ol61bF8pfB 3qaMs60IJQWRlXx8dA7DCI3HrmhAeKPVdlZuNluyPznkDrpTwiDSDzYOocfj0Y/CfZ9L LPNYJbnA1Ni0bQqTnmm+z842DfMnqDH4MTOUi4nlWjKcfUBF+A/mpNp/HnqpbVOHuqqX /wpPkDdujqh0zA4yU+EpJieZQa0kGexAqk9sBN+SdTUPZ4+rBwbM15M6DxVMFY3USRRF jStw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Wh/4SRvy"; 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 r27-20020aa79edb000000b006246677ca3dsi16277935pfq.287.2023.03.22.18.36.37; Wed, 22 Mar 2023 18:36:50 -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="Wh/4SRvy"; 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 S230004AbjCWBc5 (ORCPT + 99 others); Wed, 22 Mar 2023 21:32:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbjCWBc4 (ORCPT ); Wed, 22 Mar 2023 21:32:56 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BB7D30EB0; Wed, 22 Mar 2023 18:32:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 760C0B81B97; Thu, 23 Mar 2023 01:31:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30584C4339C; Thu, 23 Mar 2023 01:31:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679535063; bh=Ot5hvcQeLnVZ+qQdLf6laKQ2NtMhh4KUe2xmfxdFmpA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Wh/4SRvy1oGFHxG1F3VeFwKlwlrfEqd8MXR+i/5CJAn7DvNqjbMUQDRjYxt/vSUaR u1gQA0y8Bx5lbAzUt70i4QfVzstMFPya3XxrK3uwQHynbGE/ZaUx5Pk4d+n9bGXV0v YBLgv2l3STg3fzIepLNbzsNxkUdXJ8kqNKzJDcO+ByNK4bvJPNp8kL0ICi4JIlzFr8 +6J+qGIXyXJx67NXGzo1XBz6GNjt2GetV6GRDMqZHznxDAg4Ox+YVzn9trfUjeZIBL slbneUV0Oa6TV0wXvzjcz0hX+LMKGnLsW1FLbyARSDuBjjF0Jk5twGUCzubP802quE ZSpbwHGH06h3g== Received: by mail-ed1-f52.google.com with SMTP id i5so33498038eda.0; Wed, 22 Mar 2023 18:31:03 -0700 (PDT) X-Gm-Message-State: AO0yUKVnDAuXeIg0fgmg2E3le5W/OUjhCwzyfY9dvWd7PfHsSgbITeBn bkQA+ouRcccHpZXmrySaNHHzPD85WnG+Wo9bfFM= X-Received: by 2002:a17:907:784:b0:92f:b348:8f93 with SMTP id xd4-20020a170907078400b0092fb3488f93mr4409449ejb.10.1679535061387; Wed, 22 Mar 2023 18:31:01 -0700 (PDT) MIME-Version: 1.0 References: <1679380154-20308-1-git-send-email-yangtiezhu@loongson.cn> <253a5dfcb7e41e44d15232e1891e7ea9d39dc953.camel@xry111.site> In-Reply-To: From: Huacai Chen Date: Thu, 23 Mar 2023 09:30:49 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] LoongArch: Check unwind_error() in arch_stack_walk() To: Guenter Roeck Cc: stable , Xi Ruoyao , Tiezhu Yang , WANG Xuerui , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 OK, thanks. Huacai On Wed, Mar 22, 2023 at 10:20=E2=80=AFAM Guenter Roeck = wrote: > > On Wed, Mar 22, 2023 at 08:50:07AM +0800, Huacai Chen wrote: > > On Tue, Mar 21, 2023 at 10:25=E2=80=AFPM Guenter Roeck wrote: > > > > > > On Tue, Mar 21, 2023 at 08:35:34PM +0800, Xi Ruoyao wrote: > > > > On Tue, 2023-03-21 at 14:29 +0800, Tiezhu Yang wrote: > > > > > We can see the following messages with CONFIG_PROVE_LOCKING=3Dy o= n > > > > > LoongArch: > > > > > > > > > > BUG: MAX_STACK_TRACE_ENTRIES too low! > > > > > turning off the locking correctness validator. > > > > > > > > > > This is because stack_trace_save() returns a big value after call > > > > > arch_stack_walk(), here is the call trace: > > > > > > > > > > save_trace() > > > > > stack_trace_save() > > > > > arch_stack_walk() > > > > > stack_trace_consume_entry() > > > > > > > > > > arch_stack_walk() should return immediately if unwind_next_frame(= ) > > > > > failed, no need to do the useless loops to increase the value of > > > > > c->len in stack_trace_consume_entry(), then we can fix the above > > > > > problem. > > > > > > > > > > Reported-by: Guenter Roeck > > > > > Link: https://lore.kernel.org/all/8a44ad71-68d2-4926-892f-72bfc7a= 67e2a@roeck-us.net/ > > > > > Signed-off-by: Tiezhu Yang > > > > > > > > The fix makes sense, but I'm asking the same question again (sorry = if > > > > it's noisy): should we Cc stable@vger.kernel.org and/or make a PR f= or > > > > 6.3? > > > > > > > > To me a bug fixes should be backported into all stable branches aff= ected > > > > by the bug, unless there is some serious difficulty. As 6.3 releas= e > > > > will work on launched 3A5000 boards out-of-box, people may want to = stop > > > > staying on the leading edge and use a LTS/stable release series. We > > > > can't just say (or behave like) "we don't backport, please use late= st > > > > mainline" IMO :). > > > > > > It is a bug fix, isn't it ? It should be backported to v6.1+. Otherwi= se, > > > if your policy is to not backport bug fixes, I might as well stop tes= ting > > > loongarch on all but the most recent kernel branch. Let me know if th= is is > > > what you want. If so, I think you should let all other regression tes= ters > > > know that they should only test loongarch on mainline and possibly on > > > linux-next. > > This is of course a bug fix, but should Tiezhu resend this patch? Or > > just replying to this message with CC stable@vger.kernel.org is > > enough? > > > > Normally the maintainer, before sending a pull request to Linus, would ad= d > "Cc: stable@vger.kernel.org" to the patch. Actually sending the patch to > the stable@ mailing list is only necessary if it was applied to the > upstream kernel without Cc: stable@ in the commit message. > > Guenter