Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp416884imm; Fri, 10 Aug 2018 13:45:55 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyT90NckyhZ3o/O8f1ofmOoSIrIFr7N03hHefZGGCpeuZD8I757G0K0560Xjv0aFUPK/vXQ X-Received: by 2002:a17:902:4503:: with SMTP id m3-v6mr7517698pld.168.1533933955458; Fri, 10 Aug 2018 13:45:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533933955; cv=none; d=google.com; s=arc-20160816; b=bbOce94kd9Eo7hcuVGHmV+D85VW4qxcxjl92gBA4xG5vRLEXEMkgTlLpVHFSQKaulP CxH9rxBSzNAYsnB7O2plL22W050aBS7sH1hrRfgonU+yj06l3V1X9DKWZMnwC/IfMNoI Uey8yq3V3kBLil1q7NXwfD63iUh4FHzHBPenkpQaa99NoWOZXgnBM1AJ3ZPhbb1ngjov BpkBpH/xhCo6yt1fo7rPQC3hG94qD2pdLhIXYdBal/9gNKYVLcHDtVeI5w/leW+Oua8A n5xEIIJTQFzwTqP8bUFaXh1AkAqGI12ukuNAzz4HaZCc9mwY1//TKqGc94TWGjskWw3e 3DrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Pv00PT4gN66Req5P56hUJAiaMuSW1rcme0BnZyL+N1I=; b=pAfDlDagV45CQExbduIZsAOzHRGVHC+yGRXBxbH8b6IXcejlLaL++UTJ7DdEi8w4ZX Cy2qkotxo7m818AKdH+a1piJ+CXC16iSaR7PWK53UYddndRZXTs7ZltFBCZJtlq3+4Km rz6tWJe8Ezg1opSaoZaeHrXQ7uKeUuXUcdlDzn+wluj0J9W9xJ0p9pDOZxc3PzJ087SF oXHZtYPaMrd87TyoBOIosOE6WmdWT5peBxPYqyXUuC+grv7AtFIzagqWclgrymrEfeqZ YAfIpnm/SepPulFLqTK4dweJ/FNBFkIqCahRGwP4VLOi+KaLPS5mgjGGvL9qFxuScfIg IY7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e66-v6si11073939pfk.198.2018.08.10.13.45.40; Fri, 10 Aug 2018 13:45:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727398AbeHJXQU (ORCPT + 99 others); Fri, 10 Aug 2018 19:16:20 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:57608 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727182AbeHJXQU (ORCPT ); Fri, 10 Aug 2018 19:16:20 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8BBF2738EF; Fri, 10 Aug 2018 20:44:52 +0000 (UTC) Received: from treble (ovpn-122-120.rdu2.redhat.com [10.10.122.120]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2F71D215670D; Fri, 10 Aug 2018 20:44:51 +0000 (UTC) Date: Fri, 10 Aug 2018 15:44:49 -0500 From: Josh Poimboeuf To: Torsten Duwe Cc: Will Deacon , Catalin Marinas , Julien Thierry , Steven Rostedt , Ingo Molnar , Ard Biesheuvel , Arnd Bergmann , AKASHI Takahiro , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org Subject: Re: [PATCH 3/3] arm64: reliable stacktraces Message-ID: <20180810204449.4asgonydn6yfb6kq@treble> References: <20180810160043.9E45568C76@newverein.lst.de> <20180810160311.C988D68CF4@newverein.lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180810160311.C988D68CF4@newverein.lst.de> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Fri, 10 Aug 2018 20:44:52 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Fri, 10 Aug 2018 20:44:52 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jpoimboe@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 10, 2018 at 06:03:11PM +0200, Torsten Duwe wrote: > This is more an RFC in the original sense: is this basically > the correct approach? (as I had to tweak the API a bit). > > In particular the code does not detect interrupts and exception > frames, and does not yet check whether the code address is valid. > The latter check would also have to be omitted for the latest frame > on other tasks' stacks. This would require some more tweaking. > > unwind_frame() now reports whether we had to stop normally or due to > an error condition; walk_stackframe() will pass that info. > __save_stack_trace() is used for a start to check the validity of a > frame; maybe save_stack_trace_tsk_reliable() will need its own callback. > > Any comments welcome. > > Signed-off-by: Torsten Duwe Before we do this we'll need the same analysis we did for ppc64le to figure out if objtool is needed. -- Josh