From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753594AbdCHPoQ (ORCPT ); Wed, 8 Mar 2017 10:44:16 -0500 Received: from foss.arm.com ([217.140.101.70]:60790 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752665AbdCHPoK (ORCPT ); Wed, 8 Mar 2017 10:44:10 -0500 Date: Wed, 8 Mar 2017 15:43:57 +0000 From: Mark Rutland To: Dmitry Vyukov Cc: Will Deacon , Peter Zijlstra , Andrew Morton , Andrey Ryabinin , Ingo Molnar , kasan-dev , "linux-mm@kvack.org" , LKML , "x86@kernel.org" Subject: Re: [PATCH] x86, kasan: add KASAN checks to atomic operations Message-ID: <20170308154357.GB13133@leverpostej> References: <20170306124254.77615-1-dvyukov@google.com> <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> 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 On Wed, Mar 08, 2017 at 04:27:11PM +0100, Dmitry Vyukov wrote: > On Wed, Mar 8, 2017 at 4:20 PM, Mark Rutland wrote: > > As in my other reply, I'd prefer that we wrapped the (arch-specific) > > atomic implementations such that we can instrument them explicitly in a > > core header. That means that the implementation and semantics of the > > atomics don't change at all. > > > > Note that we could initially do this just for x86 and arm64), e.g. by > > having those explicitly include an > > at the end of their . > > How exactly do you want to do this incrementally? > I don't feel ready to shuffle all archs, but doing x86 in one patch > and then arm64 in another looks tractable. I guess we'd have three patches: one adding the header and any core infrastructure, followed by separate patches migrating arm64 and x86 over. Thanks, Mark.