<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wayland/protocol/tests.xml, branch 1.16</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/wayland/atom/protocol/tests.xml?h=1.16</id>
<link rel='self' href='http://git.sudomsg.com/mirror/wayland/atom/protocol/tests.xml?h=1.16'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/'/>
<updated>2018-01-09T15:20:00Z</updated>
<entry>
<title>tests: Check for wrong fd delivery with zombie objects</title>
<updated>2018-01-09T15:20:00Z</updated>
<author>
<name>Derek Foreman</name>
<email>derekf@osg.samsung.com</email>
</author>
<published>2017-12-06T17:22:25Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=ff992951a7e6da0a8e54786ef7371ae420ce6c9c'/>
<id>urn:sha1:ff992951a7e6da0a8e54786ef7371ae420ce6c9c</id>
<content type='text'>
Until recently, if an event attempting to deliver an fd to a zombie
object was demarshalled after the object was made into a zombie, we
leaked the fd and left it in the buffer.

If another event attempting to deliver an fd to a live object was in that
same buffer, the zombie's fd would be delivered instead.

This test recreates that situation.

While this is a ridiculously contrived way to force this race - delivering
an event from a destruction handler - I do have reports of this race
being hit in real world code.

Signed-off-by: Derek Foreman &lt;derekf@osg.samsung.com&gt;
Acked-by: Daniel Stone &lt;daniels@collabora.com&gt;
</content>
</entry>
<entry>
<title>tests: Add a test for fd leaks on zombie objects</title>
<updated>2018-01-09T15:20:00Z</updated>
<author>
<name>Derek Foreman</name>
<email>derekf@osg.samsung.com</email>
</author>
<published>2017-12-06T17:22:24Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=f74c9b98db49ce16e037c3012590c4a24a4fc32e'/>
<id>urn:sha1:f74c9b98db49ce16e037c3012590c4a24a4fc32e</id>
<content type='text'>
Until recently, if a client destroying a resource raced with the
server generating an event on that resource that delivered a file
descriptor, we would leak the fd.

This tests for a leaked fd from that race condition.

Reviewed-by: Daniel Stone &lt;daniels@collabora.com&gt;
Signed-off-by: Derek Foreman &lt;derekf@osg.samsung.com&gt;
</content>
</entry>
</feed>
