Files
linux/lib
Andrew Vagin 377c2f4aa9 uevent: send events in correct order according to seqnum (v3)
commit 7b60a18da3 upstream.

The queue handling in the udev daemon assumes that the events are
ordered.

Before this patch uevent_seqnum is incremented under sequence_lock,
than an event is send uner uevent_sock_mutex. I want to say that code
contained a window between incrementing seqnum and sending an event.

This patch locks uevent_sock_mutex before incrementing uevent_seqnum.

v2: delete sequence_lock, uevent_seqnum is protected by uevent_sock_mutex
v3: unlock the mutex before the goto exit

Thanks for Kay for the comments.

Signed-off-by: Andrew Vagin <avagin@openvz.org>
Tested-By: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-04-02 09:27:09 -07:00
..
2011-10-03 11:40:37 -07:00
2011-03-11 14:25:50 +00:00
2011-06-15 20:03:59 -07:00
2011-03-31 11:26:23 -03:00
2009-11-03 16:06:53 +01:00
2011-03-31 11:26:23 -03:00
2010-07-11 22:16:32 +02:00
2010-05-25 08:07:06 -07:00
2010-04-06 15:52:11 -07:00
2010-08-09 20:45:05 -07:00
2011-06-01 16:06:04 -04:00
2010-11-22 13:25:13 +10:00
2011-05-25 08:39:52 -07:00
2011-08-15 18:31:35 -07:00
2011-11-11 09:37:12 -08:00
2011-03-31 11:26:23 -03:00
2011-03-11 15:14:48 -05:00
2010-06-16 18:08:13 +02:00
2010-01-11 09:34:05 -08:00
2011-03-31 11:26:23 -03:00
2010-05-19 22:40:47 -04:00