From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14732 invoked from network); 3 Feb 2021 22:55:35 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 3 Feb 2021 22:55:35 -0000 Received: (qmail 10139 invoked by uid 550); 3 Feb 2021 22:55:31 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 10121 invoked from network); 3 Feb 2021 22:55:30 -0000 Date: Wed, 3 Feb 2021 17:55:18 -0500 From: Rich Felker To: Dominic Chen Cc: fweimer@redhat.com, musl@lists.openwall.com Message-ID: <20210203225518.GY23432@brightrain.aerifal.cx> References: <62be4b85-4a42-413e-a83f-866eab4d601a@gmail.com> <20210203192145.GW23432@brightrain.aerifal.cx> <20210203210149.GX23432@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] Incorrect thread TID caching On Wed, Feb 03, 2021 at 05:30:01PM -0500, Dominic Chen wrote: > > On 2/3/2021 4:01 PM, Rich Felker wrote: > >OK, raise should probably just be changed here to work even in vforked > >child since it seems plausible someone will use it there. It's not > >like saving the syscall actually matters here. But that's independent > >of the clone() issue. > > Sounds good, thanks! Hm, looking at how to do this now, and if clone is going to behave like _Fork, it needs to be able to run code in the child (to restore the signals is masked, etc.), which means it needs to wrap the child function passed to it. I think this is doable, but it's not entirely trivial. Rich