Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2813230ybh; Mon, 9 Mar 2020 13:37:14 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuyK+nhEgDv6zHOT5LxZcmBjUVV3X3QB4Tc0QfdXtZj4r2yL/7NDgAahMULICeh/AIoShkI X-Received: by 2002:aca:bc86:: with SMTP id m128mr780570oif.11.1583786234479; Mon, 09 Mar 2020 13:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583786234; cv=none; d=google.com; s=arc-20160816; b=HSwq0+Dyg70r5ESUd++6gEf+2oZ/bjQ5ZO45Eox2nOQCGvgxb90MTE4zCzqv+OIoyd fEsxynciAJn0NQ6FBcufqA6pTOidwULz+7Fs8JJyPLrXoFdhoSDTPfazz+hHQNeMxmzi B2nvfBsSzCSmNoI9iI59uxzSt4kpVwsrqU0iMEGEtWUQAg+3TiaalNGnCYqkyTf3AThr 6gIgjNsUzEbnJAHKbY9pLaHgnmADuSB+qmosinflOYIkgXbbg3UnsuA8hVjHpuWlxlq8 AYtysiBwCCcRQQ/SeOE51HJ+XTB27Ia7YQNd25QzYYkJhp32YSjiRTjo7YCce/dSuV+5 wqng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wtbqXGqFEsNw2L5GSHjcVunNBOZCwH6CYFPC9DsGy+w=; b=sHP6dwySMP8MZd3Kb/k245tOakfIT3N/KzJwaic/Oiw9pLC6nBO1eIUmsNFJXLjw8X tpmnpbyXGmO84+z8gx+7XFnlkCfOwTGmhVv17HN15y8uzhhIXZb+MuCiuRkftwv/q1FW n5dEtLPTjpKqh9DEVhZSFRXtfebru43gvbYaIHaaNt9yh9A1DDu5hXpIJWxhBWTRpGEH 26W1KYJPI+3xh7HchOOhCT/zkbdhZbxV/ammN900H4o5EEnUJUyOFx13QFoSVBrRSosN Ua78m81Pm+wgxE/c/Ey43GL3SqOzLhDp9JxOpArYY1ixOFXxD86BlC+TVOiRHDkJqeP3 raeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=j+KSXz+4; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f74si1929310oib.15.2020.03.09.13.37.03; Mon, 09 Mar 2020 13:37:14 -0700 (PDT) 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=@alien8.de header.s=dkim header.b=j+KSXz+4; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726488AbgCIUgc (ORCPT + 99 others); Mon, 9 Mar 2020 16:36:32 -0400 Received: from mail.skyhub.de ([5.9.137.197]:60688 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726669AbgCIUgb (ORCPT ); Mon, 9 Mar 2020 16:36:31 -0400 Received: from zn.tnic (p200300EC2F05B2005D451D18BD3BAF8F.dip0.t-ipconnect.de [IPv6:2003:ec:2f05:b200:5d45:1d18:bd3b:af8f]) (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 3E1EF1EC0C97; Mon, 9 Mar 2020 21:36:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1583786189; 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=wtbqXGqFEsNw2L5GSHjcVunNBOZCwH6CYFPC9DsGy+w=; b=j+KSXz+4nd0wrtAVWhGIOSmW6wmKEN1gOm0zZm5rlbhdykhPdRi8iYV2/PxoBjXOf90eT8 d/sowrm3c2Ox20zrA2NGpZyF4Qp9OGGEsfv/vGQYVBOfNYz61Jx/+og/BR0KH0yLcVUWjo ASGFC52u+i96n+qFLF0L8juTCb+kX8M= Date: Mon, 9 Mar 2020 21:36:32 +0100 From: Borislav Petkov To: Tony W Wang-oc Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org, DavidWang@zhaoxin.com, CooperYan@zhaoxin.com, QiyuanWang@zhaoxin.com, HerryYang@zhaoxin.com, CobeChen@zhaoxin.com Subject: Re: [PATCH] x86/Kconfig: make X86_UMIP to cover any X86 CPU Message-ID: <20200309203632.GB9002@zn.tnic> References: <1583733990-2587-1-git-send-email-TonyWWang-oc@zhaoxin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1583733990-2587-1-git-send-email-TonyWWang-oc@zhaoxin.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 09, 2020 at 02:06:30PM +0800, Tony W Wang-oc wrote: > While the UMIP (User-Mode Instruction Prevention) is a generic X86 CPU > feature, there is no need to tie X86_UMIP only to Intel and AMD. It is not generic - it just lost the "INTEL" in its name. > So remove that dependency from the Kconfig rules. > > Signed-off-by: Tony W Wang-oc > --- > arch/x86/Kconfig | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 5ad3957..ca16b762 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -1871,7 +1871,6 @@ config X86_SMAP > > config X86_UMIP > def_bool y > - depends on CPU_SUP_INTEL || CPU_SUP_AMD > prompt "User Mode Instruction Prevention" if EXPERT > ---help--- > User Mode Instruction Prevention (UMIP) is a security feature in > -- If you're going to do that, is there even any use for that config option at all? AFAICT, it adds ~1K to kernel text so we might just as well remove the ifdeffery completely. The code ends up built in in 99% of the cases anyway... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette