Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250710000328.GT1827@brightrain.aerifal.cx>
Date: Wed, 9 Jul 2025 20:03:28 -0400
From: Rich Felker <dalias@...c.org>
To: Stephen Von Takach <steve@...ce.technology>
Cc: musl@...ts.openwall.com, Viv Briffa <viv@...ce.technology>
Subject: Re: unlink on NFS volume fails silently

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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.