Skip to content

Commit c9f5886

Browse files
Milan Brozgregkh
Milan Broz
authored andcommitted
kobj_uevent: Ignore if some listeners cannot handle message
commit ebf4127 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 <[email protected]> Acked-by: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5de4a65 commit c9f5886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/kobject_uevent.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
282282
kobj_bcast_filter,
283283
kobj);
284284
/* ENOBUFS should be handled in userspace */
285-
if (retval == -ENOBUFS)
285+
if (retval == -ENOBUFS || retval == -ESRCH)
286286
retval = 0;
287287
} else
288288
retval = -ENOMEM;

0 commit comments

Comments
 (0)