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 9DEAF385772C for ; Sat, 15 Apr 2023 06:45:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9DEAF385772C 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 1pnZfS-00038g-2G; Sat, 15 Apr 2023 02:45:50 -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=2h1qDgQWD4tdrkphtFINEGRLKv3KsIu3JGqVbu35Wbc=; b=WfD90NVCyUiv6/mHnov9 gCbdaEoLkYqK57c+ty3n+aBaBdCeykdr6sLV6Nfk9GX3kst2A9VDc28kvJmAL+A6LDEQrB3HyLBZi d0Katn+SBFESNT11Igdx2QflzM09O9sGx2jZGbRerh3ds6O63PkhE+4lYlkXr9llCJGWTJwbqsX4F s2/arSoGiuYEnBNI5EXvO4DoC/dg1Xbh0robo8dFeRvKbxkVkJe6ufSUL8k1ZDIsTi81qH/4m0QVy +6ghMFuFuW98bXb58gntAbOhY2/mnJxVcvAGNHiR6UedCszUcZDZOowmD9WtFt7ytHKJZGMnLGHp8 m9xuVUSefi/bzg==; Received: from [109.190.253.15] (helo=begin) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnZfR-0004sE-LF; Sat, 15 Apr 2023 02:45:49 -0400 Received: from samy by begin with local (Exim 4.96) (envelope-from ) id 1pnZfO-0002km-2w; Sat, 15 Apr 2023 08:45:46 +0200 Date: Sat, 15 Apr 2023 08:45:46 +0200 From: Samuel Thibault To: Sergey Bugaev Cc: libc-alpha@sourceware.org, bug-hurd@gnu.org Subject: Re: [RFC PATCH glibc v2 26/34] hurd: Remove __hurd_local_reply_port Message-ID: <20230415064546.zkrmdqcrvbczm3to@begin> Mail-Followup-To: Sergey Bugaev , libc-alpha@sourceware.org, bug-hurd@gnu.org References: <20230411201845.oias7lryrvm3cck7@begin> <20230413115812.267158-1-bugaevc@gmail.com> <20230414173332.afm47w6clabzklex@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=-1.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_BARRACUDACENTRAL,SPF_HELO_PASS,SPF_PASS,TXREP,URIBL_BLACK autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hello, Sergey Bugaev, le ven. 14 avril 2023 23:29:51 +0300, a ecrit: > On Fri, Apr 14, 2023 at 8:33 PM Samuel Thibault wrote: > > Applied with fixing the __mig_dealloc_reply_port(NULL) cases, thanks! > > By the way: that __mig_dealloc_reply_port () inside > _dl_sysdep_start_cleanup () is not doing what the author of that code > wanted it to do. It deallocates the current reply port, but while > doing that, it creates a fresh one in its place. You mean with the __mach_port_deallocate calls? > It would be nice to not deallocate __mach_{task,host}_self_ too, and > instead migrate them into the new libc.so slots. That'd need different variables names, but that should be doable easily by redirecting __mach_task_self in mach_init.h dependening on building ld.so. > Besides, are we 100% sure that after initially entering libc.so, ld.so > will never do any Mach things (RPCs) anymore? AIUI all the OS-dependent things that ld.so calls comes from dl-sysdep.c, so as long as all these are weak functions, we're safe. Samuel