Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5252386imu; Tue, 29 Jan 2019 15:52:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN4yWuQuCIlEYWRFcBWXxc8kZflb8+bNkTEGclOw8P9ekxtM5GGu5Z8tpPJvfvSpjZlXfNes X-Received: by 2002:a63:2b82:: with SMTP id r124mr24859995pgr.300.1548805937178; Tue, 29 Jan 2019 15:52:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548805937; cv=none; d=google.com; s=arc-20160816; b=rRR9pc7M/7EE4Ltwa8qnpS9zXzsO0jVtUsI9uVmX3IrPAj2gn7KYMgotxorJ21vyno TOjUe77Ty+MIyIW00wU1NIgV0p0joAsLM6tMxRNhZeog1F+5t3O14Ih/xCsl+rCcMvpQ A4vzTZxnyE/magQXNuVTYF43g4inUnvREshuPrIIGqaSiKzhqVVsMA2H9yP8AORyL2Z1 7uBLpL+Ap2vUOwTZ9xRewkYg0vLv6+gA2oM/phDoy7a9WX8S7H7jF6Ke+0q55CR5zsAt 55+IFkIU/ZdryOWTslA+btsD/KxJ7FWBNjVzOnnZ+BfVMDM/rFAVw1sA9XoZ3MG61Gqr f7TA== 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=rkduI37kc5yLoTQfzfLwL97UnzpBRYtDOnHRuN6WpxQ=; b=RVVQzHMe0vsCxrodC5Sj7X39cnmZb9c9mIk+STKwAa8sGhCoXvXwVFNJdfWrUOpJ51 z0LeN29DY3+T+sHpY0g2N98isN4zZHviYPUwgOSooec80s9g0zYReVngKcXOyzEXrMRP MTX/wHAzY5j4MtkumXO8O+owOt+iZgNeM3ixvIRQnpylkZYUzOpuqix/RVWmiTO7P7/Z CPwMuWAmkQn25auo+3UPMaxBSqPRhgCb0s+Lss2EkOWsLPaw91O0VLrdE9u3HCvrHKgQ 6h0acVkgfV5L+N3RxZ7vlekNcEaeA/P/kr7xODJw/loj2aNqrfl3p/dwa2rztf89Hbvs hxOQ== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si30721238pll.384.2019.01.29.15.52.01; Tue, 29 Jan 2019 15:52:17 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729094AbfA2Xuf (ORCPT + 99 others); Tue, 29 Jan 2019 18:50:35 -0500 Received: from mx2.suse.de ([195.135.220.15]:58118 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727358AbfA2Xuf (ORCPT ); Tue, 29 Jan 2019 18:50:35 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id C00A8AE4B; Tue, 29 Jan 2019 23:50:33 +0000 (UTC) Date: Wed, 30 Jan 2019 00:50:32 +0100 (CET) From: Jiri Kosina To: Joe Lawrence cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, live-patching@vger.kernel.org, Balbir Singh , Josh Poimboeuf , Michael Ellerman , Nicolai Stange , Torsten Duwe Subject: Re: [PATCH 0/4] powerpc/livepatch: reliable stack unwinder fixes In-Reply-To: <20190122155724.27557-1-joe.lawrence@redhat.com> Message-ID: References: <20190122155724.27557-1-joe.lawrence@redhat.com> 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 On Tue, 22 Jan 2019, Joe Lawrence wrote: > This patchset fixes a false negative report (ie, unreliable) from the > ppc64 reliable stack unwinder, discussed here [1] when it may > inadvertently trip over a stale exception marker left on the stack. > > The first two patches fix this bug. Nicolai's change clears the marker > from the stack when an exception is finished. The next patch modifies > the unwinder to only look for such on stack elements when the ABI > guarantees that they will actually be initialized. > > The final two patches consist of code cleanups that Nicolai and I > spotted during the development of the fixes. > > Testing included re-running the original test scenario (loading a > livepatch module on ppc64le) on a 5.0.0-rc2 kernel as well as a RHEL-7 > backport. I ran internal tests on the RHEL-7 backport and no new test > failures were introduced. I believe that Nicolai has done the same > with respect to the first patch. > > [1] https://lore.kernel.org/lkml/7f468285-b149-37e2-e782-c9e538b997a9@redhat.com/ > > Joe Lawrence (3): > powerpc/livepatch: relax reliable stack tracer checks for first-frame > powerpc/livepatch: small cleanups in save_stack_trace_tsk_reliable() > powerpc/livepatch: return -ERRNO values in > save_stack_trace_tsk_reliable() > > Nicolai Stange (1): > powerpc/64s: Clear on-stack exception marker upon exception return Michael, are you fine with this going through LP tree, or do you plan to take it through yours? Thanks, -- Jiri Kosina SUSE Labs