From: Eric Dumazet Date: Mon, 26 Jul 2010 20:09:16 +0000 (-0700) Subject: netlink: netlink_recvmsg() fix X-Git-Tag: v2.6.36-rc1~571^2~97 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1235f504aaba2ebeabc863fdb3ceac764a317d47;p=pandora-kernel.git netlink: netlink_recvmsg() fix commit 1dacc76d0014 (net/compat/wext: send different messages to compat tasks) introduced a race condition on netlink, in case MSG_PEEK is used. An skb given by skb_recv_datagram() might be shared, we must copy it before any modification, or risk fatal corruption. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed