From: Christophe Leroy <christophe.leroy@csgroup.eu>
To: Marco Elver <elver@google.com>, Michael Ellerman <mpe@ellerman.id.au>
Cc: Dmitry Vyukov <dvyukov@google.com>,
"Paul E. McKenney" <paulmck@kernel.org>,
Nicholas Piggin <npiggin@gmail.com>,
Chris Zankel <chris@zankel.net>,
Max Filippov <jcmvbkbc@gmail.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>,
"kasan-dev@googlegroups.com" <kasan-dev@googlegroups.com>,
Rohan McLure <rmclure@linux.ibm.com>
Subject: Re: [PATCH 1/3] kcsan: Don't expect 64 bits atomic builtins from 32 bits architectures
Date: Fri, 12 May 2023 18:39:05 +0000 [thread overview]
Message-ID: <662d074e-58cf-3bde-f454-e58d04803f34@csgroup.eu> (raw)
In-Reply-To: <CANpmjNMm-2Tdhp6rDzA7CYvotmmGmLUnZnA_35yLUvxHB=7s0g@mail.gmail.com>
Le 12/05/2023 à 18:09, Marco Elver a écrit :
> On Fri, 12 May 2023 at 17:31, Christophe Leroy
> <christophe.leroy@csgroup.eu> wrote:
>>
>> 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'
>> powerpc64-linux-ld: kernel/kcsan/core.o: in function `__tsan_atomic64_exchange':
>> kernel/kcsan/core.c:1273: undefined reference to `__atomic_exchange_8'
>> powerpc64-linux-ld: kernel/kcsan/core.o: in function `__tsan_atomic64_fetch_add':
>> kernel/kcsan/core.c:1273: undefined reference to `__atomic_fetch_add_8'
>> powerpc64-linux-ld: kernel/kcsan/core.o: in function `__tsan_atomic64_fetch_sub':
>> kernel/kcsan/core.c:1273: undefined reference to `__atomic_fetch_sub_8'
>> powerpc64-linux-ld: kernel/kcsan/core.o: in function `__tsan_atomic64_fetch_and':
>> kernel/kcsan/core.c:1273: undefined reference to `__atomic_fetch_and_8'
>> powerpc64-linux-ld: kernel/kcsan/core.o: in function `__tsan_atomic64_fetch_or':
>> kernel/kcsan/core.c:1273: undefined reference to `__atomic_fetch_or_8'
>> powerpc64-linux-ld: kernel/kcsan/core.o: in function `__tsan_atomic64_fetch_xor':
>> kernel/kcsan/core.c:1273: undefined reference to `__atomic_fetch_xor_8'
>> powerpc64-linux-ld: kernel/kcsan/core.o: in function `__tsan_atomic64_fetch_nand':
>> kernel/kcsan/core.c:1273: undefined reference to `__atomic_fetch_nand_8'
>> powerpc64-linux-ld: kernel/kcsan/core.o: in function `__tsan_atomic64_compare_exchange_strong':
>> kernel/kcsan/core.c:1273: undefined reference to `__atomic_compare_exchange_8'
>> powerpc64-linux-ld: kernel/kcsan/core.o: in function `__tsan_atomic64_compare_exchange_weak':
>> kernel/kcsan/core.c:1273: undefined reference to `__atomic_compare_exchange_8'
>> powerpc64-linux-ld: kernel/kcsan/core.o: in function `__tsan_atomic64_compare_exchange_val':
>> kernel/kcsan/core.c:1273: undefined reference to `__atomic_compare_exchange_8'
>>
>> 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 <christophe.leroy@csgroup.eu>
>
> 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 ?
Christophe
next prev parent reply other threads:[~2023-05-12 18:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-12 15:31 [PATCH 0/3] Extend KCSAN to all powerpc Christophe Leroy
2023-05-12 15:31 ` [PATCH 1/3] kcsan: Don't expect 64 bits atomic builtins from 32 bits architectures Christophe Leroy
2023-05-12 16:09 ` Marco Elver
2023-05-12 18:39 ` Christophe Leroy [this message]
2023-06-09 12:55 ` Michael Ellerman
2023-05-12 15:31 ` [PATCH 2/3] powerpc/{32,book3e}: kcsan: Extend KCSAN Support Christophe Leroy
2023-05-12 15:31 ` [PATCH 3/3] xtensa: Remove 64 bits atomic builtins stubs Christophe Leroy
2023-05-12 16:38 ` Max Filippov
2023-05-12 16:22 ` [PATCH 0/3] Extend KCSAN to all powerpc Marco Elver
2023-07-03 5:26 ` Michael Ellerman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=662d074e-58cf-3bde-f454-e58d04803f34@csgroup.eu \
--to=christophe.leroy@csgroup.eu \
--cc=chris@zankel.net \
--cc=dvyukov@google.com \
--cc=elver@google.com \
--cc=jcmvbkbc@gmail.com \
--cc=kasan-dev@googlegroups.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=npiggin@gmail.com \
--cc=paulmck@kernel.org \
--cc=rmclure@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®