Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3538036ybc; Thu, 21 Nov 2019 09:46:56 -0800 (PST) X-Google-Smtp-Source: APXvYqx+Wuz+KIC6EfIotTVJr+OmJVPdTxMwF13jVI73Ut5R64SenZTdEu+jRRA+b35jAsoEYMRn X-Received: by 2002:a1c:f404:: with SMTP id z4mr11603085wma.12.1574358416353; Thu, 21 Nov 2019 09:46:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574358416; cv=none; d=google.com; s=arc-20160816; b=xRWeq4bJNuSEfrvMfh716IXk3VtpoUNFt2CycFe/u3VpI8AJ2Gt+Bt1AXA2riZ9HfT BUkaHh0sHOYoNoPGzsvZSWhMPm8tbSa3ufve/V2CXGp6mOF/pPDjnxknfI16qoMqRjk+ FJJ2hYjjrbVTZhMWwWY8EGRKLAb1fGNIablewNRT1Rv/bq2NEbYdwgoBS6I3l4/FeoKy yRF4eyfuliPJpWi51wtGge7CnLSvUunfn3rlATrkRPt739GwlFmWohCkouFw6vu0nZ2x vuxvKaL8dM9G5gfmkgrUBeV1VBL6EWo7r1hiaVyNQPl01uiaMbOf8Y85owj7L6d7+Ska j04A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=hAF1OF3UGj3WkGsWLSI+6lHgBwX/uIi3TZukyNe28/I=; b=L4q5Tyzsj5BSIdS/42TgZfPz2Wp9Wy5YfsRFdjwAvfOoeo3E81dr5oT6EqVsfRcokC CRGaZgeZrUsaCVYQKDST9vpfnIlKcNsoeBzULCLfd+Jh6ku5ioHlL/H5zapZspDr4hp/ nZcfEfAYVK6x6epal7/QdR1QuAUqJNexqrueYBcCjnh/5gscTJH4Y9gsa+a23Q7kiXUf stxyL37afVBwhAUqsekX7B4JXDQEEagPyYmsplgTfVeIACEGIIpMf4aIYIk8QvI7HSuR DMnn/LHQFXzgzKQcXeCCBEGClmUL0i20n/gP96vtnIfex3vfTMraogmOM+ffw9KvWFI1 oy7A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k51si2901187edb.411.2019.11.21.09.46.31; Thu, 21 Nov 2019 09:46:56 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726735AbfKURn5 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 21 Nov 2019 12:43:57 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:27756 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726279AbfKURn5 (ORCPT ); Thu, 21 Nov 2019 12:43:57 -0500 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mtapsc-6-dpIAySJ5Mz6x9EvXe7vC1g-1; Thu, 21 Nov 2019 17:43:52 +0000 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 21 Nov 2019 17:43:51 +0000 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Thu, 21 Nov 2019 17:43:51 +0000 From: David Laight To: 'Ingo Molnar' , Peter Zijlstra CC: Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Tony Luck , Ashok Raj , Ravi V Shankar , linux-kernel , x86 Subject: RE: [PATCH v10 6/6] x86/split_lock: Enable split lock detection by kernel parameter Thread-Topic: [PATCH v10 6/6] x86/split_lock: Enable split lock detection by kernel parameter Thread-Index: AQHVoI7WvnywFDJ0u0KDgd00OvHm6qeV5GjQ Date: Thu, 21 Nov 2019 17:43:51 +0000 Message-ID: <3481175cbe14457a947f934343946d52@AcuMS.aculab.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> In-Reply-To: <20191121171214.GD12042@gmail.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-MC-Unique: dpIAySJ5Mz6x9EvXe7vC1g-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ingo Molnar > Sent: 21 November 2019 17:12 > * Peter Zijlstra wrote: ... > > This feature MUST be default enabled, otherwise everything will > > be/remain broken and we'll end up in the situation where you can't use > > it even if you wanted to. > > Agreed. Before it can be enabled by default someone needs to go through the kernel and fix all the code that abuses the 'bit' functions by using them on int[] instead of long[]. I've only seen one fix go through for one use case of one piece of code that repeatedly uses potentially misaligned int[] arrays for bitmasks. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)