Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp88840rwb; Tue, 8 Nov 2022 22:52:08 -0800 (PST) X-Google-Smtp-Source: AMsMyM6AUBGGQeFIw301qy7pptQxU9T2EP3AXzycuNbJqNABBsPruVubVHDGUb7PmM2PDZ/Fw6K0 X-Received: by 2002:a17:903:11c3:b0:178:aec1:189c with SMTP id q3-20020a17090311c300b00178aec1189cmr58576733plh.136.1667976728398; Tue, 08 Nov 2022 22:52:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667976728; cv=none; d=google.com; s=arc-20160816; b=xzTbP0TM2DqyGoYNEbwWImn0wrtm4XsMMz84C44tuZE3nZQhxiG4dvLpKIWGkYjAI+ kaGknNkX/uuXCWj9aBy5C5VqKUyypJ3CNcLmp/YbFiO4Jj3RMAqf50jdlQRFoUVvRscX uCm92e5Fg5BaIzggxiIjtJ5qp8polLuX4xtOTGc3mRxMHypbMr4H9zh9ltvBUvgEWuzv O54yqX+t4FHilHpVOqSXMZRK2lg85v61/xDzBqZvjn4vYa/v0kg9MbwcjKH5wTKuoeFl Q+2nT8BRx74QDm635UEyz6ghnAwsUXHQEJ4XfAWNM0HH+X5NTJjGjocZO5ruYd42KFXW IT4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=R1UUrpjl0jN7eAj/k+N9ZVzRCBwg2oNJP+LxOIOPYLQ=; b=aI7Tm2j2hiJF7/yDUtkVxQhFqmoTkLtKlPXwPKpZwGppDCJVFiQjI6lR22APYL4iAo C3AkuyFz3apXygLT+WYqvtAFZTuguBPJlsVzxp+oKpMmx+H7+HW0YJJmDoFWQd0vuRI+ G5NLGpahnkWIbTqRw3g/T00xSTxx+IbTbB3AgMqcesrC7qT5tODU0ehK23N8pGsb/OBy +epRiHAzmehbBZlWS1fiF1AzalbcLzpYqAd4wtQyEMqNgnWSv6H9WGufZY/2f5M0RzeN sF3jgKwO4IVJ7TIuWxbU/ktR1Zs45b7wF7g2yGOyiRncyX7MSsnRGTfeT1QcNC+LhYzH eKyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NsCm1Dpb; 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 q6-20020a631f46000000b004626957c3c7si14118233pgm.193.2022.11.08.22.51.54; Tue, 08 Nov 2022 22:52:08 -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=@kernel.org header.s=k20201202 header.b=NsCm1Dpb; 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 S229701AbiKIGtz (ORCPT + 94 others); Wed, 9 Nov 2022 01:49:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbiKIGty (ORCPT ); Wed, 9 Nov 2022 01:49:54 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A75C41741F; Tue, 8 Nov 2022 22:49:53 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 349B761800; Wed, 9 Nov 2022 06:49:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC145C433D6; Wed, 9 Nov 2022 06:49:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667976592; bh=BIrl1NrFxyHLR1IA71W4GKwpqlpYuXilX7sg5vJPyxM=; h=From:To:Cc:Subject:Date:From; b=NsCm1DpbXb5kW9klEWByeP+NTouXw3kZn/1gEo3NqKLiYEqIO8y2D+Ol1smVptbSq /eupKkTVgnG68dWUT8GwIgeNHpLiPVr73dfEhwW17MCbXKJPPSw6p4qhl/JP3cGTjo dqvLwrV478pu2BA0nvjdhWO6SQ8xPag+Or9dzpPg7F70dENFrSloOHritpELHS6q9m ox44rCJpa/tMRN9i4DO63bDTMMDNmt0jIOcBjT/dbxxPsd6U+Wx7qjTcMtw4VMZ3FF BCCcgs/ycVv1BgFBn3iWIMsDU6b9eS6+nBxehsQgHGk8aMh1Jx5Etk1G6xskdQq334 wHtULLzBf07xw== From: guoren@kernel.org To: anup@brainfault.org, paul.walmsley@sifive.com, palmer@dabbelt.com, conor.dooley@microchip.com, heiko@sntech.de, peterz@infradead.org, arnd@arndb.de, linux-arch@vger.kernel.org, keescook@chromium.org, paulmck@kernel.org, frederic@kernel.org, nsaenzju@redhat.com, changbin.du@intel.com, vincent.chen@sifive.com Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Guo Ren Subject: [PATCH 0/2] riscv: stacktrace: A fixup and an optimization Date: Wed, 9 Nov 2022 01:49:35 -0500 Message-Id: <20221109064937.3643993-1-guoren@kernel.org> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 From: Guo Ren First is a fixup for the return address pointer. The second makes walk_stackframe could cross the pt_regs frame. Guo Ren (2): riscv: stacktrace: Fixup ftrace_graph_ret_addr retp argument riscv: stacktrace: Make walk_stackframe cross pt_regs frame arch/riscv/kernel/entry.S | 2 +- arch/riscv/kernel/stacktrace.c | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) -- 2.36.1