Re: [PATCH] exitz syscall

From: Theodore Ts'o
Date: Sun Nov 12 2023 - 14:13:02 EST


On Sun, Nov 12, 2023 at 10:50:10AM -0800, Linus Torvalds wrote:
>
> However, it still needs to also make sure that the memory in question
> is not file-backed etc. Which the patch I saw didn't seem to do
> either.

Well, yes. If the program isn't using a small amount of anonymous
memory, which is also mlock'ed so it doesn't get written to swap, the
rest of it is a total waste of time.

And from what I've seen from the O_PONIES debate (e.g., users
truncating files and rewriting them, and then complaining when the
top-ten score file disappears after the system crashes when they close
the OpenGL connection to the proprietary kernel driver), my basic
assumption is that anything application writers will get wrong, they
probably will....

- Ted