Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp524389pxa; Wed, 19 Aug 2020 07:55:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxr5iGvObRKUa5Ys2WsM5sYXOfVZld8Tc5aY41qBEz3o6SavYYSJuIjbQshX1jQooQkoM50 X-Received: by 2002:a17:906:3b8d:: with SMTP id u13mr4838658ejf.205.1597848938132; Wed, 19 Aug 2020 07:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597848938; cv=none; d=google.com; s=arc-20160816; b=nCvmKWLD2oQ9u7mKw/5K/Wuf3X3l9gAAHjYIkzk3mvMftIUB+W9jpQFJug5/yso35Y AQGHyC3rMshZjR0dgEdVsFsRytvL+d71SDgXaztgOlayAPvo+igZ864vwUybBvuhqJo3 Sr3hU+44NV+mpzBhPTG7kv8IvynCCRWeTyT5Rbtg3hnGoRDwfFs2l0moUsW2mHiCLAdh g7IevJnl5m2jhm4nkg0vksijyZD4Tg8w9Jmp3XF9P9UIRQOpOEW/bdaI7ITOmFEOSg/M KFGT7I9+MnsWx2H3M9t8U1J+t4IxyyKgciGAQsChDprOk5NAIm6ptav11B1XR1tqybq1 pCxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=A70rq59A6Q3Nc/C3E+NfgmfDZGXvR0KV5Hb4Ux18h5c=; b=Iqt0VBeg+aNQw5DmCEYgFMPOVAxCjPHdK35ZzniACqrcHrQgwIjWEjgiZOqw0VUAHa BkjiounB5rA3s2jkfvtMB12k6YEzB19z41qiMyky/GahDTtAA6tymb0UvwopqB6DBHqk sn6wrmgIR8sgTWPunozcjLaW6Nxkh+Cneww6nI5+Zl6d4vyCrtacdjdNVUQlZPswWQ0j 3PYEyb5KY403fZSaeV82rZD83MXsF7+VdstjnvKBNNCJhZE9EMChOaVfcXTfPc2ywo4L MZuSFyf4yvPHrYiy5Jt4Z0J2EVMMHIpfmt3rjP1YL6NCSfgRrdmWyDZxBXzSK/vxurM+ 7kUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=f3ivnx41; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e7si14828345ejh.723.2020.08.19.07.55.14; Wed, 19 Aug 2020 07:55:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=f3ivnx41; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728510AbgHSOwB (ORCPT + 99 others); Wed, 19 Aug 2020 10:52:01 -0400 Received: from mail.skyhub.de ([5.9.137.197]:54474 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727773AbgHSOwA (ORCPT ); Wed, 19 Aug 2020 10:52:00 -0400 Received: from zn.tnic (p200300ec2f26be00329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ec:2f26:be00:329c:23ff:fea6:a903]) (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 C74781EC0246; Wed, 19 Aug 2020 16:51:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1597848718; 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=A70rq59A6Q3Nc/C3E+NfgmfDZGXvR0KV5Hb4Ux18h5c=; b=f3ivnx419gP8w2Ml7xRmY8cWHYckXcQm9lm+DH4qBB1wRtNZN+P22KTZdObU3jRRZ+X89u 6FnD8a7EII2N6i3iYaHLEd4eE5xAU/i7oZkNDo8jU1Aklt7TCOU8vY4WzNuJcj5AGdunLB nFndid/xRETUoa0a4qP6ckXTx0lZPMg= Date: Wed, 19 Aug 2020 16:51:58 +0200 From: Borislav Petkov To: Chris Down Cc: linux-kernel@vger.kernel.org, Jakub Kicinski , Andrew Morton , kernel-team@fb.com, sean.j.christopherson@intel.com, tony.luck@intel.com, torvalds@linux-foundation.org, x86@kernel.org Subject: Re: [PATCH 2/2] x86: Make source of unrecognised MSR writes unambiguous Message-ID: <20200819145158.GC19351@zn.tnic> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 17, 2020 at 04:24:36PM +0100, Chris Down wrote: > In many cases the comm enough isn't enough to distinguish the offender, > since for interpreted languages it's likely just going to be "python3" > or whatever. Add the pid to make it unambiguous. > > Signed-off-by: Chris Down > Cc: Borislav Petkov > Cc: Jakub Kicinski > --- > arch/x86/kernel/msr.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/kernel/msr.c b/arch/x86/kernel/msr.c > index 3babb0e58b0e..76b6b0011d62 100644 > --- a/arch/x86/kernel/msr.c > +++ b/arch/x86/kernel/msr.c > @@ -99,8 +99,9 @@ static int filter_write(u32 reg) > if (!__ratelimit(&fw_rs) || reg == MSR_IA32_ENERGY_PERF_BIAS) > return 0; > > - pr_err("Write to unrecognized MSR 0x%x by %s\n" > - "Please report to x86@kernel.org\n", reg, current->comm); > + pr_err("Write to unrecognized MSR 0x%x by pid %s:%d\n" Perhaps make that "... by %s (pid: %d)\n". -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette