Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3839978imu; Mon, 14 Jan 2019 09:56:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN5lDvpMr8x/GLbn3JOw3iMLP8YVK8yKjUAPUXdOan9uFNjN/5sSbx9ydcYHD5z148f4m5LI X-Received: by 2002:a63:4611:: with SMTP id t17mr23769513pga.119.1547488574029; Mon, 14 Jan 2019 09:56:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547488574; cv=none; d=google.com; s=arc-20160816; b=UZZgsoI/JbLI9XUwU16kExb0bB+pYtb8f+8upsrSBKQpf4cN7+uArEBNfTLidOQehz 2/WKlwGKwveOdlsyCxkcjyjMgPaKE6pS+OwHCQl9Cr9wj329o3EkvMW0hXIp5awa/4M2 sNZ42AKgb/ARK1THFh1nZPZ0qjmNCAFHlzVAwExn5mtCJo8s8Ry93Z+dCn8ocg6h11NF y7vpCCJiUHE/YBo8UJi3JqRjHzqLWOnOGMijrDVIlwunbPx6O8RHUYogAgS2YPJ2xchf qh/CF9sOfZeDZNBrxpqnG5/LCcKw+wfQspp1ZSRB+z17BIcnUAWERjUqdEG40pBzu+bD aE9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ldW519MZPU7t37H0l+aSNcs1TnDJXV5l7HyP2S69eCg=; b=mju88vcjO9ERbWHWAFfJH+KUxFTSrM47cIdM/c0StEyFnVHk3eUXmGG1c8HskmNktj m/D2bRFku1n/Oi1CE+MWhvDmGhZ8V86zcM8OHZdANf6Y7mLpu0qnPJNXgBI/DE0MJOzn c6w0JLLTREUZY3y6hfa/QXciF4AR7BswvLx0U1zlRM9Sv/4pEnWZvFCfgrquX+EsC03T T3pEgH0DRJ6AvzOOLNTAOqy8x6MnM5pewHddcNnZNQp48uwenofwyj6vsFe1e+fO5BnE Z7C5zF5iLY9GV2EVs08DZgV2UDq/ai1pqCBm0NEkm/wVikOacyzXwv53/WDV1G/85B2e fxmg== 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 n184si819535pgn.95.2019.01.14.09.55.58; Mon, 14 Jan 2019 09:56:14 -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 S1726777AbfANRyz (ORCPT + 99 others); Mon, 14 Jan 2019 12:54:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34006 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbfANRyy (ORCPT ); Mon, 14 Jan 2019 12:54:54 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 76CD38667A; Mon, 14 Jan 2019 17:54:54 +0000 (UTC) Received: from [10.18.17.208] (dhcp-17-208.bos.redhat.com [10.18.17.208]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 836465FCCE; Mon, 14 Jan 2019 17:54:53 +0000 (UTC) Subject: Re: ppc64le reliable stack unwinder and scheduled tasks To: Josh Poimboeuf 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 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> <20190114170932.awhuv7livfxhrcee@treble> From: Joe Lawrence Message-ID: <4b95b2f3-c5e8-4d21-88fe-9de6cd346954@redhat.com> Date: Mon, 14 Jan 2019 12:54:52 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190114170932.awhuv7livfxhrcee@treble> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 14 Jan 2019 17:54:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/14/19 12:09 PM, Josh Poimboeuf wrote: > 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? > Argg, yes, that should be: if (!firstframe) { firstframe = 0; goto next; } Apologies for the monday-morning crap-patch. /runsoff to find some more caffeine -- Joe