Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebf4127c authored by Milan Broz's avatar Milan Broz Committed by Greg Kroah-Hartman
Browse files

kobj_uevent: Ignore if some listeners cannot handle message

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: default avatarMilan Broz <mbroz@redhat.com>
Acked-by: default avatarKay Sievers <kay.sievers@vrfy.org>
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b5fb0a03
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -282,7 +282,7 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
							    kobj_bcast_filter,
							    kobj_bcast_filter,
							    kobj);
							    kobj);
			/* ENOBUFS should be handled in userspace */
			/* ENOBUFS should be handled in userspace */
			if (retval == -ENOBUFS)
			if (retval == -ENOBUFS || retval == -ESRCH)
				retval = 0;
				retval = 0;
		} else
		} else
			retval = -ENOMEM;
			retval = -ENOMEM;