From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6AF8AC7EE29 for ; Sat, 10 Jun 2023 22:37:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231262AbjFJWhj (ORCPT ); Sat, 10 Jun 2023 18:37:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229746AbjFJWhh (ORCPT ); Sat, 10 Jun 2023 18:37:37 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A349E5 for ; Sat, 10 Jun 2023 15:37:36 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1686436654; 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: in-reply-to:in-reply-to:references:references; bh=b9vitvOPG+xvJzjdSeWfwXEva3xzCwWxkPX4DK6Mf4U=; b=IxZafuqLIwQqtJkNaNtTQvkdYguIHmycvFJHzwIeFLlDzK8+xj6N29jfeGZPo2ilpTz3OE pNTFH5vMBlydFQAfgUthN91bQCyF9kpHV+vRlXBYuGDUoU/TRhpXFGujKxFx8yt45uuqnr tdZIhopQhS8tGN3jdeRl1aCR9GiZrOPBtpiutuFMgIwY71E2MRtEeLMZzFE2nYyHJVSRKl dz+Nz6zVHZpoNQFp8lh5HBFwTNfjeSfwLatjM85BVFcTk4BfD5L/S5esSDjbUvSNYGniW2 sYDRucEaIMtTfrcI02uazpDC2iegA0dOZTo7g+lLaH3/uuuBI7jn7y/fauttfg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1686436654; 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: in-reply-to:in-reply-to:references:references; bh=b9vitvOPG+xvJzjdSeWfwXEva3xzCwWxkPX4DK6Mf4U=; b=cv72YEIJY8cfNJhosTjM/KT7w10M44RH82b1AaRQkqLulMDQfsaBZSDo00oSzYIRezTmW4 Nu8wfbdhYH6TasDw== To: Breno Leitao , bp@alien8.de, pawan.kumar.gupta@linux.intel.com, paul@paul-moore.com Cc: leit@meta.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cpu/bugs: Disable CPU mitigations at compilation time In-Reply-To: <20230203120615.1121272-1-leitao@debian.org> References: <20230203120615.1121272-1-leitao@debian.org> Date: Sun, 11 Jun 2023 00:37:34 +0200 Message-ID: <87352z7xld.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 03 2023 at 04:06, 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. Why? What's the justification Just because we do not have not enough kernel config items yet, does not count. Thanks, tglx