From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f72.google.com (mail-it0-f72.google.com [209.85.214.72]) by kanga.kvack.org (Postfix) with ESMTP id D9CF86B038C for ; Tue, 14 Mar 2017 11:32:43 -0400 (EDT) Received: by mail-it0-f72.google.com with SMTP id 76so1709260itj.0 for ; Tue, 14 Mar 2017 08:32:43 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id x6si4094333plm.259.2017.03.14.08.32.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Mar 2017 08:32:43 -0700 (PDT) Date: Tue, 14 Mar 2017 16:32:30 +0100 From: Peter Zijlstra Subject: Re: [PATCH] x86, kasan: add KASAN checks to atomic operations Message-ID: <20170314153230.GR5680@worktop> References: <20170306125851.GL6500@twins.programming.kicks-ass.net> <20170306130107.GK6536@twins.programming.kicks-ass.net> <20170306162018.GC18519@leverpostej> <20170306203500.GR6500@twins.programming.kicks-ass.net> <20170308152027.GA13133@leverpostej> <20170308174300.GL20400@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Dmitry Vyukov Cc: Will Deacon , Mark Rutland , Andrew Morton , Andrey Ryabinin , Ingo Molnar , kasan-dev , "linux-mm@kvack.org" , LKML , "x86@kernel.org" On Tue, Mar 14, 2017 at 04:22:52PM +0100, Dmitry Vyukov wrote: > -static __always_inline int atomic_read(const atomic_t *v) > +static __always_inline int arch_atomic_read(const atomic_t *v) > { > - return READ_ONCE((v)->counter); > + return READ_ONCE_NOCHECK((v)->counter); Should NOCHEKC come with a comment, because i've no idea why this is so. > } -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org