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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5000C6FD18 for ; Sat, 22 Apr 2023 10:20:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229479AbjDVKUB (ORCPT ); Sat, 22 Apr 2023 06:20:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230091AbjDVKTv (ORCPT ); Sat, 22 Apr 2023 06:19:51 -0400 X-Greylist: delayed 378 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 22 Apr 2023 03:19:41 PDT Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D3A22111 for ; Sat, 22 Apr 2023 03:19:41 -0700 (PDT) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Q3RzH47HLz1r1sW; Sat, 22 Apr 2023 12:12:43 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Q3RzH3QQ5z1qqlS; Sat, 22 Apr 2023 12:12:43 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id ktthNwD5K6-z; Sat, 22 Apr 2023 12:12:42 +0200 (CEST) X-Auth-Info: LoiM91Fw20fospe9SzUamdOuBGFCEhjyT0EHLwlzVhDn4G6o+cpGtFqEW2BEXAZw Received: from igel.home (aftr-82-135-86-35.dynamic.mnet-online.de [82.135.86.35]) (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; Sat, 22 Apr 2023 12:12:42 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 43E0C2C155D; Sat, 22 Apr 2023 12:12:42 +0200 (CEST) From: Andreas Schwab To: Michael Schmitz Cc: Finn Thain , debian-68k@lists.debian.org, linux-m68k@lists.linux-m68k.org Subject: Re: reliable reproducer, was Re: core dump analysis In-Reply-To: (Michael Schmitz's message of "Sat, 22 Apr 2023 20:16:01 +1200") References: <4a9c1d0d-07aa-792e-921f-237d5a30fc44.ref@yahoo.com> <60109ace-4e55-29da-86d9-35e931b11134@gmail.com> <54597ab3-2776-2a55-9952-3bfbbc329829@linux-m68k.org> <406cb339-0a0c-4d71-9b5c-c11568793c14@gmail.com> <71af7b52-a1d4-581c-d5af-afce6991c48d@gmail.com> <7ea095ba-7df1-1ffe-e87d-12d46ebe72f6@gmail.com> <2fdc2819-526a-756f-19d0-ac1147f85b63@linux-m68k.org> <868b5214-fa13-dcf7-a671-9843169eea06@gmail.com> <87fs8sz6e9.fsf@igel.home> X-Yow: Then, it's off to RED CHINA!! Date: Sat, 22 Apr 2023 12:12:42 +0200 Message-ID: <878rekz0md.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-m68k@vger.kernel.org On Apr 22 2023, Michael Schmitz wrote: > This is the definition from the kernel's > include/uapi/asm-generic/ucontext.h: That's not actually used by m68k, it uses arch/m68k/include/asm/ucontext.h, which confusingly isn't an uapi header. > And this is /usr/include/sys/ucontext.h: > > /* Userlevel context. */ > typedef struct ucontext > { > unsigned long int uc_flags; > struct ucontext *uc_link; > __sigset_t uc_sigmask; > stack_t uc_stack; > mcontext_t uc_mcontext; > long int uc_filler[174]; > } ucontext_t; > > uc_sigmask appears before uc_stack and uc_mcontext. Yes, that got fixed as part of commit 9c986f878a back in 2006. > I'm assuming libc just passes on what the kernel set, without reordering? Trying to rewrite the signal context would be prohibitive, yes. -- 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."