Thread (10 messages) 10 messages, 5 authors, 2023-07-03

Re: [PATCH 1/3] kcsan: Don't expect 64 bits atomic builtins from 32 bits architectures

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2023-06-09 12:56:56
Also in: lkml

Christophe Leroy [off-list ref] writes:
Le 12/05/2023 à 18:09, Marco Elver a écrit :
quoted
On Fri, 12 May 2023 at 17:31, Christophe Leroy
[off-list ref] wrote:
quoted
Activating KCSAN on a 32 bits architecture leads to the following
link-time failure:

     LD      .tmp_vmlinux.kallsyms1
   powerpc64-linux-ld: kernel/kcsan/core.o: in function `__tsan_atomic64_load':
   kernel/kcsan/core.c:1273: undefined reference to `__atomic_load_8'
   powerpc64-linux-ld: kernel/kcsan/core.o: in function `__tsan_atomic64_store':
   kernel/kcsan/core.c:1273: undefined reference to `__atomic_store_8'
...
quoted
quoted
32 bits architectures don't have 64 bits atomic builtins. Only
include DEFINE_TSAN_ATOMIC_OPS(64) on 64 bits architectures.

Fixes: 0f8ad5f2e934 ("kcsan: Add support for atomic builtins")
Suggested-by: Marco Elver <elver@google.com>
Signed-off-by: Christophe Leroy <redacted>
Reviewed-by: Marco Elver <elver@google.com>

Do you have your own tree to take this through with the other patches?
I don't have my own tree but I guess that it can be taken by Michael for 
6.5 via powerpc tree with acks from you and Max.

Michael is that ok for you ?
Yeah I can take it.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help