From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.linux.lib.musl.general/22220 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: unlink on NFS volume fails silently Date: Wed, 9 Jul 2025 20:03:28 -0400 Message-ID: <20250710000328.GT1827@brightrain.aerifal.cx> References: <20250708010811.GL1827@brightrain.aerifal.cx> <20250709184153.GP1827@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1324"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.9.5 (2018-04-13) Cc: musl@lists.openwall.com, Viv Briffa To: Stephen Von Takach Original-X-From: musl-return-22240-gllmg-musl=m.gmane-mx.org@lists.openwall.com Thu Jul 10 02:03:51 2025 Return-path: Envelope-to: gllmg-musl@m.gmane-mx.org Original-Received: from second.openwall.net ([193.110.157.125]) by ciao.gmane.io with smtp (Exim 4.92) (envelope-from ) id 1uZelS-0000E8-Mr for gllmg-musl@m.gmane-mx.org; Thu, 10 Jul 2025 02:03:50 +0200 Original-Received: (qmail 26037 invoked by uid 550); 10 Jul 2025 00:03:37 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: x-ms-reactions: disallow Original-Received: (qmail 26017 invoked from network); 10 Jul 2025 00:03:37 -0000 Content-Disposition: inline In-Reply-To: Xref: news.gmane.io gmane.linux.lib.musl.general:22220 Archived-At: On Thu, Jul 10, 2025 at 09:01:57AM +1000, Stephen Von Takach wrote: > We're using docker containers running on the same kernel using the same > mount setup. > Works on debian, does not work on alpine. > > The difference is at the libc interface. Unless I'm missing something, musl and glibc are doing exactly the same thing here. There is no userspace code for unlink; it's just a syscall. You can compare the glibc code at: https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/unlink.c;hb=glibc-2.41 with the musl code at: https://git.musl-libc.org/cgit/musl/tree/src/unistd/unlink.c?id=v1.2.5 If you're seeing different behavior, something else is the cause. It's almost surely what I said, a timing-dependent NFS bug. Rich