]> git.baikalelectronics.ru Git - kernel.git/commit
tools: hv: daemon should subscribe only to CN_KVP_IDX group
authorTomas Hozza <thozza@redhat.com>
Wed, 13 Mar 2013 13:14:12 +0000 (14:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Mar 2013 18:23:15 +0000 (11:23 -0700)
commit718b2d2fb1c5bdf99b7e227439ed549ca1dc6818
tree49c4c260c09235cb07fd558f62186fc93e163cca
parent4d6181fc347c726badf46daca61f71651ce903f4
tools: hv: daemon should subscribe only to CN_KVP_IDX group

Previously HyperV daemon set sockaddr_nl.nl_groups to CN_KVP_IDX.
Netlink documentation says: "nl_groups is a bit mask with every bit
representing a netlink group number". Since CN_KVP_IDX value is "9"
HyperV daemon was receiving Netlink messages also from group number
"1" which is used by CGroup Rules Engine Daemon. This caused the
daemon to segfault (at least on 2.6.32 kernel).

HyperV daemon should set nl_groups to zero and specify multicast
group CN_KVP_IDX only by using socket options.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
Acked-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/hv/hv_kvp_daemon.c