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 E3EEAC55196 for ; Mon, 3 Aug 2026 21:42:44 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wr0QH-0003aH-Ar; Mon, 03 Aug 2026 17:42:13 -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 1wr0QF-0003a9-O1 for qemu-devel@nongnu.org; Mon, 03 Aug 2026 17:42:11 -0400 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wr0QC-0006cy-KA for qemu-devel@nongnu.org; Mon, 03 Aug 2026 17:42:11 -0400 Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by mail-out.m-online.net (Postfix) with ESMTP id 4hDVWK0SlMz1sPS1; Mon, 3 Aug 2026 23:42:05 +0200 (CEST) Received: from frontend03.mail.m-online.net (unknown [192.168.6.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4hDVWJ4ZQmz1sPRv; Mon, 3 Aug 2026 23:42:04 +0200 (CEST) Received: from localhost (dynscan3.mnet-online.de [192.168.6.87]) by mail.m-online.net (Postfix) with ESMTP id 4hDVWJ43HYz1qqlR; Mon, 3 Aug 2026 23:42:04 +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 h4dtYn7OOlTl; Mon, 3 Aug 2026 23:42:03 +0200 (CEST) X-Auth-Info: rht0Z8XSvBjAOKXiiFL6nbXo12aLPP6w62m7TP1GnoR8XJKpyPTEdW3/VinfgfBt Received: from igel.home (aftr-62-216-202-112.dynamic.mnet-online.de [62.216.202.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 3 Aug 2026 23:42:03 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 282292C0AFD; Mon, 03 Aug 2026 23:42:03 +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> <87ecgfkrg9.fsf@igel.home> Date: Mon, 03 Aug 2026 23:42:03 +0200 Message-ID: <87y0emkhjo.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2001:a60:0:28:0:1:25:1; 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, 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 03 2026, Helge Deller wrote: > * Andreas Schwab : >> 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."