[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1331064368-55675-1-git-send-email-avagin@openvz.org>
Date: Wed, 7 Mar 2012 00:06:08 +0400
From: Andrew Vagin <avagin@...nvz.org>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Kay Sievers <kay.sievers@...y.org>
Cc: avagin@...nvz.org, linux-hotplug@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] uevent: send events in correct order according to seqnum
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.
Signed-off-by: Andrew Vagin <avagin@...nvz.org>
---
lib/kobject_uevent.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
View attachment "0001-uevent-send-events-in-correct-order-according-to-seq.patch" of type "text/x-patch" (799 bytes)
Powered by blists - more mailing lists