[PATCH v4 0/2] arm64: Fix kcsan test_barrier fail and panic

Kefeng Wang posted 2 patches 1 year, 11 months ago
Documentation/memory-barriers.txt | 11 ++++++-----
arch/arm64/include/asm/barrier.h  | 12 ++++++------
include/asm-generic/barrier.h     |  8 ++++++++
3 files changed, 20 insertions(+), 11 deletions(-)
[PATCH v4 0/2] arm64: Fix kcsan test_barrier fail and panic
Posted by Kefeng Wang 1 year, 11 months ago
Fix selftest and kcsan_test() module fail when KCSAN_STRICT
and KCSAN_WEAK_MEMORY enabled on ARM64.

v4:
- Use 2 spaces after a sentence-ending '.', suggested by Marco
- Collect Ack/Review

v3:
- update dma_mb()'s description and add the generic definition,
  also asm-generic change is moved into patch1, suggested by Marco.
v2:
- Add documents about dma_mb(), suggested by Mike and Will.
- drop Fixes tag and update changlog, suggested by Mike.


Kefeng Wang (2):
  asm-generic: Add memory barrier dma_mb()
  arm64: kcsan: Support detecting more missing memory barriers

 Documentation/memory-barriers.txt | 11 ++++++-----
 arch/arm64/include/asm/barrier.h  | 12 ++++++------
 include/asm-generic/barrier.h     |  8 ++++++++
 3 files changed, 20 insertions(+), 11 deletions(-)

-- 
2.35.3
Re: [PATCH v4 0/2] arm64: Fix kcsan test_barrier fail and panic
Posted by Will Deacon 1 year, 10 months ago
On Mon, 23 May 2022 19:31:24 +0800, Kefeng Wang wrote:
> Fix selftest and kcsan_test() module fail when KCSAN_STRICT
> and KCSAN_WEAK_MEMORY enabled on ARM64.
> 
> v4:
> - Use 2 spaces after a sentence-ending '.', suggested by Marco
> - Collect Ack/Review
> 
> [...]

Applied to arm64 (for-next/kcsan), thanks!

[1/2] asm-generic: Add memory barrier dma_mb()
      https://git.kernel.org/arm64/c/ed59dfd9509d
[2/2] arm64: kcsan: Support detecting more missing memory barriers
      https://git.kernel.org/arm64/c/4d09caec2fab

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev