net/ipv6: switch ipv6_flowlabel_opt to sockptr_t
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Note that the get case is pretty weird in that it actually copies data back to userspace from setsockopt. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
ff6a4cf214
commit
86298285c9
@@ -929,7 +929,7 @@ done:
|
||||
retv = 0;
|
||||
break;
|
||||
case IPV6_FLOWLABEL_MGR:
|
||||
retv = ipv6_flowlabel_opt(sk, optval, optlen);
|
||||
retv = ipv6_flowlabel_opt(sk, USER_SOCKPTR(optval), optlen);
|
||||
break;
|
||||
case IPV6_IPSEC_POLICY:
|
||||
case IPV6_XFRM_POLICY:
|
||||
|
Reference in New Issue
Block a user