Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp836494pxb; Thu, 26 Aug 2021 16:21:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyj5u/26axTNiGKXhtHMRZ3IJbcEN7XENL3XtNE316qbSf0/ThAv271ZLSRzpP4kD5JqIwn X-Received: by 2002:a50:cdcb:: with SMTP id h11mr6961613edj.366.1630020068941; Thu, 26 Aug 2021 16:21:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630020068; cv=none; d=google.com; s=arc-20160816; b=v4Byoe+mhX+HM1C01eXH9Yv86oOcaM0PbsaGeOatg7SSZUVVS2dR5biovMW/7Ree6x tmLJQFXpd78ddSy/QeuYkJ95Rd1nPFKyonmr2NkCKeVBMqmAy06+BUVjmT0nSMoSOggd HNbLQXWK8OvOMhxYwwbDwi+65VyGWSn7v0ERXZq42/YzQ2+wtDTcMy7zxVwAMwwIuSSn /s9Y7/63DMyZIdsShjPsxZRzI1fLN7biZI9iXT4CVkZ4g4Rb6KyhtGLGAYrjSeE+nZ4Z aaxoiq6ToQqqqYK4ejNTthQ7kRNZndY7+8nfroEnEg9SNf6dIDhKp8iY1ZbOFZuPgX+g hHNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-filter; bh=TNk71oULKpnJVXpIAkpW4dxCRZZFfi0WY/GV0rQ4Blw=; b=nUkgLoo2fFOmLevrfH/FR8eRNTBjeuEIqC29vo4C8F/zuzHwBAaODVcS+vfH8bMW/x oCbe65J0A0J8VKmRB5PUzmnSIyoPebgpC8t8AR970/lTeKINSI2EgfzPJkoCp4wyEl41 LjRpygrWyxKZVNK0++MxgXwPgmMmQnyR63Cb7lyh9m4OIA26o1uvQcNkkWVmai3UsoNX s5tT+086HXlGzmCBL4WqhUVE0tWfnDrGlDR/HuoXdTm283XdIa+oEW1pgJdxIRjy4OsS nK8EctPMcbjm0jsu2f7Ikx49Gl2ImhzoSIFAI/AlwwOmiE72qoyp/NN6K+L6/IG9NwgY SK0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=sDrPH0DI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si4270307ejf.597.2021.08.26.16.20.42; Thu, 26 Aug 2021 16:21:08 -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; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=sDrPH0DI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243722AbhHZXT6 (ORCPT + 99 others); Thu, 26 Aug 2021 19:19:58 -0400 Received: from linux.microsoft.com ([13.77.154.182]:36022 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234555AbhHZXT5 (ORCPT ); Thu, 26 Aug 2021 19:19:57 -0400 Received: from [192.168.254.32] (unknown [47.187.212.181]) by linux.microsoft.com (Postfix) with ESMTPSA id 8A5A420B861E; Thu, 26 Aug 2021 16:19:08 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8A5A420B861E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1630019949; bh=TNk71oULKpnJVXpIAkpW4dxCRZZFfi0WY/GV0rQ4Blw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=sDrPH0DIYqzWljDeynFQ2cHN8Shft6uXuyS4L8KXZr4/VtcLamVAxWh5cQW0bRTzZ jRY4voAsLQE2MfrL7Lxe/Oqs/DQ0JxZFajO2NvhnOok99Bv9D9JJvywU8FT7g7p6vD vtYq3ii0I1E1jMYUrrV4jbhwRbx90qfjp7fFyjq4= Subject: Re: [RFC PATCH v8 2/4] arm64: Reorganize the unwinder code for better consistency and maintenance To: Mark Brown Cc: mark.rutland@arm.com, jpoimboe@redhat.com, ardb@kernel.org, nobuta.keiya@fujitsu.com, sjitindarsingh@gmail.com, catalin.marinas@arm.com, will@kernel.org, jmorris@namei.org, pasha.tatashin@soleen.com, jthierry@redhat.com, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210812190603.25326-1-madvenka@linux.microsoft.com> <20210812190603.25326-3-madvenka@linux.microsoft.com> From: "Madhavan T. Venkataraman" Message-ID: Date: Thu, 26 Aug 2021 18:19:07 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/26/21 10:46 AM, Mark Brown wrote: > On Thu, Aug 12, 2021 at 02:06:01PM -0500, madvenka@linux.microsoft.com wrote: > >> Renaming of unwinder functions >> ============================== > >> Rename unwinder functions to unwind_*() similar to other architectures >> for naming consistency. More on this below. > > This feels like it could probably do with splitting up a bit for > reviewability, several of these headers you've got in the commit > logs look like they could be separate commits. Splitting things > up does help with reviewability, having only one change to keep > in mind at once is a lot less cognative load. > >> Replace walk_stackframe() with unwind() >> ======================================= >> >> walk_stackframe() contains the unwinder loop that walks the stack >> frames. Currently, start_backtrace() and walk_stackframe() are called >> separately. They should be combined in the same function. Also, the >> loop in walk_stackframe() should be simplified and should look like >> the unwind loops in other architectures such as X86 and S390. > > This definitely seems like a separate change. > OK. I will take a look at splitting the patch. I am also requesting a review of the sym_code special section approach. I know that you have already approved it. I wanted one more vote. Then, I can remove the "RFC" word from the title and then it will be just a code review of the patch series. Mark Rutland, Do you also approve the idea of placing unreliable functions (from an unwind perspective) in a special section and using that in the unwinder for reliable stack trace? Thanks. Madhavan