Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp525044ybk; Fri, 15 May 2020 06:59:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJonvpCOOVyfLXGf8X0V3bFmAMdwPf3acaeKqUwBn+XaOXp2nkFqcsm5wmkBVKgBAeP6Nw X-Received: by 2002:a50:9b19:: with SMTP id o25mr3163632edi.141.1589551191249; Fri, 15 May 2020 06:59:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589551191; cv=none; d=google.com; s=arc-20160816; b=qiXOE258sG5fdpXBdXTMdapWLf9Zajyq9H8iQHRlO7oyjmi+xFvygpOW2Ydmyvaew9 GB1zRuzQVDqzQjxYZJiZhS/fNLQjFnZTK278u8jVWTg68VPSwufIhq+oAKUpKT80Oxkd wxKFvkLSX2daNwq6wQevA0LPN1qdyLwPy9zdClNyWUtT+mT2cRVZ1ndg0jFRCMsdTTml 7q0XQc7NpNlx0wZ0IyLDd8soTjot0gLSgKKtj0un5Mw56UfP9hlNPF2W47I0EvfUZ4B/ NpPSgQJtHODida+wVuScW3imX8c+2WZ5bPlPOkUJGGKjgTwOROh+DHW+pabfQl+6gI2Z wpOg== 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=HxTZJJ2G31PqNVUm+QXQXhntmsMYD56OhQXGGzucYr4=; b=AGIRzpuVmvfEg0pE8pQNK2yXBy8mUw1IEQ/JefKT71yhMYlntSWLvbuS7TvgCbN6Cn W7G+J52P/u17GojNmP42ZmyR6KmeNK7RCKBDHWC7NYo2TuZcjENjYGlWGObTez8urhoW hVx2udeMY6ETD2osvPNC3jTabYybSgnW9HNkEzwyPC3zfVQ/W3JDifK0WoeHFAAmYTSv XMdkfr+cZ4iO/x16u56smKgfO6sO/LegX7cOLd7hjzEUV24TMY5TAEbbK6JbOpIMFhmp 1vxCWdUcD4S217X49GcYoWv/tOcgo9zO6Aqb/397vaq0KVqilL3qBPInKVzKQzGCQ2b3 qT+Q== 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=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si1148515edx.101.2020.05.15.06.59.28; Fri, 15 May 2020 06:59:51 -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=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726174AbgEONzt convert rfc822-to-8bit (ORCPT + 99 others); Fri, 15 May 2020 09:55:49 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:36592 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbgEONzs (ORCPT ); Fri, 15 May 2020 09:55:48 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-152-DguEuvUTNmShAeVBwZOssg-1; Fri, 15 May 2020 14:55:43 +0100 X-MC-Unique: DguEuvUTNmShAeVBwZOssg-1 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; Fri, 15 May 2020 14:55:43 +0100 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; Fri, 15 May 2020 14:55:43 +0100 From: David Laight To: 'Peter Zijlstra' , Marco Elver CC: Will Deacon , kasan-dev , LKML , Thomas Gleixner , "Paul E. McKenney" , Ingo Molnar , Dmitry Vyukov Subject: RE: [PATCH v5 00/18] Rework READ_ONCE() to improve codegen Thread-Topic: [PATCH v5 00/18] Rework READ_ONCE() to improve codegen Thread-Index: AQHWKfttZor7e2JWdEKPvqldyEhGwKipLI7w Date: Fri, 15 May 2020 13:55:43 +0000 Message-ID: <26283b5bccc8402cb8c243c569676dbd@AcuMS.aculab.com> References: <20200513124021.GB20278@willie-the-truck> <20200513165008.GA24836@willie-the-truck> <20200513174747.GB24836@willie-the-truck> <20200513212520.GC28594@willie-the-truck> <20200514110537.GC4280@willie-the-truck> <20200514142450.GC2978@hirez.programming.kicks-ass.net> In-Reply-To: <20200514142450.GC2978@hirez.programming.kicks-ass.net> 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-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com 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: Peter Zijlstra > Sent: 14 May 2020 15:25 .. > Exact same requirements, KASAN even has the data_race() problem through > READ_ONCE_NOCHECK(), UBSAN doesn't and might be simpler because of it. What happens if you implement READ_ONCE_NOCHECK() with an asm() statement containing a memory load? Is that enough to kill all the instrumentation? David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)