tipc: fix null deref crash in compat config path
authorFlorian Westphal <fw@strlen.de>
Wed, 24 Feb 2016 16:20:17 +0000 (17:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Feb 2016 22:04:48 +0000 (17:04 -0500)
commit619b17452a388d6be69a7b28dc92310ea3f5aa65
tree4a93903e01d57de7fd532be2e2265b3f1b4ea60f
parentd25a01257e422a4bdeb426f69529d57c73b235fe
tipc: fix null deref crash in compat config path

msg.dst_sk needs to be set up with a valid socket because some callbacks
later derive the netns from it.

Fixes: 263ea09084d172d ("Revert "genl: Add genlmsg_new_unicast() for unicast message allocation")
Reported-by: Jon Maloy <maloy@donjonn.com>
Bisected-by: Jon Maloy <maloy@donjonn.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/netlink_compat.c