get rid of compat_mc_getsockopt()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 30 Mar 2020 02:08:59 +0000 (22:08 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 May 2020 00:31:27 +0000 (20:31 -0400)
commit0dfe6581a7e35bafe5fc4d9b84edd0e66b4fd78a
tree7690c0c6a8fb539ca0462408935d8beba1cf8417
parent931ca7ab7fe804d77bc6952f1512950c0d870f26
get rid of compat_mc_getsockopt()

now we can do MCAST_MSFILTER in compat ->getsockopt() without
playing silly buggers with copying things back and forth.
We can form a native struct group_filter (sans the variable-length
tail) on stack, pass that + pointer to the tail of original request
to the helper doing the bulk of the work, then do the rest of
copyout - same as the native getsockopt() does.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/net/compat.h
net/compat.c
net/ipv4/ip_sockglue.c
net/ipv6/ipv6_sockglue.c