[kernel] r18117 - in dists/sid/linux-2.6/debian: . patches/bugfix/all patches/series

Ben Hutchings benh at alioth.debian.org
Fri Sep 23 05:16:40 UTC 2011


Author: benh
Date: Fri Sep 23 05:16:38 2011
New Revision: 18117

Log:
kobj_uevent: Ignore if some listeners cannot handle message (Closes: #641661)

Added:
   dists/sid/linux-2.6/debian/patches/bugfix/all/kobj_uevent-Ignore-if-some-listeners-cannot-handle-m.patch
Modified:
   dists/sid/linux-2.6/debian/changelog
   dists/sid/linux-2.6/debian/patches/series/5

Modified: dists/sid/linux-2.6/debian/changelog
==============================================================================
--- dists/sid/linux-2.6/debian/changelog	Fri Sep 23 05:12:28 2011	(r18116)
+++ dists/sid/linux-2.6/debian/changelog	Fri Sep 23 05:16:38 2011	(r18117)
@@ -5,6 +5,8 @@
   * fm801: Fix double free in case of error in tuner detection
   * fm801: Gracefully handle failure of tuner auto-detect (Closes: #641946)
   * block: Free queue resources at blk_release_queue() (Closes: #631187)
+  * kobj_uevent: Ignore if some listeners cannot handle message
+    (Closes: #641661)
 
  -- Ben Hutchings <ben at decadent.org.uk>  Tue, 20 Sep 2011 23:50:35 +0100
 

Added: dists/sid/linux-2.6/debian/patches/bugfix/all/kobj_uevent-Ignore-if-some-listeners-cannot-handle-m.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/sid/linux-2.6/debian/patches/bugfix/all/kobj_uevent-Ignore-if-some-listeners-cannot-handle-m.patch	Fri Sep 23 05:16:38 2011	(r18117)
@@ -0,0 +1,39 @@
+From: Milan Broz <mbroz at redhat.com>
+Date: Mon, 22 Aug 2011 15:51:34 +0200
+Subject: [PATCH] kobj_uevent: Ignore if some listeners cannot handle message
+
+commit ebf4127cd677e9781b450e44dfaaa1cc595efcaa upstream.
+
+kobject_uevent() uses a multicast socket and should ignore
+if one of listeners cannot handle messages or nobody is
+listening at all.
+
+Easily reproducible when a process in system is cloned
+with CLONE_NEWNET flag.
+
+(See also http://article.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/5256)
+
+Signed-off-by: Milan Broz <mbroz at redhat.com>
+Acked-by: Kay Sievers <kay.sievers at vrfy.org>
+Cc: stable <stable at kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
+---
+ lib/kobject_uevent.c |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
+index 70af0a7..ad72a03 100644
+--- a/lib/kobject_uevent.c
++++ b/lib/kobject_uevent.c
+@@ -282,7 +282,7 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
+ 							    kobj_bcast_filter,
+ 							    kobj);
+ 			/* ENOBUFS should be handled in userspace */
+-			if (retval == -ENOBUFS)
++			if (retval == -ENOBUFS || retval == -ESRCH)
+ 				retval = 0;
+ 		} else
+ 			retval = -ENOMEM;
+-- 
+1.7.5.4
+

Modified: dists/sid/linux-2.6/debian/patches/series/5
==============================================================================
--- dists/sid/linux-2.6/debian/patches/series/5	Fri Sep 23 05:12:28 2011	(r18116)
+++ dists/sid/linux-2.6/debian/patches/series/5	Fri Sep 23 05:16:38 2011	(r18117)
@@ -1,3 +1,4 @@
 + bugfix/all/fm801-Fix-double-free-in-case-of-error-in-tuner-dete.patch
 + bugfix/all/fm801-Gracefully-handle-failure-of-tuner-auto-detect.patch
 + bugfix/all/block-Free-queue-resources-at-blk_release_queue.patch
++ bugfix/all/kobj_uevent-Ignore-if-some-listeners-cannot-handle-m.patch



More information about the Kernel-svn-changes mailing list