Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2102756ybt; Mon, 15 Jun 2020 18:54:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRrx371DTJ5D2uVwN60rFSlV8/eWouVMspJJSG/5MJbadzF3MssMmoo0DubfhpMv+K8fz9 X-Received: by 2002:a17:906:bcfc:: with SMTP id op28mr568426ejb.237.1592272492349; Mon, 15 Jun 2020 18:54:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592272492; cv=none; d=google.com; s=arc-20160816; b=sqORav29zS3Bcr8suXI9jYgzgtL/y/kI/yNauAP9JQe6d9ApBumI44oiIYHj9t6Xa6 CW7mqMv41edx7UbG1s8fHmXKSmcU+xezu+kA24tzfZzJvwffFSA9wr+I4+fgssYGD2yS l3S4exVZ4eG18gbOVTgQl+GZmKJ240NfM8vkxcLOsiPE1GoykAVQP3Hl4C+ES7GyIIg7 ueI5XBmuU4iinF/O3o72mFctPK9XAgsoT9FjFm/2WZv+U67LuamNGzTArToK7Vi69+Rn G3QtwDVX+IvbiO3LWkUUJEKa+ft2rdrQyIoq4HyDuENyst5KgtOnBT8sxCr2ctkaWzWc 0auw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=xrIvCj2aT+zFa4RPAPLp9xQ+3XhTfVTD48t9U8Ov05M=; b=DXPG6ExYPdgFYREb49I3PAHuLagahBTmPh0+6919NcoGATRUlfwfxLTAKmugmFbXuM YkHqxxuZYj/YcW87TTGJ/eZlujQmH5t/VdKzVGp3TafJr05wY1Vzpx7rgdwCBx//ljrx x91gT+XndbAxBVJKSOsCL8tcGS8+ca7Eqg2KgZDD0gWd/tJZ6i+8KZpVqA6+7hSiR/RJ rOccOO6btXi2oWW+txgbdc3030G9dbKkZHxGVpxziwnmTxGKRw7CNOhi0JsY595DjDto hBo3zQRN+ZiytEGbFh/W/tk+E23j3yBmC4DafZ6WRFLlif5/cD8qGCW0s5mycDBNgGR0 UaoA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lj13si10180266ejb.528.2020.06.15.18.54.29; Mon, 15 Jun 2020 18:54:52 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726335AbgFPBvd (ORCPT + 99 others); Mon, 15 Jun 2020 21:51:33 -0400 Received: from mga04.intel.com ([192.55.52.120]:18586 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbgFPBvc (ORCPT ); Mon, 15 Jun 2020 21:51:32 -0400 IronPort-SDR: Iog+5KIJ7x7HcREwl57FJ6AWPpylwiXjMeEm8xrRrCdC1MrSI31ReS+GBQTVqbKY+7Jb+hHj7O lazIXsh81a0g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2020 18:51:31 -0700 IronPort-SDR: MhTL47sbS+pRc/kLZQKHQ0AQ/M0ggkjhNBL+Z0Cal3rc4x4rO0tukFSHpVcJA3lhdBbyc3DpB6 i/ucjTf5/PWw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,517,1583222400"; d="scan'208";a="276757754" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.152]) by orsmga006.jf.intel.com with ESMTP; 15 Jun 2020 18:51:31 -0700 Date: Mon, 15 Jun 2020 18:51:31 -0700 From: Sean Christopherson To: Prarit Bhargava Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Tony Luck , "Peter Zijlstra (Intel)" , Rahul Tanwar , Xiaoyao Li , Ricardo Neri , Dave Hansen Subject: Re: [PATCH v3] x86/split_lock: Sanitize userspace and guest error output Message-ID: <20200616015131.GA26491@linux.intel.com> References: <20200615113900.35697-1-prarit@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200615113900.35697-1-prarit@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 15, 2020 at 07:39:00AM -0400, Prarit Bhargava wrote: > There are two problems with kernel messages in fatal mode that were found > during testing of guests and userspace programs. > > The first is that no kernel message is output when the split lock detector > is triggered with a userspace program. As a result the userspace process > dies from receiving SIGBUS with no indication to the user of what caused > the process to die. > > The second problem is that only the first triggering guest causes a kernel > message to be output because the message is output with pr_warn_once(). > This also results in a loss of information to the user. > > While fixing these I noticed that the same message was being output > three times so I'm cleaning that up too. > > Fix fatal mode output, and use consistent messages for fatal and > warn modes for both userspace and guests. > > Signed-off-by: Prarit Bhargava > Signed-off-by: Sean Christopherson This needs a Co-developed-by for me, and your SOB should come last, e.g. Co-developed-by: Sean Christopherson Signed-off-by: Sean Christopherson Signed-off-by: Prarit Bhargava See "12) When to use Acked-by:, Cc:, and Co-developed-by:" in Documentation/process/submitting-patches.rst for more details.