Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp954019rdb; Fri, 20 Oct 2023 04:38:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF991vI2APTDTFWYhPxAIHEsxRnWh6uj/yxdRnL3FCMTNhAyhjbb5s/AP7mXUkyYP7cczXi X-Received: by 2002:a05:6a20:a29a:b0:16b:e46e:1246 with SMTP id a26-20020a056a20a29a00b0016be46e1246mr1168235pzl.30.1697801924312; Fri, 20 Oct 2023 04:38:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697801924; cv=none; d=google.com; s=arc-20160816; b=mk170wknvjz9uvVhq3HcKnvTwK1l/gQBmJJDfEsemc4ghm3IhFIeDyK/aE00sEhSpb 6ekPg0JFx0Pn3TG1jkpYlnIKPYTN+rlFscyE3Oa8YSnaV2zi4YmAJYzHDjPJwoHQDlty 4yjfbHxy1gg4WCQQ78j9u5nz8hAaK+J2C3Wn/m6tPQXFSCfoA6gKm1vj3yXilZjuI0tc p3ELQqwHwHAKpRON7ip09IFlTAyp2LUt1C3kY+Vzfy5fITk29mLFZSXXi64W1+Ismlpp se0zYlBCnMGDog3JW8FaD/8IfEwq3yzo/xLUjnD+djCOo0tZKf4jMIGe2fTYeZRGRRpw U5YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=GKRFnRVzgEzMPWvDP4LSHe3bjQoMjL8CrAeIorpqOn4=; fh=TJa98jjcJcAUyvo2yQiOqi+wukdLlQU80th5XskGe8U=; b=kQoz4fBa0N1niWK30clYzkjjuk6RgD4JaNPH3yyBxrUhOQQY6io+FBvHPGAomU9NNd /VsDPcaKuVnkCeseWoGGpM1tgbYrLYfgPqgUbfqhsqGpM0YiMrnAAaE57uF+Bepc6fTK pXAk6LyrEJQqmCQPqOhS20cjO912IlvTFb0Ycf6dQwDf37P8YvfAXj/0kH9n0RtHkYu3 38LVkkY79RGUrNDyM18iH1d2/NjhFpaEcm0/XVNEnCk+5CsWVXtZDItvqNadfBp01++U lVELJw+HvWd3VrM4T1qDlBAyou1s3j6xiwjf77+kJAR5pQUO6C3ROl+UAsgrziIHguLI dJ6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=f0Y+724m; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=07jNoivW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id 6-20020a170902ee4600b001ca35cb0dbfsi1551897plo.613.2023.10.20.04.38.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 04:38:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=f0Y+724m; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=07jNoivW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id ED81E83FC38C; Fri, 20 Oct 2023 04:38:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377350AbjJTLiS (ORCPT + 99 others); Fri, 20 Oct 2023 07:38:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377207AbjJTLh1 (ORCPT ); Fri, 20 Oct 2023 07:37:27 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6BF9D6B; Fri, 20 Oct 2023 04:37:24 -0700 (PDT) Date: Fri, 20 Oct 2023 11:37:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1697801843; h=from:from:sender:sender:reply-to: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GKRFnRVzgEzMPWvDP4LSHe3bjQoMjL8CrAeIorpqOn4=; b=f0Y+724mPL51jpbXry56wLrtCfocMhUsCVexH46x8XUE2cFdvIg1W2UJ8/LOipyP2vmen6 2SOyIYMUH/PAPn414PbKWV+w+vPDU4bJJjdzC+csTOe186yAkSaAG3xstgq8ckTG7nxCU9 1FGzYYyC9ID05+gReUuktsQI8XUlKDMTn7QS1086ebJ1aR+2bqqL7HItUMJOtRtOXfooTR KFkU9FfABTUQuGQFpUbBMKrKMOa0DTopmJglMIRlyWsvMHYrJ9AJfc/ODzOS7bW+tct4aR GTe+KCCUaQIyFunFWQhIv3iWXWeXI5+VzMIeHRdRLABWt86jh3XuEOsn4Ld+Tw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1697801843; h=from:from:sender:sender:reply-to: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GKRFnRVzgEzMPWvDP4LSHe3bjQoMjL8CrAeIorpqOn4=; b=07jNoivWysCvwm4g/Aqf+dKJGVGmWPCN4v4EwBKwCagrH2wZU9LEpccuv0b47Mu9FY68qz uYnOTPDPvfCuhaBg== From: "tip-bot2 for Josh Poimboeuf" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/bugs] x86/srso: Print actual mitigation if requested mitigation isn't possible Cc: Josh Poimboeuf , Ingo Molnar , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <7e7a12ea9d85a9f76ca16a3efb71f262dee46ab1.1693889988.git.jpoimboe@kernel.org> References: <7e7a12ea9d85a9f76ca16a3efb71f262dee46ab1.1693889988.git.jpoimboe@kernel.org> MIME-Version: 1.0 Message-ID: <169780184291.3135.9499525750020085275.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 20 Oct 2023 04:38:38 -0700 (PDT) The following commit has been merged into the x86/bugs branch of tip: Commit-ID: 3fc7b28e831f15274a5526197b54a73a88620584 Gitweb: https://git.kernel.org/tip/3fc7b28e831f15274a5526197b54a73a88620584 Author: Josh Poimboeuf AuthorDate: Mon, 04 Sep 2023 22:04:50 -07:00 Committer: Borislav Petkov (AMD) CommitterDate: Fri, 20 Oct 2023 11:44:26 +02:00 x86/srso: Print actual mitigation if requested mitigation isn't possible If the kernel wasn't compiled to support the requested option, print the actual option that ends up getting used. Signed-off-by: Josh Poimboeuf Signed-off-by: Ingo Molnar Signed-off-by: Borislav Petkov (AMD) Reviewed-by: Borislav Petkov (AMD) Acked-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/7e7a12ea9d85a9f76ca16a3efb71f262dee46ab1.1693889988.git.jpoimboe@kernel.org --- arch/x86/kernel/cpu/bugs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index 2859a54..235c0e0 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -2461,7 +2461,6 @@ static void __init srso_select_mitigation(void) srso_mitigation = SRSO_MITIGATION_SAFE_RET; } else { pr_err("WARNING: kernel not compiled with CPU_SRSO.\n"); - goto pred_cmd; } break; @@ -2473,7 +2472,6 @@ static void __init srso_select_mitigation(void) } } else { pr_err("WARNING: kernel not compiled with CPU_IBPB_ENTRY.\n"); - goto pred_cmd; } break; @@ -2485,7 +2483,6 @@ static void __init srso_select_mitigation(void) } } else { pr_err("WARNING: kernel not compiled with CPU_SRSO.\n"); - goto pred_cmd; } break;