summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-23 09:08:51 +0300
committerDavid S. Miller <davem@davemloft.net>2020-07-25 01:41:53 +0300
commitc6d1b26a8fd4940fe5d4199311838f6c2aef0174 (patch)
tree2ea64e5549780cfb86999e08b180021026ade431 /net/ipv6
parentc8c1bbb6eb498109286739f8b6090e99313dd104 (diff)
downloadlinux-c6d1b26a8fd4940fe5d4199311838f6c2aef0174.tar.xz
net/xfrm: switch xfrm_user_policy to sockptr_t
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/ipv6_sockglue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c
index add8f7912299..56a74707c617 100644
--- a/net/ipv6/ipv6_sockglue.c
+++ b/net/ipv6/ipv6_sockglue.c
@@ -935,7 +935,8 @@ done:
retv = -EPERM;
if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
break;
- retv = xfrm_user_policy(sk, optname, optval, optlen);
+ retv = xfrm_user_policy(sk, optname, USER_SOCKPTR(optval),
+ optlen);
break;
case IPV6_ADDR_PREFERENCES: