summaryrefslogtreecommitdiff
path: root/arch/s390/include/asm/extable.h
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2022-04-19 17:40:29 +0200
committerHeiko Carstens <hca@linux.ibm.com>2022-04-25 13:54:16 +0200
commit9a07731702d9e5787770f44d2be0c15742f27e39 (patch)
treebc168a530773be7504302f62ed40c6c42b9884e9 /arch/s390/include/asm/extable.h
parent34fb0e703480a65754e1f8289d754dfc953ba8d4 (diff)
downloadlinux-9a07731702d9e5787770f44d2be0c15742f27e39.tar.gz
linux-9a07731702d9e5787770f44d2be0c15742f27e39.tar.bz2
linux-9a07731702d9e5787770f44d2be0c15742f27e39.zip
s390: add KCSAN instrumentation to barriers and spinlocks
test_barrier fails on s390 because of the missing KCSAN instrumentation for several synchronization primitives. Add it to barriers by defining __mb(), __rmb(), __wmb(), __dma_rmb() and __dma_wmb(), and letting the common code in asm-generic/barrier.h do the rest. Spinlocks require instrumentation only on the unlock path; notify KCSAN that the CPU cannot move memory accesses outside of the spin lock. In reality it also cannot move stores inside of it, but this is not important and can be omitted. Reported-by: Tobias Huschle <huschle@linux.ibm.com> Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/extable.h')
0 files changed, 0 insertions, 0 deletions