Re: [REGRESSION] mold linker depends on ETXTBSY, but open(2) no longer returns it

From: Linus Torvalds
Date: Wed Nov 27 2024 - 10:55:23 EST


On Wed, 27 Nov 2024 at 04:11, Christian Brauner <brauner@xxxxxxxxxx> wrote:
>
> Linus, it seems that the mold linker relies on the deny_write_access()
> mechanism for executables. The mold linker tries to open a file for
> writing and if ETXTBSY is returned mold falls back to creating a new
> file.

Uhhuh. Ok, unfortunate, but this is clearly a real use case, so of
course we'll revert the kernel change.

Linus