Re: [PATCH RFC POC 00/50] file: handle files on syscall exit
From: Linus Torvalds
Date: Tue Sep 15 2026 - 18:58:03 EST
On Tue, 15 Sept 2026 at 15:21, Rob Clark <rob.clark@xxxxxxxxxxxxxxxx> wrote:
>
> With fd's it is more than just about error rollback.. exposing an fd
> to userspace mid-way thru an ioctl is an easy security bug to write..
That isn't very common code. It's something that is done by a few
strange cases, and yes, those cases should just do it right.
But "those few cases should do it right" does not mean "make a whole
new subsystem for this thing that makes a simple "open" actually be
slower and stranger".
Linus