Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp332897pxk; Wed, 2 Sep 2020 02:35:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLS3oPKJRraZg0yoZ3WQx56SNVHxPNkYNeiqbFnLulCoUoM1x9eeuIQSUsId8cIOteuk3+ X-Received: by 2002:a17:906:2686:: with SMTP id t6mr5301721ejc.406.1599039323400; Wed, 02 Sep 2020 02:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599039323; cv=none; d=google.com; s=arc-20160816; b=j7q4DaV82tvqAYZ3Cu1G1OaLmluecATcmaWlMct4AqHy3DbqEMIeJ3bsSZ7XMN+Vbu C6p8He49tmdb/g4FgAKeWOxPUSnD1huJcL6UORhCueTQ131MsRdv6tM35RcFWZYBIrEu 0YCXNkpxlZxJg0I/kNqYn2pbvn/c3hyZ4FozSWUlVnH9Cunp6k5cbC6iVaokxnmVDBbA mO2VHEs5LFGCfe8s1e4Go61a0lFc0VJ8UNsb+/qz1NHFbV9agP5SKSGz7wpt93+6xG33 tEMnnN9ag1toIvEFxgwiP+r1cu5MV47czKYcb9GVEEarVzR19ylUU7MCnOGL5lovJJna rlZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=Vjxix3F4bdIBumMKAKRML8mxtZZR8iBMH8FoSH6/zyU=; b=zCTAp5KHM7o0b4X9JHWd4zrsfI1LrgFEgk0dm3FmDCh+3ehQ2j/ZkinAWDODKbBX/X gvGo6qKl9wDOanaAGXsprDhIBGzQSNZg8R71ds/Ssfja4BR3GtHPkqDxUNQiIJ94/XF/ GL5z8lYhtsXltI5d/a/F9WHRww3HgNIhSsLemiE5yb8QZM73jQeTGWqCzj2kb9wf2qOe ktnLhgtoXz89Dt8nSjeJyT3kf9vQiAjQMntUzd2ukzJkzkuPyuFN02Tc+5CcWJwmlZnI G6PDcvjVaVaa93gh/03vt5zSV9LrTjXLMYJhgnQWu1BRGDdG53rn6r6e6z+aSR3T3+yy 5sBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si2342531ejf.115.2020.09.02.02.35.00; Wed, 02 Sep 2020 02:35:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726384AbgIBJcQ (ORCPT + 99 others); Wed, 2 Sep 2020 05:32:16 -0400 Received: from mx2.suse.de ([195.135.220.15]:34788 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726173AbgIBJcP (ORCPT ); Wed, 2 Sep 2020 05:32:15 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id F3008B68E; Wed, 2 Sep 2020 09:32:14 +0000 (UTC) Date: Wed, 2 Sep 2020 11:32:13 +0200 (CEST) From: Miroslav Benes To: Mark Brown cc: Catalin Marinas , Will Deacon , Vasily Gorbik , Heiko Carstens , Borislav Petkov , Thomas Gleixner , "H. Peter Anvin" , Christian Borntraeger , Ingo Molnar , Jiri Slaby , x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/3] arm64: stacktrace: Convert to ARCH_STACKWALK In-Reply-To: <20200819124913.37261-4-broonie@kernel.org> Message-ID: References: <20200819124913.37261-1-broonie@kernel.org> <20200819124913.37261-4-broonie@kernel.org> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, it could be a silly question, but better to ask... > + if (regs) > + start_backtrace(&frame, regs->regs[29], regs->pc); > + else > + start_backtrace(&frame, thread_saved_fp(task), > + thread_saved_pc(task)); Would this also work for task == current? Given that the original code had > - start_backtrace(&frame, > - (unsigned long)__builtin_frame_address(0), > - (unsigned long)__save_stack_trace); for the case, which seems correct (but I don't know much about arm64 arch in the kernel). Otherwise, I did not spot anything suspicious or wrong. Regards Miroslav