News for hackers. Stuff that matters.
Re:File Descriptor Transfer over Unix Domain Sockets by EdSchouten on Monday November 02, 2020 @05:54AM (#24966659)
That's an interesting bug. Thanks for linking it here!

Many flavours of UNIX have bugs in the area of file descriptor passing. The most recent one I spotted was that FreeBSD would leak file descriptors on the receiving side if the cmsg space was too small to hold all incoming file descriptors numbers.

Another interesting one is that garbage collection of in-flight file descriptors is sometimes implemented by effectively calling close() recursively. This means that you can cause kernel panics due to kernel stack overflows by closing a socket pair that contains in-flight file descriptors of socket pairs that contain in-flight file descriptors of socket pairs that contain in-flight file descriptors of [...]

There are no comments on this comment yet.