[Linaro-mm-sig] Re: [PATCH] epoll: try to be a _bit_ better about file lifetimes

Christian Brauner brauner at kernel.org
Fri May 10 10:55:07 UTC 2024


> For the uapi issue you describe below my take would be that we should just
> try, and hope that everyone's been dutifully using O_CLOEXEC. But maybe
> I'm biased from the gpu world, where we've been hammering it in that
> "O_CLOEXEC or bust" mantra since well over a decade. Really the only valid

Oh, we're very much on the same page. All new file descriptor types that
I've added over the years are O_CLOEXEC by default. IOW, you need to
remove O_CLOEXEC explicitly (see pidfd as an example). And imho, any new
fd type that's added should just be O_CLOEXEC by default.


More information about the dri-devel mailing list