From: Andreas Schwab <schwab@linux-m68k.org>
To: Helge Deller <deller@kernel.org>
Cc: Peter Maydell <peter.maydell@linaro.org>,
Helge Deller <deller@gmx.de>,
qemu-devel@nongnu.org
Subject: Re: [PATCH] linux-user: Fix msqid_ds struct wrt 32-bit big endian architectures
Date: Mon, 03 Aug 2026 23:42:03 +0200 [thread overview]
Message-ID: <87y0emkhjo.fsf@igel.home> (raw)
In-Reply-To: <anEBr8nK-4nKmuXj@p100>
On Aug 03 2026, Helge Deller wrote:
> * Andreas Schwab <schwab@linux-m68k.org>:
>> On Aug 01 2026, Helge Deller wrote:
>>
>> > m68k could be a problem.
>> > The other big-arches seem to be handled correctly by the kernel:
>> > arch/sparc/include/uapi/asm/msgbuf.h:struct msqid64_ds {
>> > arch/parisc/include/uapi/asm/msgbuf.h:struct msqid64_ds {
>> > arch/xtensa/include/uapi/asm/msgbuf.h:struct msqid64_ds {
>> > arch/x86/include/uapi/asm/msgbuf.h:struct msqid64_ds {
>> > arch/powerpc/include/uapi/asm/msgbuf.h:struct msqid64_ds {
>> > arch/mips/include/uapi/asm/msgbuf.h:struct msqid64_ds {
>> > arch/mips/include/uapi/asm/msgbuf.h:struct msqid64_ds {
>> > arch/mips/include/uapi/asm/msgbuf.h:struct msqid64_ds {
>>
>> glibc commit 9f9feb6d5d says:
>>
>> * Some older 32-bit big-endian architectures have padding before
>> rather than after time fields, although the preferred generic
>> approach is padding after the time fields independent of endianness.
>>
>> and m68k uses the "preferred" approach.
>
> Thanks for the info, Andreas!
> The msgctl01 LTP testcase does work correctly on a physical m68k
> machine for me, so glibc/kernel seems ok, esp. regarding msqid64_ds.
Which glibc version did you test? Did you test _TIME_BITS=64? This
"preferred" approach does not really make any sense at all.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
next prev parent reply other threads:[~2026-08-03 21:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-28 19:29 [PATCH] linux-user: Fix msqid_ds struct wrt 32-bit big endian architectures Helge Deller
2026-07-31 18:05 ` Peter Maydell
2026-07-31 19:36 ` Helge Deller
2026-08-01 12:11 ` Peter Maydell
2026-08-01 20:58 ` Helge Deller
2026-08-01 21:38 ` Helge Deller
2026-08-03 11:53 ` Geert Uytterhoeven
2026-08-03 17:47 ` Andreas Schwab
2026-08-03 18:08 ` Andreas Schwab
2026-08-03 21:01 ` Helge Deller
2026-08-03 21:42 ` Andreas Schwab [this message]
2026-08-04 6:30 ` Helge Deller
2026-08-07 13:12 ` Peter Maydell
2026-08-07 15:08 ` Helge Deller
2026-08-07 17:03 ` Andreas Schwab
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=87y0emkhjo.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=deller@gmx.de \
--cc=deller@kernel.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.