mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Stephen Von Takach <steve@place.technology>
To: Rich Felker <dalias@libc.org>
Cc: musl@lists.openwall.com, Viv Briffa <viv@place.technology>
Subject: Re: unlink on NFS volume fails silently
Date: Thu, 10 Jul 2025 14:58:30 +1000	[thread overview]
Message-ID: <CAASffotazEgv9gxCjeC+sh8E2bWZE2ZZhQnqypaEnwJc_5w6hw@mail.gmail.com> (raw)
In-Reply-To: <20250710000328.GT1827@brightrain.aerifal.cx>

[-- Attachment #1: Type: text/plain, Size: 1443 bytes --]

Yeah I see your point and this was closed as a kernel issue:
https://gitlab.alpinelinux.org/alpine/aports/-/issues/10960

We're running these two containers on the same kernel and seeing the same
behaviour as that alpine issue.
Happy to continue working around the issue by using debian userspace to
build our service.

It does seems crazy that there is clearly an issue, possibly a kernel issue
that is being handwaved away by all parties


Stephen von Takach Dukai

Engineering Lead

PlaceOS

Australia, Hong Kong, London, New York

p: +61 408 419 954

e: steve@place.technology


On Thu, 10 Jul 2025 at 10:03, Rich Felker <dalias@libc.org> wrote:

> 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
>

[-- Attachment #2: Type: text/html, Size: 5188 bytes --]

  reply	other threads:[~2025-07-10  4:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-06  6:25 [musl] unlink on NFS volume fails silently Stephen Von Takach
2025-07-07 18:26 ` Markus Wichmann
2025-07-08  1:08 ` Rich Felker
2025-07-09  3:59   ` [musl] " Stephen Von Takach
2025-07-09 18:41     ` Rich Felker
2025-07-09 23:01       ` [musl] " Stephen Von Takach
2025-07-10  0:03         ` Rich Felker
2025-07-10  4:58           ` Stephen Von Takach [this message]
2025-07-10 15:44             ` Rich Felker
2025-07-10 17:01               ` Nathan McSween
2025-07-10 17:11                 ` Rich Felker
2025-07-10 21:25               ` Stephen Von Takach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAASffotazEgv9gxCjeC+sh8E2bWZE2ZZhQnqypaEnwJc_5w6hw@mail.gmail.com \
    --to=steve@place.technology \
    --cc=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    --cc=viv@place.technology \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).