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 X-Spam-Level: X-Spam-Status: No, score=-20.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01321C433F5 for ; Thu, 23 Sep 2021 15:03:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DA5E3611C6 for ; Thu, 23 Sep 2021 15:03:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241887AbhIWPFF (ORCPT ); Thu, 23 Sep 2021 11:05:05 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:35056 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241892AbhIWPFA (ORCPT ); Thu, 23 Sep 2021 11:05:00 -0400 Date: Thu, 23 Sep 2021 15:03:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1632409407; 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=9a3HKppqTFE1kQSQshaEGhBBvbgpNg6MnwDGLPFNqy4=; b=khxc163DWoMdQll/4D6dQG7LFhXfjY7+szyrqzYtKsld49AYCVoUhFb8aR/bM4Ku10lHlm tvvtQiFzXUoRMLulmoqUGv2kArZ8ASa+DBGhePVG55qSSSwepByAl9CnyeOy2hsLBKkE64 nbzxDeWlkVnz+Ad68J2myteUDnNmvMaYLt+Q+mjEwBKUueKIOUPlWNXsDWS/5zWHB4VUot PXCighvSNDceP7VtFmF4GiPh6VZ9/ZadkHL/lBDjaCN9schsxeC4Kuv0TWqDkCCPryiyHW qJtzYzBK8i481/E3GEjW2XmXIHCxV3G7wWFfb24pBZtEO5hoYKZtJKMK7MTJEw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1632409407; 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=9a3HKppqTFE1kQSQshaEGhBBvbgpNg6MnwDGLPFNqy4=; b=sP7tt7P6rvVfN9WsE+i+6QniBzWgk+gV8BY2/l69bKUaeUXX5XfWEwJF/SM0xKaumZpcnA o1/fom81okzHFtDQ== From: "tip-bot2 for Borislav Petkov" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cpu] x86/umip: Downgrade warning messages to debug loglevel Cc: mrueckert@suse.com, Borislav Petkov , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210907200454.30458-1-bp@alien8.de> References: <20210907200454.30458-1-bp@alien8.de> MIME-Version: 1.0 Message-ID: <163240940683.25758.12927273059878995672.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: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/cpu branch of tip: Commit-ID: 1eefe7a85678a056951cd9efb09820c1b0a1b4da Gitweb: https://git.kernel.org/tip/1eefe7a85678a056951cd9efb09820c1b0a= 1b4da Author: Borislav Petkov AuthorDate: Wed, 15 Sep 2021 16:39:18 +02:00 Committer: Borislav Petkov CommitterDate: Thu, 23 Sep 2021 16:30:11 +02:00 x86/umip: Downgrade warning messages to debug loglevel After four years in the wild, those have not fullfilled their initial purpose of pushing people to fix their software to not use UMIP-emulated instructions, and to warn users about the degraded emulation performance. Yet, the only thing that "degrades" performance is overflowing dmesg with those: [Di Sep 7 00:24:05 2021] umip_printk: 1345 callbacks suppressed [Di Sep 7 00:24:05 2021] umip: someapp.exe[29231] ip:14064cdba sp:11b7c0: = SIDT instruction cannot be used by applications. [Di Sep 7 00:24:05 2021] umip: someapp.exe[29231] ip:14064cdba sp:11b7c0: = For now, expensive software emulation returns the result. ... [Di Sep 7 00:26:06 2021] umip_printk: 2227 callbacks suppressed [Di Sep 7 00:26:06 2021] umip: someapp.exe[29231] ip:14064cdba sp:11b940: = SIDT instruction cannot be used by applications. and users don't really care about that - they just want to play their games in wine. So convert those to debug loglevel - in case someone is still interested in them, someone can boot with "debug" on the kernel cmdline. Reported-by: Marcus R=C3=BCckert Signed-off-by: Borislav Petkov Link: https://lkml.kernel.org/r/20210907200454.30458-1-bp@alien8.de --- arch/x86/kernel/umip.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/umip.c b/arch/x86/kernel/umip.c index 576b47e..5a4b213 100644 --- a/arch/x86/kernel/umip.c +++ b/arch/x86/kernel/umip.c @@ -92,8 +92,8 @@ static const char * const umip_insns[5] =3D { =20 #define umip_pr_err(regs, fmt, ...) \ umip_printk(regs, KERN_ERR, fmt, ##__VA_ARGS__) -#define umip_pr_warn(regs, fmt, ...) \ - umip_printk(regs, KERN_WARNING, fmt, ##__VA_ARGS__) +#define umip_pr_debug(regs, fmt, ...) \ + umip_printk(regs, KERN_DEBUG, fmt, ##__VA_ARGS__) =20 /** * umip_printk() - Print a rate-limited message @@ -361,10 +361,10 @@ bool fixup_umip_exception(struct pt_regs *regs) if (umip_inst < 0) return false; =20 - umip_pr_warn(regs, "%s instruction cannot be used by applications.\n", + umip_pr_debug(regs, "%s instruction cannot be used by applications.\n", umip_insns[umip_inst]); =20 - umip_pr_warn(regs, "For now, expensive software emulation returns the resul= t.\n"); + umip_pr_debug(regs, "For now, expensive software emulation returns the resu= lt.\n"); =20 if (emulate_umip_insn(&insn, umip_inst, dummy_data, &dummy_data_size, user_64bit_mode(regs)))