Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp592847rwi; Thu, 13 Oct 2022 02:29:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7dANyAyjf6zw6wN57dMVUAKLh78yoiNU0WitWg1sYA5mmJlvGwjJgcg9bS1HpVFyoT4+hi X-Received: by 2002:a17:907:c18:b0:78d:8577:7c30 with SMTP id ga24-20020a1709070c1800b0078d85777c30mr22172111ejc.413.1665653347543; Thu, 13 Oct 2022 02:29:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665653347; cv=none; d=google.com; s=arc-20160816; b=UMozt5Hc5ou+gULNUN3v1tAsibJelgNwzChw7xDcWmgNnvbRt2NY8Tfn2VbIi6d9Aa fYr19KtprnnENXwcpIFqUAablq2JOoPgttsrqxdUSeurMSA0LxKUfZ5EhydCiYAGd19c 42CgPs0U+ZJ3CBwEECE55xiP5ENePo4HTWCuy/LnVqQkLD9a79zhj2nVxocAq5CS2Rki iQxjLpo9Ol1k+OenWKoAmz0oYxvwR1JlB3PuyBRLyr/DQ0zUQcTQV02bfOdxGSXVNykT G/p74SQwISz0w61oeM68YTllocbisEUVKLN8CBRomgkBEatrewCO7IY47/DlHeOgWc62 yLqQ== 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=LnnwRuw3rWkfmMreTNatsscTtvI113RGrzj3mDZQgt8=; b=lkCzZROmHaEY3lHc5Xmb7Q5jnRW4LIB/RA9pR5z8/ENaRLrSbaVhl3O1m4WlqhrDVQ fk+k/GiArOlONxk8Xp71qlW9YqrcjeANA1ypp8+0YqRMkQv0X9vI2tsvNBryjsrsVHLc PERE8wDy5Gg7k0QXkieyB9xdvxun2uQJzmV8fhyIU60VUwTCKebZ8Sn+5qLqYQGRsBbF OHP4WzJ9pMN+r+kcO8eLLPxP+jEQ+4NM8ihNXfVytKn6ra13btOmvEdYwQfzI1rjyn9f Yi51djPqyv67y4kMMOT9wx1dlP49uiAysvXQPyN1IQ0bgmPqpuHTWOndtoZW/h46w1zw CE2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=IR4M12YI; 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 d15-20020a056402400f00b0045c98d033b7si4927464eda.72.2022.10.13.02.28.42; Thu, 13 Oct 2022 02:29:07 -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=IR4M12YI; 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 S229511AbiJMJVv (ORCPT + 99 others); Thu, 13 Oct 2022 05:21:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbiJMJVs (ORCPT ); Thu, 13 Oct 2022 05:21:48 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BECCF53FF; Thu, 13 Oct 2022 02:21:47 -0700 (PDT) Received: from zn.tnic (p200300ea9733e733329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e733: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 69BF11EC053B; Thu, 13 Oct 2022 11:21:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1665652901; 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=LnnwRuw3rWkfmMreTNatsscTtvI113RGrzj3mDZQgt8=; b=IR4M12YIlBzE0MjYoQkPm9YQGawwBKItPFR1A5j38MojCMdB6INXbCzDfJl7BCrCqwvDLk vFprQY8OXhEdV/nrLCnqbyE1/PQLJoy0lmRPhi/B8vMtKUOEl6D9FLnPNxQcdw+T18xnB+ sUmZcBp5AcpqUJo1RmRC9rh5vKxdfEY= Date: Thu, 13 Oct 2022 11:21:36 +0200 From: Borislav Petkov To: "Edgecombe, Rick P" Cc: "bsingharora@gmail.com" , "hpa@zytor.com" , "Syromiatnikov, Eugene" , "peterz@infradead.org" , "rdunlap@infradead.org" , "keescook@chromium.org" , "Yu, Yu-cheng" , "dave.hansen@linux.intel.com" , "kirill.shutemov@linux.intel.com" , "Eranian, Stephane" , "linux-mm@kvack.org" , "fweimer@redhat.com" , "nadav.amit@gmail.com" , "jannh@google.com" , "dethoma@microsoft.com" , "linux-arch@vger.kernel.org" , "kcc@google.com" , "pavel@ucw.cz" , "oleg@redhat.com" , "hjl.tools@gmail.com" , "linux-doc@vger.kernel.org" , "Lutomirski, Andy" , "arnd@arndb.de" , "jamorris@linux.microsoft.com" , "Moreira, Joao" , "tglx@linutronix.de" , "mike.kravetz@oracle.com" , "x86@kernel.org" , "Yang, Weijiang" , "john.allen@amd.com" , "rppt@kernel.org" , "mingo@redhat.com" , "Shankar, Ravi V" , "corbet@lwn.net" , "linux-kernel@vger.kernel.org" , "linux-api@vger.kernel.org" , "gorcunov@gmail.com" 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: 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, Oct 13, 2022 at 12:31:38AM +0000, Edgecombe, Rick P wrote: > Yea, I was thinking to maybe just change it to > CONFIG_X86_USER_SHADOW_STACK in show_smap_vma_flags(). In that function > there is already CONFIG_ARM64_BTI and CONFIG_ARM64_MTE. I was thinking exactly the same thing. :-) > I'm not sure if there is any aversion to having arch CONFIGs in core > code, but it's kind of nice to have all of the potentially conflicting > strings in once place. Yeah, ok. I guess you can do the CONFIG_X86_USER_SHADOW_STACK thing for the sake of simplicity. We have *waaay* too many Kconfig symbols and we should introduce only the least amount of new ones. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette