Re: [PATCH 2/3] asm-generic, x86: wrap atomic operations

From: Arnd Bergmann
Date: Wed Mar 22 2017 - 07:30:54 EST


On Wed, Mar 22, 2017 at 11:42 AM, Dmitry Vyukov <dvyukov@xxxxxxxxxx> wrote:
> On Tue, Mar 21, 2017 at 10:20 PM, Arnd Bergmann <arnd@xxxxxxxx> wrote:
>> On Tue, Mar 21, 2017 at 7:06 PM, Dmitry Vyukov <dvyukov@xxxxxxxxxx> wrote:
>
> Initially I've tested with my stock gcc 4.8.4 (Ubuntu
> 4.8.4-2ubuntu1~14.04.3) and amusingly it works. But I can reproduce
> the bug with 7.0.1.

It's probably because gcc-4.8 didn't support KASAN yet, so the added
check had no effect.

Arnd