Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp217378ybx; Wed, 6 Nov 2019 15:56:19 -0800 (PST) X-Google-Smtp-Source: APXvYqxR9QbJu5qWpddkomJ6Pyc2omFtZTonhu95bVcsokGYrV3rhLNno5un3g30319D2Qmw2f6v X-Received: by 2002:aa7:c716:: with SMTP id i22mr442406edq.237.1573084579405; Wed, 06 Nov 2019 15:56:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573084579; cv=none; d=google.com; s=arc-20160816; b=H7DjsR1n5idWFtI60Y9PTDhSQ9Oz3nAf6a2ihzvkQ9U3JuLcwol18Y7J/2d0Kkw72z YIYPu+Ygu+rh/XiXHj3h8yH/lXZpZIdVjdh9RgzqyrOWtYfy4UXS/aldM03igcNb18gE XXliowQEKfS6WW7Qhx8R3u2XAA3AWLAKMQHFQGPfQ7/Hvh1SbrhiDlvuuNCN5XDeje7F 2DwQq8wMT7sJIeRiLkY/ILvI3cOr78PADRPqINL7wXUKmBOoSWpliYBje4Kva4GJ0zTi n2b2EFk31n9BoXUm+ibzoEV6ZVb5qcMgX/vMPxZ4Mk34MdzFH35P6xhJSQJqoDrKT3RJ YJng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:user-agent:in-reply-to:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OeBSvkxKgLwEN5Lh3YlOG/EG6vi47zYej441MNR7eJM=; b=RB+p0ZsXkCK1LfDNqP3tQl2Ve27jK8KFxjFxd+P55GNu/txLhYjCF0eVvTjkpUSX6W 33y8X9GTi9m9sYc+vj/OaWef3tFVLOUBZtWBgvmvPG5OshyFCJUBYqYeAe8jVnwxVJMe SL+V3wkzVUG9v9xIbDjQkaIX4V/ycTBq2QvLEQV29bwbgGMBCawzmYnHIXlB2S23jFue Tix28MBNjoZ7LY3WxT7bXRAuX6vFLiygxfYXKa+cMErlA3vHG6R3epuFSpURHPusaxws vO7UbG8q7sICAbAeqjMQJhp3DwTaqj0EfA59vX1BN0F15QuAodKRXKPoGIaP2Dv19fc3 KzHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=h2pVQQwq; 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=pass (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 m1si236047ejd.305.2019.11.06.15.55.55; Wed, 06 Nov 2019 15:56:19 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=h2pVQQwq; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727916AbfKFXye (ORCPT + 99 others); Wed, 6 Nov 2019 18:54:34 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:27491 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727369AbfKFXye (ORCPT ); Wed, 6 Nov 2019 18:54:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573084473; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OeBSvkxKgLwEN5Lh3YlOG/EG6vi47zYej441MNR7eJM=; b=h2pVQQwqe3YviKrslafWWJy0EDDakVRhbFo9pJHsJQOTkowkcDSBZnIdjwrlqC2NChFlGH yfUStDcZb5K6eyCnd9f9QNOvzBY+cXUPDYoVSoAbC6Doysdqi+RY4Vu7ACMPF21gsDYJ9h kZhl4GIqgnHen7d8vO4518AgQIl0Mgg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-194-R_j9mkZuOLSRp0VQugwtwA-1; Wed, 06 Nov 2019 18:54:29 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F00FF1800D63; Wed, 6 Nov 2019 23:54:28 +0000 (UTC) Received: from treble (ovpn-122-162.rdu2.redhat.com [10.10.122.162]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 71EE31A7E3; Wed, 6 Nov 2019 23:54:25 +0000 (UTC) Date: Wed, 6 Nov 2019 17:54:23 -0600 From: Josh Poimboeuf To: Joe Lawrence Cc: linux-kernel@vger.kernel.org, live-patching@vger.kernel.org Subject: Re: [PATCH] x86/stacktrace: update kconfig help text for reliable unwinders Message-ID: <20191106235423.hjamrggd4x3js5hm@treble> References: <20191106224344.8373-1-joe.lawrence@redhat.com> <20191106230553.wnyltmkzwk5dph4l@treble> MIME-Version: 1.0 In-Reply-To: User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-MC-Unique: R_j9mkZuOLSRp0VQugwtwA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 06, 2019 at 06:16:28PM -0500, Joe Lawrence wrote: > On 11/6/19 6:05 PM, Josh Poimboeuf wrote: > > On Wed, Nov 06, 2019 at 05:43:44PM -0500, Joe Lawrence wrote: > > > commit 6415b38bae26 ("x86/stacktrace: Enable HAVE_RELIABLE_STACKTRACE > > > for the ORC unwinder") marked the ORC unwinder as a "reliable" unwind= er. > > > Update the help text to reflect that change: the frame pointer unwind= er > > > is no longer the only one that provides HAVE_RELIABLE_STACKTRACE. > > >=20 > > > Signed-off-by: Joe Lawrence > > > --- > > > arch/x86/Kconfig.debug | 8 ++++---- > > > 1 file changed, 4 insertions(+), 4 deletions(-) > > >=20 > > > diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug > > > index bf9cd83de777..69cdf0558c13 100644 > > > --- a/arch/x86/Kconfig.debug > > > +++ b/arch/x86/Kconfig.debug > > > @@ -316,10 +316,6 @@ config UNWINDER_FRAME_POINTER > > > =09 unwinder, but the kernel text size will grow by ~3% and the ke= rnel's > > > =09 overall performance will degrade by roughly 5-10%. > > > -=09 This option is recommended if you want to use the livepatch > > > -=09 consistency model, as this is currently the only way to get a > > > -=09 reliable stack trace (CONFIG_HAVE_RELIABLE_STACKTRACE). > > > - > > > config UNWINDER_GUESS > > > =09bool "Guess unwinder" > > > =09depends on EXPERT > > > @@ -333,6 +329,10 @@ config UNWINDER_GUESS > > > =09 useful in many cases. Unlike the other unwinders, it has no r= untime > > > =09 overhead. > > > +=09 This option is not recommended if you want to use the livepatch > > > +=09 consistency model, as this unwinder cannot guarantee reliable s= tack > > > +=09 traces. > > > + > >=20 > > I'm not sure whether this last hunk is helpful. At the very least the > > wording of "not recommended" might be confusing because it's not even > > possible to combine UNWINDER_GUESS+HAVE_RELIABLE_STACKTRACE. > >=20 > > arch/x86/Kconfig: select HAVE_RELIABLE_STACKTRACE if X86_= 64 && (UNWINDER_FRAME_POINTER || UNWINDER_ORC) && STACK_VALIDATION > >=20 >=20 > Ah good point. The alternative would be to copy the recommended note to > both UNWINDER_FRAME_POINTER and UNWINDER_ORC, or at least remove the "onl= y" > phrasing. I dunno, nobody has noticed it yet, so maybe the first hunk wo= uld > be good enough. The guess unwinder is listed as an expert option, so the user would have to enable CONFIG_EXPERT to get to it. Then if they do enable it and try to load a livepatch, they'll get a runtime warning along with a patch which never transitions. And like you said, nobody has complained, so I'd say just dropping the 2nd hunk would be fine. --=20 Josh