From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 751B23858C20 for ; Mon, 10 Apr 2023 21:27:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 751B23858C20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plz2j-0004QU-3P; Mon, 10 Apr 2023 17:27:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=In-Reply-To:MIME-Version:References:Subject:To:From: Date; bh=/k9phKbFMRPBi2atRiyCqiWIdCrAzvwEmGpJ9EuUQoA=; b=VAfrbytbJ1IOD0Y5+IB/ +Ax2UUDqoRygPVuVHYcMzobzCWPJ3NTaTf6Dtks3yu1XzvrUgu7N7dqd03k5aelH0mFggEmKm1Xt2 Od54jmep82wEh3ZE3UEcAIWd2KscD0fjrw568oes9I0edbkdH3Uedw1RGhNq2NSGruHu6jj37MFkg +DY789U2j03quDcDLtKIgMKh9o35rC5F9wRaoxAMRBTEb2Yd/eKyokn5cHn6XRDrZfGEGqZC7FTSL kg9hljzwgwULSuItF9WU7wO9Zi2NLuY97XB8i05InGTFW+uZLSSHydwY76VxmqmM9/J+EkAxSSYYS kCOyka/goiAA+Q==; Received: from [2a01:cb19:4a:a400:de41:a9ff:fe47:ec49] (helo=begin) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1plz2i-00055D-TI; Mon, 10 Apr 2023 17:27:16 -0400 Received: from samy by begin with local (Exim 4.96) (envelope-from ) id 1plz2h-000FpA-1D; Mon, 10 Apr 2023 23:27:15 +0200 Date: Mon, 10 Apr 2023 23:27:15 +0200 From: Samuel Thibault To: Sergey Bugaev Cc: libc-alpha@sourceware.org, bug-hurd@gnu.org Subject: Re: [RFC PATCH 00/34] The rest of the x86_64-gnu port Message-ID: <20230410212715.uqtnzrsvffjr4oih@begin> Mail-Followup-To: Sergey Bugaev , libc-alpha@sourceware.org, bug-hurd@gnu.org References: <20230319151017.531737-1-bugaevc@gmail.com> <20230410192038.6emffvywx6uclxbn@begin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Sergey Bugaev, le mar. 11 avril 2023 00:24:55 +0300, a ecrit: > On Mon, Apr 10, 2023 at 10:20 PM Samuel Thibault > wrote: > > > > Sergey Bugaev, le dim. 19 mars 2023 18:09:43 +0300, a ecrit: > > > As for sigreturn specifically: I'm concerned about the possibility that > > > putting the register dump onto the user's stack (or at %rsp - 128, on x86_64) > > > may clobber the data trampoline.c puts there (unless an altstack is used), > > > including the very sigcontext. > > > > I guess we could make sure that the offset of ctx in stackframe is not > > hit by data written by sigreturn.c. > > Right; it would be easiest to reserve enough space for the register > dump at the end of 'struct stackframe', i.e. right after the user's > stack. Indeed. Samuel