Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp752343ybc; Fri, 22 Nov 2019 12:31:33 -0800 (PST) X-Google-Smtp-Source: APXvYqwU2h51TGzCH99mLbbR/oKA9yL+9VhB5Rp+lqjwI8JIIGIi7UvYVLQNA35jKhGRhr1Wm8us X-Received: by 2002:a50:946b:: with SMTP id q40mr3540356eda.70.1574454693749; Fri, 22 Nov 2019 12:31:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574454693; cv=none; d=google.com; s=arc-20160816; b=KdxC8OwbEMYV55qoIerd5hd5VqX2onPPLI+LHaFXDrBSNwtAolLk7+u6ScTugCHHc6 62uOQbN6k5kvmZD9xNcd1erwbLQmNdfivelGvhyIqluuTcIzoJgJRHNT06ecISjrm2rT wcVBNmeMMDkpm1CGo08urZPDCRxASt5tJ3Z1ZxCjLiizMdWR698yaXvA+gF6OxrLS6B0 sdj27e6m14TX33/2L2qADO9HX9Q73wkU2euolv8Rt5HFpBGxEssYbAgBB+etA97EXVio BZuaexD9Q9Xgjzx+OhP9XjOmCOM9bj2Q9cz2DXKLFa2x7x7wfL5LbQQkIJlrxBMV0Ugj g0iw== 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; bh=nfwNqJJhUgDiXPFXovpXvS9wfC2EqaHF4qZ1QWDVEGA=; b=OlRYoXXAPDBZmBqAOOTDCicXmt3ywkZb0jYuRGJHlqE1UwHVad8+DP2eJVVZ3t2yDu IMIDA5qcgTWeNxCxZ+9i1K3lgFkKbn5iE/SCUYltqArLIl0NYW/CXhONwLLC7RFJkWmt HKXEgvJHIYAaxVOS2GFeoX0G0DBn0IaOWECuL8+FXSsSvhRCu4uEbzhgHkdEKnqyOujM U5b5QLyTl1s2+vvpD04jslMVmuzo05lAUGuwfxHBtUxZVNmhqhWhet0iXXbAP/zl3cl6 GXwuKQC8cIYU93Oi+HnB4v0JQfG+77kkYCBoxQ5UdKd6kLgsQT3hzomTy2XPW8pKHPUA xLSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id w47si5798525edd.326.2019.11.22.12.31.09; Fri, 22 Nov 2019 12:31:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726961AbfKVU34 (ORCPT + 99 others); Fri, 22 Nov 2019 15:29:56 -0500 Received: from mga17.intel.com ([192.55.52.151]:27471 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726686AbfKVU3z (ORCPT ); Fri, 22 Nov 2019 15:29:55 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Nov 2019 12:29:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,231,1571727600"; d="scan'208";a="216431230" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by fmsmga001.fm.intel.com with ESMTP; 22 Nov 2019 12:29:56 -0800 Date: Fri, 22 Nov 2019 12:42:04 -0800 From: Fenghua Yu To: Peter Zijlstra Cc: "Luck, Tony" , Ingo Molnar , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , "Raj, Ashok" , "Shankar, Ravi V" , linux-kernel , x86 Subject: Re: [PATCH v10 6/6] x86/split_lock: Enable split lock detection by kernel parameter Message-ID: <20191122204204.GA192370@romley-ivt3.sc.intel.com> References: <1574297603-198156-1-git-send-email-fenghua.yu@intel.com> <1574297603-198156-7-git-send-email-fenghua.yu@intel.com> <20191121060444.GA55272@gmail.com> <20191121130153.GS4097@hirez.programming.kicks-ass.net> <20191121171214.GD12042@gmail.com> <20191121173444.GA5581@agluck-desk2.amr.corp.intel.com> <20191122105141.GY4114@hirez.programming.kicks-ass.net> <20191122152715.GA1909@hirez.programming.kicks-ass.net> <3908561D78D1C84285E8C5FCA982C28F7F4DD20D@ORSMSX115.amr.corp.intel.com> <20191122202345.GC2844@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191122202345.GC2844@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 22, 2019 at 09:23:45PM +0100, Peter Zijlstra wrote: > On Fri, Nov 22, 2019 at 06:02:04PM +0000, Luck, Tony wrote: > > > it requires we get the kernel and firmware clean, but only warns about > > > dodgy userspace, which I really don't think there is much of. > > > > > > getting the kernel clean should be pretty simple. > > > > Fenghua has a half dozen additional patches (I think they were > > all posted in previous iterations of the patch) that were found by > > code inspection, rather than by actually hitting them. > > I thought we merged at least some of that, but maybe my recollection is > faulty. At least 2 key fixes are in TIP tree: https://lore.kernel.org/lkml/157384597983.12247.8995835529288193538.tip-bot2@tip-bot2/ https://lore.kernel.org/lkml/157384597947.12247.7200239597382357556.tip-bot2@tip-bot2/ The two issues are blocking kernel boot when split lock is enabled. > > > Those should go in ahead of this. > > Yes, we should make the kernel as clean as possible before doing this. I'll send out other 6 fixes for atomic bitops shortly. These issues are found by code inspection. Thanks. -Fenghua