From patchwork Thu Oct 15 14:46:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 11839465 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 31B1E1744 for ; Thu, 15 Oct 2020 14:46:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0C7D822256 for ; Thu, 15 Oct 2020 14:46:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alien8.de header.i=@alien8.de header.b="fZhNol8I" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389265AbgJOOqr (ORCPT ); Thu, 15 Oct 2020 10:46:47 -0400 Received: from mail.skyhub.de ([5.9.137.197]:48194 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389105AbgJOOqU (ORCPT ); Thu, 15 Oct 2020 10:46:20 -0400 Received: from zn.tnic (p200300ec2f0ed2005c4d90d75300802a.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:d200:5c4d:90d7:5300:802a]) (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 4AB351EC04D1; Thu, 15 Oct 2020 16:46:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1602773179; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yWYo35+XzQdIjKwQb+3WnhjfJWr6EkLKG83NImMbM0U=; b=fZhNol8IrI4OyqN/JnoOOoPX3VFMi8ZEjg7DR5FArxPlB16MdoZyPuyCZcA6KjOLAVUwJt B7ALWXDuUK0hEkC4DTErp44jxSg6XRwicullCXHzn03zv6q6w8CJsn9X6bivfxhWaqi3pd P+DC2ULeNpor3LfSQ/3rm3tl3ccqFtk= From: Borislav Petkov To: X86 ML Cc: Thomas Renninger , Shuah Khan , Len Brown , linux-pm@vger.kernel.org, LKML Subject: [PATCH 4/4] x86/msr: Do not allow writes to MSR_IA32_ENERGY_PERF_BIAS Date: Thu, 15 Oct 2020 16:46:03 +0200 Message-Id: <20201015144603.27933-5-bp@alien8.de> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20201015144603.27933-1-bp@alien8.de> References: <20201015144603.27933-1-bp@alien8.de> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Borislav Petkov Now that all in-kernel-tree users are converted to using the sysfs file, remove the MSR from the "allowlist". Signed-off-by: Borislav Petkov --- arch/x86/kernel/msr.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/kernel/msr.c b/arch/x86/kernel/msr.c index c0d409810658..b1147862730c 100644 --- a/arch/x86/kernel/msr.c +++ b/arch/x86/kernel/msr.c @@ -99,9 +99,6 @@ static int filter_write(u32 reg) if (!__ratelimit(&fw_rs)) return 0; - if (reg == MSR_IA32_ENERGY_PERF_BIAS) - return 0; - pr_err("Write to unrecognized MSR 0x%x by %s (pid: %d). Please report to x86@kernel.org.\n", reg, current->comm, current->pid);