Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2406620rwd; Fri, 9 Jun 2023 10:40:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4H2oD3I6l3QA+eDzYLFTe3q3XEW4DqnNGP8irMWZKbmqLhc3kZsNuS6ESRyqVGnOnxgIIE X-Received: by 2002:a05:6a00:995:b0:644:8172:3ea9 with SMTP id u21-20020a056a00099500b0064481723ea9mr1916184pfg.15.1686332429856; Fri, 09 Jun 2023 10:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686332429; cv=none; d=google.com; s=arc-20160816; b=ioP8+I5DJbNIcGsIigCdN0V/jWKnnS7eAFAbiFdpksU+Vx1qqQPHCUXpSVT7GIGO/3 CfoUlb6xh5rRu+GqgtjOPcCbjmZbTCxPh4iuP48upLzWi29SDhihAzJVYcdIq1WMkiyK 4d0jiuc4WV+MwyjiUX9Bd2e9G3x+co1OX+XttAhZIE9qnjGKEzJD15LP9TRbcgCaWONI dp+cKSQXNu2OLoQytdDgpZ+lyKEN6DaEnxEAcbUpoEhegU4RAoGTMgdyFjWsQUPB8A5i OV1zWSWOgzHQJXLGSgLHp+EVR5AtyVfhMQ5xTHQBfaW6YNeP/X5lxO3O9UAPoGoHcrcb Gdig== 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=OdWJ+/Vr1fTAQRkbbOS3uzE6dIIYarROw6+NLdTQjLw=; b=o/NKZSakeZVysi5A24gxtR5l/Uty4u6qRFiVh131Jp0WgmYFN3pPWIKugzGPgZrzpK Q+FOBezdl7YdafcH7FuR2HmC3uqcVuW0iDubZcD8Yz+O62W0KI2ICZzeBWye3Ozn9VON dXwitQ8TPHTkuCrcR256SCOzOMmAZTGT0Zem05zedVcE0WynsQbNV1ICSLd4mceFThy0 Od2n9Ld5FBPUQvevNyM/6cKU/FScDCwhpDDH40OlL8w1CUmvTJs/PnfUmLt9pg4YZXq7 pucYdId3C3MTNM7QtqL7VJU7Lhna3Gi2NWme/Ekf6qQNCAniEKb1tvyaCsWQ1Nsn3ced I9rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@alien8.de header.s=dkim header.b=pMNWRTdN; 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=fail (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 b13-20020aa78ecd000000b006585e4d7d7asi2721107pfr.312.2023.06.09.10.39.47; Fri, 09 Jun 2023 10:40:29 -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=temperror (no key for signature) header.i=@alien8.de header.s=dkim header.b=pMNWRTdN; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230190AbjFIRdy (ORCPT + 99 others); Fri, 9 Jun 2023 13:33:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjFIRdx (ORCPT ); Fri, 9 Jun 2023 13:33:53 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBFCE359D for ; Fri, 9 Jun 2023 10:33:51 -0700 (PDT) Received: from zn.tnic (pd9530d32.dip0.t-ipconnect.de [217.83.13.50]) (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 9BE2C1EC0373; Fri, 9 Jun 2023 19:33:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1686332029; 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=OdWJ+/Vr1fTAQRkbbOS3uzE6dIIYarROw6+NLdTQjLw=; b=pMNWRTdN1rEyrdPbTaVhOCNw4/RmiWEQsncCJ3u72Nq+pR+DXoiotjXac1hHSyeLS3EwfQ hnw5w3ozlljIA95EJJ+FdVHyvA/W2NZUhPzbtD494BmBrKi9bPo5G4W5J1+r8eOlEJF0EW gwVdSEewIitd9lg0WNsF6XmlP9yN6eg= Date: Fri, 9 Jun 2023 19:33:43 +0200 From: Borislav Petkov To: Breno Leitao Cc: tglx@linutronix.de, pawan.kumar.gupta@linux.intel.com, paul@paul-moore.com, leit@meta.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cpu/bugs: Disable CPU mitigations at compilation time Message-ID: <20230609173343.GDZINid4EgJGnkW7HK@fat_crate.local> References: <20230203120615.1121272-1-leitao@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230203120615.1121272-1-leitao@debian.org> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 Fri, Feb 03, 2023 at 04:06:15AM -0800, Breno Leitao wrote: > Right now it is not possible to disable CPU vulnerabilities mitigations > at build time. Mitigation needs to be disabled passing kernel > parameters, such as 'mitigations=off'. > > Create a new config option (CONFIG_CPU_MITIGATIONS_DEFAULT_OFF) that > sets the global variable `cpu_mitigations` to OFF, instead of AUTO. This > allows the creation of kernel binaries that boots with the CPU > mitigations turned off by default, and does not require dealing kernel > parameters. What's the real-life use case for this? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette