]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: do compat setsockopt for MCAST_MSFILTER directly
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 30 Mar 2020 19:39:43 +0000 (15:39 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 May 2020 00:31:28 +0000 (20:31 -0400)
commitbe3ebaacc76b7699bdcaa9e7d5a970857f430b47
tree5b961e119043bd1ad29abda4569528686a06297e
parent53097a483b28f4e08445e0a6fce1b74ed80c1485
ipv4: do compat setsockopt for MCAST_MSFILTER directly

Parallel to what the native setsockopt() does, except that unlike
the native setsockopt() we do not use memdup_user() - we want
the sockaddr_storage fields properly aligned, so we allocate
4 bytes more and copy compat_group_filter at the offset 4,
which yields the proper alignments.

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