Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp173705ybx; Wed, 6 Nov 2019 15:09:10 -0800 (PST) X-Google-Smtp-Source: APXvYqykh9GPt91GsbrOyMyM/tHnwZMHkkk8P4rOgk21gijQOFGMPB8aNzPkLxSxlplMO+C9P5oy X-Received: by 2002:a50:cd0f:: with SMTP id z15mr305411edi.244.1573081750392; Wed, 06 Nov 2019 15:09:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573081750; cv=none; d=google.com; s=arc-20160816; b=IWnKkqLNJS6+bERrAtBNy4aikCvxfU/C6fo+RwdFpSRdEfNtuDKhs4FmP+bCizEgOl tZ8oG7X/5VOBLIMN8hbq5123hcETvaeipi2heUGIZcuJi+6vZOkyByzHD8C1dep0Vl++ RqU56lkMall8LRQGFiIhsbqJTDNFBRvbkBYWeAT+qtGAg+vRBdC+zXZ7/d+ZO181Dfz1 VfNh9oOoVpwrUIrJfyUaBGx14nU/sK4pJgiL8x2gRLUTDm4o4aIOYa2i0W/s0R+SmX8H tNqg725qaGVOrtUYP1cwQSQsV3IBY/lhVl9/Ls+Zl54nx58tqgbdGMrx0XzYzkAW2fOm M/CQ== 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=oz3HskjRqxhlPDCGk63+nwo4iuGFQJFiMO6YAWOvkkM=; b=pOl+zGJsfczjeldHeix8g9F3doX2ARSpUhezfB2PGjeU4k319Ez4j4BU28oxH6C1Dz I79OaxPWNgjL0r/YS9rR/FkZaDLnSFCIngpEBXXv23n7+DTKO+/cJRLETwe7X1KoE+YB It+8RW8Yh4qAKI4EvLwX9sWJjSYbevDfUj63bxAGBZn0dC9NChlr45FVM9gfKFL2e4gd jTkJDPvNy7TFvS/AabtQydJryhHvFQib6EeRa/tP6MPck75AcaahPgOYy9prqGUmYnPA 2kYd/3AoI2vklbmGVDrIK9t0jRfX055Nu5XoHqLMsM8aRgodJE+B1RaSDJmcbzTUfBpN RHdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GYQve1t6; 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 7si95310edx.33.2019.11.06.15.08.44; Wed, 06 Nov 2019 15:09:10 -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=GYQve1t6; 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 S1728025AbfKFXGG (ORCPT + 99 others); Wed, 6 Nov 2019 18:06:06 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:59250 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727813AbfKFXGG (ORCPT ); Wed, 6 Nov 2019 18:06:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573081565; 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=oz3HskjRqxhlPDCGk63+nwo4iuGFQJFiMO6YAWOvkkM=; b=GYQve1t6NGiezcLfohkRAMCaoAaqwzmz9FU32gaR+FtnWxOibxDHk26S7x2BCq5hLjPEpe ITyuB7j3QPdVsXPyVL9t9iv6mWb/Mghhg6R5pKkGyH0XLWW1+v6vo3g0Mc40zOzwbYI+n8 Lh/w+qyKaOi+ME4hEAkHSAyquYfHi5w= 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-139-EYyaIi7oOz6ejyNGGCbU1Q-1; Wed, 06 Nov 2019 18:06:02 -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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 52FB4800C73; Wed, 6 Nov 2019 23:06:01 +0000 (UTC) Received: from treble (ovpn-122-162.rdu2.redhat.com [10.10.122.162]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A3ACB60BE0; Wed, 6 Nov 2019 23:05:57 +0000 (UTC) Date: Wed, 6 Nov 2019 17:05:53 -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: <20191106230553.wnyltmkzwk5dph4l@treble> References: <20191106224344.8373-1-joe.lawrence@redhat.com> MIME-Version: 1.0 In-Reply-To: <20191106224344.8373-1-joe.lawrence@redhat.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: EYyaIi7oOz6ejyNGGCbU1Q-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 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" unwinder. > Update the help text to reflect that change: the frame pointer unwinder > 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 kernel'= s > =09 overall performance will degrade by roughly 5-10%. > =20 > -=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 runtim= e > =09 overhead. > =20 > +=09 This option is not recommended if you want to use the livepatch > +=09 consistency model, as this unwinder cannot guarantee reliable stack > +=09 traces. > + 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. arch/x86/Kconfig: select HAVE_RELIABLE_STACKTRACE if X86_64 &= & (UNWINDER_FRAME_POINTER || UNWINDER_ORC) && STACK_VALIDATION --=20 Josh