[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <52c19a08-0aaa-8ed3-1bca-782bf9cfbe90@virtuozzo.com>
Date: Fri, 16 Jun 2017 19:08:36 +0300
From: Andrey Ryabinin <aryabinin@...tuozzo.com>
To: Dmitry Vyukov <dvyukov@...gle.com>, mark.rutland@....com,
peterz@...radead.org, mingo@...hat.com, will.deacon@....com,
hpa@...or.com
Cc: Andrew Morton <akpm@...ux-foundation.org>,
kasan-dev@...glegroups.com, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, x86@...nel.org
Subject: Re: [PATCH v3 6/7] asm-generic: add KASAN instrumentation to atomic
operations
On 06/06/2017 01:11 PM, Dmitry Vyukov wrote:
> KASAN uses compiler instrumentation to intercept all memory accesses.
> But it does not see memory accesses done in assembly code.
> One notable user of assembly code is atomic operations. Frequently,
> for example, an atomic reference decrement is the last access to an
> object and a good candidate for a racy use-after-free.
>
> Add manual KASAN checks to atomic operations.
>
> Signed-off-by: Dmitry Vyukov <dvyukov@...gle.com>
> Cc: Mark Rutland <mark.rutland@....com>
> Cc: Peter Zijlstra <peterz@...radead.org>
> Cc: Will Deacon <will.deacon@....com>,
> Cc: Andrew Morton <akpm@...ux-foundation.org>,
> Cc: Andrey Ryabinin <aryabinin@...tuozzo.com>,
> Cc: Ingo Molnar <mingo@...hat.com>,
> Cc: kasan-dev@...glegroups.com
> Cc: linux-mm@...ck.org
> Cc: linux-kernel@...r.kernel.org
> Cc: x86@...nel.org
> ---
Reviewed-by: Andrey Ryabinin <aryabinin@...tuozzo.com>
Powered by blists - more mailing lists