Samsung Dealing With Wayland "Zombie Apocalypse" Bug

Written by Michael Larabel in Wayland on 22 December 2017 at 04:55 AM EST. 28 Comments
WAYLAND
Samsung OSG developers have been investigating and dealing with a nasty Wayland bug whereby a Wayland event could be delivered to an incorrect file descriptor. This ends up being due to a shortcoming in the Wayland protocol, but as to not break all existing software out there built against the current Wayland protocol, a workaround has been devised.

Longtime Wayland developer Derek Foreman has written a blog post about the "Wayland Zombie Apocalypse" and talks about this issue that comes up since file descriptors aren't part of the main data stream that in some cases they get leaked when deleting a Wayland object. The bug could lead to the file descriptor being leaked to the Wayland client and counting against the number of allowed open file descriptors, but worse could lead to unknown behavior due to events going to incorrect FDs.

With not wanting to change the protocol and break existing software, Derek has been working on improvements around Wayland's handling of file descriptor leaks and replacing a single zombie object in the client library with "an army of bespoke zombies" -- creating a zombie each time an object is instantiated and will live on past the object's lifespan.

More details on the Wayland Zombie Apocalypse via the Samsung OSG blog.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week