net/ipv6: switch ip6_mroute_setsockopt 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>
Este cometimento está contido em:

cometido por
David S. Miller

ascendente
89654c5fcd
cometimento
b43c615313
@@ -337,7 +337,8 @@ static int do_ipv6_setsockopt(struct sock *sk, int level, int optname,
|
||||
valbool = (val != 0);
|
||||
|
||||
if (ip6_mroute_opt(optname))
|
||||
return ip6_mroute_setsockopt(sk, optname, optval, optlen);
|
||||
return ip6_mroute_setsockopt(sk, optname, USER_SOCKPTR(optval),
|
||||
optlen);
|
||||
|
||||
if (needs_rtnl)
|
||||
rtnl_lock();
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador