]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec...
authorDavid S. Miller <davem@davemloft.net>
Thu, 9 Apr 2015 18:41:47 +0000 (14:41 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Apr 2015 18:41:47 +0000 (14:41 -0400)
Steffen Klassert says:

====================
pull request (net-next): ipsec-next 2015-04-09

1) Prohibit the use/abuse of the xfrm netlink interface on
   32/64 bit compatibility tasks. We need a full compat
   layer before we can allow this. From Fan Du.

Please pull or let me know if there are problems.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_user.c

index 7de2ed9ec46ddd003ef3db00554335a12f95cb89..2091664295bae1a3a4725287e5d0bf5cfb28357c 100644 (file)
@@ -2423,6 +2423,11 @@ static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
        const struct xfrm_link *link;
        int type, err;
 
+#ifdef CONFIG_COMPAT
+       if (is_compat_task())
+               return -ENOTSUPP;
+#endif
+
        type = nlh->nlmsg_type;
        if (type > XFRM_MSG_MAX)
                return -EINVAL;