Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp765855lqo; Fri, 17 May 2024 00:19:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU44V1vuFg+FFbPqYLSfgIJmd0RYCCqL/s6x770br0vCDV9cLJ38zR4zG7pNJWPC9hYMd7VUoKw2mgqM8a7ukXIlo8pONMU9L/NjvqVGA== X-Google-Smtp-Source: AGHT+IG0dFICRKudDIp0GbOYH2PLvkDiStU35OWsz3gVpJGfK9rCTE7/CfeDzQpO0NAypwgFvN58 X-Received: by 2002:a05:6358:c015:b0:183:f413:5ff9 with SMTP id e5c5f4694b2df-193bb519a00mr2221887655d.10.1715930342209; Fri, 17 May 2024 00:19:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715930342; cv=pass; d=google.com; s=arc-20160816; b=cKYmFsnUleVznJYdQJFyIK6f5qQct86S17PbRyLmLnP0NL9ECNI17pzmDC6flgbj2s k2fIANCLXu24hGfVk7Iq6JGZu/k9QGrZB9ZY6jFqmv6bgWCr6JKFRMdQYV+9eALLbv7A WY8Yut0YUqSmU3i/nz+9N2PBRynAEd92+gto2+mBOUoqo4/DOEO9uhSElJFVpyJpYnTw kD0iG8+yiTVccmp4uq5HJJin2Pu/zb8EpFnNN7+R7C5qxksIIWmDL1MmGWOIOzua0NpW sf1YxdFjZLL4mVQMg8ekUEya04oCle4B8cMzp4nBQNrgqlCp0ZmPL0lrQVqCIvCVWk+n s7KQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=r/PFKkGSueZNOGZYnURr3JQzbN7p4S/LdVPtOilXIlw=; fh=hVQVPPbosiZ6l5PMGhwDewR3CXp8m3hPXByiUmZPCV0=; b=yklnaw8IL7iVhk7o3RDJg0YYH16Zu9E9Dp8xE8cljbHVyoPIN2jzXDqsknaCBXpUjM 6T/Yk6r/yHCI5k1v08KD/P8rlbr6uOjqI+htv7VCPBQ5fE6ehwMcGouqxn3nebDycPDO Xal7LnHCV6uW8FT+JhP7fyOtq5JrQ/Scw9g3lIJF53BUMYNcpqEDtmFbeU+RqNh88kS4 hu2f4W3XMiyOE2IR/VeVpevydTnOMk9btfm7/n7CLryvPBveHRB7WqpFJ1eL9U8d2dgk 6agZeMBueE4V5i/u0zKGnHWN7v4odf3vYcGqmhEAfjXCRB46EqTXA8xl90/VayqYsU0p 5q4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hn+bhOyg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-181783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181783-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63411719138si17199697a12.499.2024.05.17.00.19.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 00:19:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Hn+bhOyg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-181783-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181783-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A668AB215EA for ; Fri, 17 May 2024 07:18:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD3A815E90; Fri, 17 May 2024 07:18:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Hn+bhOyg" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2DCB14F64 for ; Fri, 17 May 2024 07:18:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715930325; cv=none; b=OP4IsmUY4qCKB8ADmimuulzIRE4qDvoxTh8VXY/uj3t/4rvVmL+IZ/jB5/VzC9LuSv7WI6jKcTcACAHNzgv6jrVLj0tVTRhIlRzB4o+OdRW1g01ny4Rr8RsfMvFRkC7yTTCCyoFtC/OWbWwuu3/FDALlC6vaUM7qaJoTrZBwp0U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715930325; c=relaxed/simple; bh=D6yLkdkWDGehSsmuPi0OTbIYs2uK1ZPFs2xIBQk11OI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=KdaCk3YOgE9KhNvlgl6SXr1mpzEYLuPznAldEWayZkHPyNVFJPk5R5+hX4t9nkp7PhbHcA37HWjP0/lKpruxQwKI+bCz0svCOqr0FCCDgeFOBm44N1tmpKH7biioaRpL3Tuvz8BFHRq9AvVskHq8nrrcSWb9nHh2fCkGqJi12/Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Hn+bhOyg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76A85C32786 for ; Fri, 17 May 2024 07:18:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715930324; bh=D6yLkdkWDGehSsmuPi0OTbIYs2uK1ZPFs2xIBQk11OI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Hn+bhOyg1u6Nn6IdET8i6FfDPRsF4cQ5L3G0uP5tRfzX60uIQVggaQA16HNLZMIC0 WLJQ4p1TmXaKzBXXMYbLDrHCN5Dnj7ufRqAoQ0coGgcoRUXwW6fHC0+K/UfcIT0hQ9 KrwBOWBM54JpGr6wpwN/YL4d+fRfKXT+hxl3CcxeKpxd/UnYYvMuGFa80vQh4C8CDv CEIm1n6hHGRIMX+SvqOusw0nZg85Do0wKX5vEpKmhTPJoTQysWWVvt4TF/JNyhWiTw S9u/ExCDAxIWZT+hm6YdFQpZWSjDvB0MFo5KJjkKrUFr/3QQFXyRUfMAkjInhOadSl hlWKamENlU4qA== Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-5238b5c080cso2052304e87.1 for ; Fri, 17 May 2024 00:18:44 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWG4hXmBvbl4H4tLwcxIk0bL96to93mTwHJua8mQZRbFiRbP5n3ck9EjTKOf1tgey4wv0UI/68EDARE8QeVQP081NEi+RyVD6+H49qq X-Gm-Message-State: AOJu0YwefDlbYXYzbBkLA+ZRauFxChm3M9l46KfJZdX8zoF+vAzlL6LI MOWCg3/PzRXV2OM2WdXC1U/KOCMCulzxgYGlBRwb5d5mNWbqbqxG70cW7Dy/qqDiv1FHeizCg4Z 0AtWX3iEQOrXll5sV7EW8nh3qeFA= X-Received: by 2002:a05:6512:138e:b0:520:5261:9cd0 with SMTP id 2adb3069b0e04-5221006cc86mr16065884e87.57.1715930323144; Fri, 17 May 2024 00:18:43 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240204122003.53795-1-masahiroy@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Fri, 17 May 2024 16:18:06 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] x86: select ARCH_WANT_FRAME_POINTERS again when UNWINDER_FRAME_POINTER=y To: x86@kernel.org Cc: Josh Poimboeuf , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, x86 maintainers Please check this. And, please also note the current code is incorrect, and it may get broken with future Kconfig refactoring. On Thu, Mar 21, 2024 at 12:30=E2=80=AFAM Masahiro Yamada wrote: > > Ping? > > > On Sun, Feb 4, 2024 at 9:20=E2=80=AFPM Masahiro Yamada wrote: > > > > It took me some time to understand the purpose of the tricky code at > > the end of arch/x86/Kconfig.debug. > > > > Without it, the following would be shown: > > > > WARNING: unmet direct dependencies detected for FRAME_POINTER > > > > because commit 81d387190039 ("x86/kconfig: Consolidate unwinders into > > multiple choice selection") removed 'select ARCH_WANT_FRAME_POINTERS'. > > > > The correct and more straightforward approach should have been to move > > it where 'select FRAME_POINTER' is located. > > > > Several architectures properly handle the conditional selection of > > ARCH_WANT_FRAME_POINTERS. For example, 'config UNWINDER_FRAME_POINTER' > > in arch/arm/Kconfig.debug. > > > > Signed-off-by: Masahiro Yamada > > --- > > > > arch/x86/Kconfig.debug | 5 +---- > > 1 file changed, 1 insertion(+), 4 deletions(-) > > > > diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug > > index c5d614d28a75..74777a97e394 100644 > > --- a/arch/x86/Kconfig.debug > > +++ b/arch/x86/Kconfig.debug > > @@ -248,6 +248,7 @@ config UNWINDER_ORC > > > > config UNWINDER_FRAME_POINTER > > bool "Frame pointer unwinder" > > + select ARCH_WANT_FRAME_POINTERS > > select FRAME_POINTER > > help > > This option enables the frame pointer unwinder for unwinding = kernel > > @@ -271,7 +272,3 @@ config UNWINDER_GUESS > > overhead. > > > > endchoice > > - > > -config FRAME_POINTER > > - depends on !UNWINDER_ORC && !UNWINDER_GUESS > > - bool > > -- > > 2.40.1 > > > > > -- > Best Regards > Masahiro Yamada -- Best Regards Masahiro Yamada