arm64: instrument smp_{load_acquire,store_release}
authorMark Rutland <mark.rutland@arm.com>
Tue, 9 Apr 2019 11:13:13 +0000 (12:13 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 16 Apr 2019 15:28:00 +0000 (16:28 +0100)
commit131e135f7fd14b1de7a5eb26631076705c18073f
tree501c85de2d35307d42bbf74f68add9659cbad26f
parenteea1bb2248691ed65c33daff94a253af44feb103
arm64: instrument smp_{load_acquire,store_release}

Our __smp_store_release() and __smp_load_acquire() macros use inline
assembly, which is opaque to kasan. This means that kasan can't catch
erroneous use of these.

This patch adds kasan instrumentation to both.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
[will: consistently use *p as argument to sizeof]
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/barrier.h