From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 86B44C55182 for ; Mon, 3 Aug 2026 18:08:22 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wqx5D-0006Pe-7h; Mon, 03 Aug 2026 14:08:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wqx5C-0006PW-7L for qemu-devel@nongnu.org; Mon, 03 Aug 2026 14:08:14 -0400 Received: from mail-out.m-online.net ([212.18.0.9]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wqx5A-0002Uc-9v for qemu-devel@nongnu.org; Mon, 03 Aug 2026 14:08:13 -0400 Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by mail-out.m-online.net (Postfix) with ESMTP id 4hDPmS6MYCz1r8mH; Mon, 3 Aug 2026 20:08:08 +0200 (CEST) Received: from frontend03.mail.m-online.net (unknown [192.168.6.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4hDPmS498Sz1r8mD; Mon, 3 Aug 2026 20:08:08 +0200 (CEST) Received: from localhost (dynscan3.mnet-online.de [192.168.6.87]) by mail.m-online.net (Postfix) with ESMTP id 4hDPmS3jH2z1qqlR; Mon, 3 Aug 2026 20:08:08 +0200 (CEST) X-Virus-Scanned: amavis at mnet-online.de Received: from mail.mnet-online.de ([192.168.6.182]) by localhost (dynscan3.mail.m-online.net [192.168.6.87]) (amavis, port 10024) with ESMTP id GLFg8kdflT3u; Mon, 3 Aug 2026 20:08:07 +0200 (CEST) X-Auth-Info: KVQMtLA5ACx1Cqdgze3f+LESlC9idEpOqwTX554b2Q3NQfFz1BMiNGyMfXRoWqQO Received: from igel.home (aftr-62-216-202-244.dynamic.mnet-online.de [62.216.202.244]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 3 Aug 2026 20:08:07 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 0FE892C0AE6; Mon, 03 Aug 2026 20:08:07 +0200 (CEST) From: Andreas Schwab To: Helge Deller Cc: Peter Maydell , Helge Deller , qemu-devel@nongnu.org Subject: Re: [PATCH] linux-user: Fix msqid_ds struct wrt 32-bit big endian architectures In-Reply-To: References: <20260728192913.61279-1-deller@kernel.org> <244987da-f6d8-47a8-ac4a-16a71c660e36@gmx.de> Date: Mon, 03 Aug 2026 20:08:06 +0200 Message-ID: <87ecgfkrg9.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=212.18.0.9; envelope-from=whitebox@nefkom.net; helo=mail-out.m-online.net X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.248, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.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. -- 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."