From: Michael Jeanson <mjeanson@efficios.com>
To: Mark Brown <broonie@kernel.org>
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
Peter Zijlstra <peterz@infradead.org>,
"Paul E. McKenney" <paulmck@kernel.org>,
Boqun Feng <boqun.feng@gmail.com>, Shuah Khan <shuah@kernel.org>,
linux-kselftest@vger.kernel.org, Aishwarya.TCV@arm.com,
Paolo Bonzini <pbonzini@redhat.com>,
kvm@vger.kernel.org
Subject: Re: [PATCH] rseq/selftests: ensure the rseq abi TLS is actually 1024 bytes
Date: Tue, 18 Mar 2025 10:50:58 -0400 [thread overview]
Message-ID: <f61ded41-b1b8-4d0b-aff0-df7e0f5bab0d@efficios.com> (raw)
In-Reply-To: <78518446-083c-4db1-8c96-61fd49eddd8e@sirena.org.uk>
On 2025-03-18 10:01, Mark Brown wrote:
> On Tue, Mar 11, 2025 at 03:21:45PM -0400, Michael Jeanson wrote:
>
>> Adding the aligned(1024) attribute to the definition of __rseq_abi did
>> not increase its size to 1024, for this attribute to impact the size of
>> __rseq_abi it would need to be added to the declaration of 'struct
>> rseq_abi'. We only want to increase the size of the TLS allocation to
>> ensure registration will succeed with future extended ABI. Use a union
>> with a dummy member to ensure we allocate 1024 bytes.
>
> This is in today's -next and breaks the build of the KVM selftests:
>
> In file included from rseq_test.c:24:
> /home/broonie/git/bisect/usr/include/linux/rseq.h:62:1: error: use of 'rseq' with tag type that does not match previous declaration
> 62 | struct rseq {
> | ^
> ./../rseq/rseq.c:78:7: note: previous use is here
> 78 | union rseq {
> | ^
> In file included from rseq_test.c:24:
> /home/broonie/git/bisect/usr/include/linux/rseq.h:62:8: error: redefinition of 'rseq'
> 62 | struct rseq {
> | ^
> ./../rseq/rseq.c:78:7: note: previous definition is here
> 78 | union rseq {
> | ^
>
> since unlike the rseq tests the KVM rseq test includes the UAPI header
> for rseq which the padded union conflicts with.
Oh, I missed that, we need a more unique name for the union.
I'm unfamiliar with the workflow of linux-next, should I send a V2 of
the current patch, or a new one that applies on top?
Thanks,
Michael
next prev parent reply other threads:[~2025-03-18 14:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-11 19:21 Michael Jeanson
2025-03-12 12:28 ` [tip: sched/core] rseq/selftests: Ensure the rseq ABI " tip-bot2 for Michael Jeanson
2025-03-18 14:01 ` [PATCH] rseq/selftests: ensure the rseq abi " Mark Brown
2025-03-18 14:50 ` Michael Jeanson [this message]
2025-03-18 15:11 ` Mark Brown
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=f61ded41-b1b8-4d0b-aff0-df7e0f5bab0d@efficios.com \
--to=mjeanson@efficios.com \
--cc=Aishwarya.TCV@arm.com \
--cc=boqun.feng@gmail.com \
--cc=broonie@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mingo@kernel.org \
--cc=paulmck@kernel.org \
--cc=pbonzini@redhat.com \
--cc=peterz@infradead.org \
--cc=shuah@kernel.org \
/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®