Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4299431rwi; Wed, 12 Oct 2022 13:37:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Kr76nYreRUYZNruoJYpMF9VyPmcifr8JgknRH9QZzzX0eZ5O5By4+6zxDr0SEERAhCDsU X-Received: by 2002:a17:906:6a25:b0:78d:4906:b960 with SMTP id qw37-20020a1709066a2500b0078d4906b960mr24163675ejc.647.1665607034835; Wed, 12 Oct 2022 13:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665607034; cv=none; d=google.com; s=arc-20160816; b=stSdJt7Wcy4k4gqiWxLd7cs0DSjw/eyG1Qti4DkYaU9JJgLMEygaRuZqc6kSvqWGqX 536svraix/wI9+AAbCQR6Fmi9C8LVrxYRwV9X26sy+H+hLU5YR5XTkEDQ1pvJIYB69Ya TpuLLYWcLUGwyLyD0zfep5LXDls/x25P2ER8mjfl9F5XbWiIzW89Vfeml1CsF2E3U6Y+ avTuf6RgCUHfMiG59zYH4kx+QqI7RPav/xLXvYdIrANeKQ1q2IbnFrPdpO9LgjTk86a0 AqwemIHioIRlvDsP1ow2Z2m8R3yCIEo36h3heuUs5tdmzz2c/QcqdSRxex/yjEA+7HnK ltLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PLO4zeP3zv6Xy77o0G6Y6mDad/C0l3CRrS49slx6uWI=; b=RNNyn/5/1+reVDW+8X3c+TUyCk++9zUF+xp8DKQujtkFgpqr67sQ3FR/dLSa96Mh7r gqhc0lsuvDGmW1IFm39c6+Yr+aGEAmExBXXJJuhtCyUilUG86DNJA1A8CvYCDn3nrV0r mX+tY+AmjwHDoMuFo2gMi2tNliY4j/vJiTSwX9x8JGnBDtebHr/SGkTYHvp9PjmyRt0f giOWru/OgmT8ICjBMbXBogc5byg7Xt21c8zK5dsg6u0oPC2CS1usIg5XxH46rCgFBnD+ uhKg2PmgcTaBi0zOxgDiH/cXFCBDLAM+C86V85t83TH595IA9v8Rk3UtY0RHMt8niAFT HAfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=hn4ux4Y+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t21-20020a508d55000000b004487c209b0asi15179502edt.490.2022.10.12.13.36.48; Wed, 12 Oct 2022 13:37:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=hn4ux4Y+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229604AbiJLUEV (ORCPT + 99 others); Wed, 12 Oct 2022 16:04:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbiJLUES (ORCPT ); Wed, 12 Oct 2022 16:04:18 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28EADD0CC3; Wed, 12 Oct 2022 13:04:18 -0700 (PDT) Received: from zn.tnic (p200300ea9733e705329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e705:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id ADAA71EC064C; Wed, 12 Oct 2022 22:04:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1665605052; 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:in-reply-to:in-reply-to: references:references; bh=PLO4zeP3zv6Xy77o0G6Y6mDad/C0l3CRrS49slx6uWI=; b=hn4ux4Y+b3pkiTvml7dz5rvwcps6ZFCZ4Zc3OG/TCBLyIhRrcNMFCif4DE3Jyqfk9WV8yE GzWBcJhwU5qRzjX9jl+VK92HHTPT7Ury0lZALvp2EKWlx3Mnjh8d0nm7RWpqexsXqjHq1p gooxOGhJocW7MzngNOSZZ8rxXiOhFFw= Date: Wed, 12 Oct 2022 22:04:08 +0200 From: Borislav Petkov To: Rick Edgecombe Cc: x86@kernel.org, "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H . J . Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V . Shankar" , Weijiang Yang , "Kirill A . Shutemov" , joao.moreira@intel.com, John Allen , kcc@google.com, eranian@google.com, rppt@kernel.org, jamorris@linux.microsoft.com, dethoma@microsoft.com, Yu-cheng Yu Subject: Re: [PATCH v2 02/39] x86/cet/shstk: Add Kconfig option for Shadow Stack Message-ID: References: <20220929222936.14584-1-rick.p.edgecombe@intel.com> <20220929222936.14584-3-rick.p.edgecombe@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220929222936.14584-3-rick.p.edgecombe@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 29, 2022 at 03:28:59PM -0700, Rick Edgecombe wrote: > From: Yu-cheng Yu > Subject: Re: [PATCH v2 02/39] x86/cet/shstk: Add Kconfig option for Shadow Stack Please remove all "CET", "cet", etc strings from the text as that is confusing. We should use either shadow stack or IBT and not CET. > +config ARCH_HAS_SHADOW_STACK Do I see it correctly that this thing is needed only once in show_smap_vma_flags()? If so, can we do a arch_show_smap_vma_flags(), call it at the end of former function and avoid adding yet another Kconfig symbol? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette