Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3798958imu; Mon, 14 Jan 2019 09:12:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN6MHadm50Ox5lV/Nv3tTlm6CC2pn99x6vK/tctcL00Q5ErngtaC568uf96nKkYitYnTBDS0 X-Received: by 2002:a62:9111:: with SMTP id l17mr26318489pfe.200.1547485940896; Mon, 14 Jan 2019 09:12:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547485940; cv=none; d=google.com; s=arc-20160816; b=u2hvBecSza90BeaUoRQ35fvX8WU6HTCI797MzG4QawlNeO4Nn/OUjp1crSt9A6W73p GicHMWme1vGvlXqcF4q9drLRdFugDQOJXQFCBiz3HWbaEkbLMNdykBvkE2C0kzmP/RGE 5m3jBu2PmcuBh9swJUlv6c+YhGkU63oavHC+jn6JxmCVVhepinl/+Q5MuzXM5IYsuINz yfGwi/PwzvA6cBu6eo5vKgjBCqcYvn6SqCkDlSWgh7XXyTysmFqvRSxjixmDvN7S2Vu5 QwB5ZPizggiqm+uFkdNBuGaycV2YN44yEh38dX79o6UWxaEUz8/anOh0VDXrVWANI11c WS9Q== 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; bh=t2mG4PGOf6oNtqihoO/GmTtHXujyS9pe3w4YFiD55aw=; b=k3GHKex3an5LkhiKV1NgvwKcmKhTlqCiIB9Jg39j/Jlqpr6SbBEG2S/2HuUddgJH5l AJKMcdYDSNPqG+cdTqKHY99cQR6/PlsJ/2IWZRFcuWQU47Hx4Epjcn5SrZMd8nPHw3MY MU1HjzqeTAcH0WWTNJ47GBAEh83rPjS/R0j80z3kx1JAMbsu0KiLpqdsPYKYkWbSEvPu jatBDFbzArmXV/W1RsiAosm7ehUOQZUajE0YrFEPpQ5Pjju4A5tB8ybV0msf6yMuKM9V zhTPCh8Ok63Kp4GOQHLnWbqfmHIiHAY1Lg02RFDKXJQM+DCmdKjTLdo+pKcerZHLDEB7 +2Dg== 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 w185si678500pgd.518.2019.01.14.09.12.04; Mon, 14 Jan 2019 09:12:20 -0800 (PST) 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 S1726930AbfANRJi (ORCPT + 99 others); Mon, 14 Jan 2019 12:09:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:32891 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726906AbfANRJi (ORCPT ); Mon, 14 Jan 2019 12:09:38 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C17E49D432; Mon, 14 Jan 2019 17:09:37 +0000 (UTC) Received: from treble (ovpn-120-232.rdu2.redhat.com [10.10.120.232]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7B7565D744; Mon, 14 Jan 2019 17:09:34 +0000 (UTC) Date: Mon, 14 Jan 2019 11:09:32 -0600 From: Josh Poimboeuf To: Joe Lawrence Cc: Nicolai Stange , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, live-patching@vger.kernel.org, Torsten Duwe , Michael Ellerman , Jiri Kosina , Balbir Singh Subject: Re: ppc64le reliable stack unwinder and scheduled tasks Message-ID: <20190114170932.awhuv7livfxhrcee@treble> References: <7f468285-b149-37e2-e782-c9e538b997a9@redhat.com> <87bm4ocbbt.fsf@suse.de> <20190111010808.GA17858@redhat.com> <87fttzbpid.fsf@suse.de> <20190114040937.GA6739@redhat.com> <877ef7bt6j.fsf@suse.de> <20190114164659.GA18643@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190114164659.GA18643@redhat.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 14 Jan 2019 17:09:38 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 14, 2019 at 11:46:59AM -0500, Joe Lawrence wrote: > @@ -158,11 +158,21 @@ save_stack_trace_tsk_reliable(struct task_struct *tsk, > return 1; /* invalid backlink, too far up. */ > } > > + /* We can only trust the bottom frame's backlink, the rest > + * of the frame may be uninitialized, continue to the next. */ > + if (firstframe--) > + goto next; Won't this decrement firstframe on every iteration, so when firstframe is 0, it will decrement it to -1, causing it to 'goto next' on all future iterations? -- Josh