mbox series

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

Message ID 20220523112641.170060-1-wangkefeng.wang@huawei.com (mailing list archive)
Headers show
Series arm64: Fix kcsan test_barrier fail and panic | expand

Message

Kefeng Wang May 23, 2022, 11:26 a.m. UTC
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(-)

Comments

Kefeng Wang May 23, 2022, 11:19 a.m. UTC | #1
Sorry for using wrong script with uncorrected maintainers, please ignore.

On 2022/5/23 19:26, 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
>
> 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(-)
>