Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933225AbcKYSIx (ORCPT ); Fri, 25 Nov 2016 13:08:53 -0500 Received: from foss.arm.com ([217.140.101.70]:52620 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754835AbcKYSIm (ORCPT ); Fri, 25 Nov 2016 13:08:42 -0500 Date: Fri, 25 Nov 2016 18:07:03 +0000 From: Mark Rutland To: Linus Torvalds Cc: Dmitry Vyukov , Peter Zijlstra , Boqun Feng , Christian Borntraeger , "Michael S. Tsirkin" , LKML , Davidlohr Bueso , Davidlohr Bueso , Jason Wang , KVM list , netdev , Paul McKenney , virtualization Subject: Re: [PATCH 0/3] virtio/vringh: kill off ACCESS_ONCE() Message-ID: <20161125180649.GC30811@leverpostej> References: <32dfca07-59f3-b75a-3154-cf6b6c8538f0@de.ibm.com> <20161125122356.GB26611@leverpostej> <20161125124044.GN3092@twins.programming.kicks-ass.net> <20161125124404.GI3174@twins.programming.kicks-ass.net> <20161125145512.GA4014@Boquns-MacBook-Pro.local> <20161125161004.GA30181@leverpostej> <20161125161709.GQ3092@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 426 Lines: 14 On Fri, Nov 25, 2016 at 09:52:50AM -0800, Linus Torvalds wrote: > READ/WRITE_ONCE() are atomic *WHEN*THAT*IS*POSSIBLE*. > But sometimes it's not going to be atomic. That's the problem. Common code may rely on something being atomic when that's only true on a subset of platforms. On others, it's silently "fixed" into something that isn't atomic, and we get no diagnostic. The bug lurks beneath the surface. Thanks, Mark.