Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp560122ybz; Wed, 29 Apr 2020 05:24:07 -0700 (PDT) X-Google-Smtp-Source: APiQypKqjnh8O+SV6IY3jIuIr/BYcWi0PyEzy5Ipv2KxgAzQ2CLHYHNVhpzlabfxbC6FtiyQjdUd X-Received: by 2002:a05:6402:221b:: with SMTP id cq27mr2271282edb.65.1588163047160; Wed, 29 Apr 2020 05:24:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588163047; cv=none; d=google.com; s=arc-20160816; b=Q03C/Xesf9SFwW3ry17FBnftlgtgH0WJmmZCUXFPNvYjdy7VewUVuJ5mL76qSROWrM 71E9rk85f5DdoruY4DAjm99PldjR+hzrZ4bkzQcoQ3LkrjPDUqSMTOBWcGJakOh9z5Jv 5U30XOrGL/td2DYvoD65XrsxmogbVo3+52OnA6KVdsRfgmidfWDhy0+643ysJA1rCrLz tMQzSn4zFOVJ1DxkiGv0uA9RLhI6WysCkJmWi6LOSeHZHimV6cg7mB4d3tSIJjEqyjo6 H1g3E3RIkvwTZNU1vRmGcSGIV8x788CS5zVYG+xM+g771TvbpfYCjSEVQmnaBdTFtOXO jAYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to:date :references:subject:cc:to:from; bh=KFMPU9bpXy1hdAi0n4Z5CSQcmv2oGivxy0Catv5Nun0=; b=nKVvoEVD2GXZsg6fKljfGcZfrRiUfGihrX2OgfG9qHx1ijL7UEqra0pad8XjhGje0E XD9bDkYtPPvgPjX7mnSg6Syvu/q4Fxtp0xe/7ojuKXysuF34178e6byNMqG+pqbM1to5 2pqIqpdO1418BNPBxnSaYDQ8RdTVwyagGenzYv3gQ080ePd0lWgD5FtGQrIYXMnGMlZn qB8hbQkz4NLoXfp1mEdIbQeU890BxGVoRm0eyA8AgeVDQAQ3pN89M283FeVd/TgCLFex X49MlLpKkDPZzuckJXCiwBx6eckTGfDSVzXFOm2nlvs2B+QfHcj0xLbRQHMhwOS8jm7X PXcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gr24si3809637ejb.162.2020.04.29.05.23.42; Wed, 29 Apr 2020 05:24:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726826AbgD2MTx (ORCPT + 99 others); Wed, 29 Apr 2020 08:19:53 -0400 Received: from albireo.enyo.de ([37.24.231.21]:59794 "EHLO albireo.enyo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726524AbgD2MTw (ORCPT ); Wed, 29 Apr 2020 08:19:52 -0400 Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1jTlgg-0004vQ-DM; Wed, 29 Apr 2020 12:19:38 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1jTlgg-0000j1-AN; Wed, 29 Apr 2020 14:19:38 +0200 From: Florian Weimer To: Mathieu Desnoyers Cc: Michael Kerrisk , libc-alpha , carlos , Rich Felker , linux-api , Boqun Feng , Will Deacon , linux-kernel , Peter Zijlstra , Ben Maurer , Dave Watson , Thomas Gleixner , Paul , Paul Turner , Joseph Myers , Szabolcs Nagy Subject: Re: [PATCH glibc 5/9] glibc: Perform rseq(2) registration at C startup and thread creation (v17) References: <20200326155633.18236-1-mathieu.desnoyers@efficios.com> <20200326155633.18236-6-mathieu.desnoyers@efficios.com> <87ees9z417.fsf@mid.deneb.enyo.de> <284293396.70630.1588005648556.JavaMail.zimbra@efficios.com> <87zhawvphv.fsf@mid.deneb.enyo.de> <2102127737.70791.1588008377292.JavaMail.zimbra@efficios.com> <87ftcnrf7d.fsf@mid.deneb.enyo.de> <1080028389.72414.1588077193438.JavaMail.zimbra@efficios.com> <1862775654.72437.1588078588989.JavaMail.zimbra@efficios.com> Date: Wed, 29 Apr 2020 14:19:38 +0200 In-Reply-To: <1862775654.72437.1588078588989.JavaMail.zimbra@efficios.com> (Mathieu Desnoyers's message of "Tue, 28 Apr 2020 08:56:28 -0400 (EDT)") Message-ID: <87368mcwmd.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mathieu Desnoyers: > ----- On Apr 28, 2020, at 8:33 AM, Mathieu Desnoyers mathieu.desnoyers@efficios.com wrote: > >> ----- On Apr 28, 2020, at 8:02 AM, Florian Weimer fw@deneb.enyo.de wrote: >> > [...] >>> >>>> x32 should not be an issue as explained above, so I'm very open to >>>> add this "uptr" for user-space only. >>> >>> Okay, then please use anonymous unions and structs as necessary, to >>> ensure that the uptr field can be reached on all platforms in the same >>> way. >> >> OK, will do! > > What I came up with looks like this. User-space can use rseq_cs.uptr.ptr > both on 32-bit and 64-bit to update the pointer: Agreed, this should work.