From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754283AbbJNQy5 (ORCPT ); Wed, 14 Oct 2015 12:54:57 -0400 Received: from casper.infradead.org ([85.118.1.10]:33864 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753302AbbJNQyz (ORCPT ); Wed, 14 Oct 2015 12:54:55 -0400 Date: Wed, 14 Oct 2015 18:54:51 +0200 From: Peter Zijlstra To: Dmitry Vyukov Cc: Paul McKenney , tip-bot for Andrey Ryabinin , linux-tip-commits@vger.kernel.org, kasan-dev , Ingo Molnar , Kostya Serebryany , Borislav Petkov , Andrey Ryabinin , Andrew Morton , LKML , Andy Lutomirski , Linus Torvalds , Thomas Gleixner , Sasha Levin , Denys Vlasenko , Wolfram Gloger , Andrey Konovalov , "H. Peter Anvin" , Alexander Potapenko Subject: Re: [tip:locking/urgent] compiler, atomics: Provide READ_ONCE_NOCHECK () Message-ID: <20151014165451.GV3604@twins.programming.kicks-ass.net> References: <1444750088-24444-2-git-send-email-aryabinin@virtuozzo.com> <20151014154532.GV3910@linux.vnet.ibm.com> <20151014160146.GW3910@linux.vnet.ibm.com> <20151014161615.GG3816@twins.programming.kicks-ass.net> <20151014162055.GH3816@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 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 14, 2015 at 06:34:16PM +0200, Dmitry Vyukov wrote: > On Wed, Oct 14, 2015 at 6:20 PM, Peter Zijlstra wrote: > > On Wed, Oct 14, 2015 at 06:18:58PM +0200, Dmitry Vyukov wrote: > >> > >> Well, if another thread writes it byte-by-byte, it pretty much does > >> not matter how you read it. > >> Note that I said "at least one access is not atomic". If both are > >> atomic, then this is, of course, legal. And KTSAN considers > >> READ/WRITE_ONCE as atomic operations. > > > > OK, then I'm confused on what exactly the annotation does, but less > > worried. > > The plan is to make READ_ONCE_NOCHECK ignored by KTSAN, just it is > ignored by KASAN. So that it never leads to a report ("not checked"). Would a _NOKSAN suffix not be more appropriate? NOCHECK seems somewhat generic.