Files
linux-stable-mirror/include/linux
Martin KaFai Lau 8693e3cf0c bpf: net: Change do_ip_getsockopt() to take the sockptr_t argument
[ Upstream commit 728f064cd7 ]

Similar to the earlier patch that changes sk_getsockopt() to
take the sockptr_t argument.  This patch also changes
do_ip_getsockopt() to take the sockptr_t argument such that
a latter patch can make bpf_getsockopt(SOL_IP) to reuse
do_ip_getsockopt().

Note on the change in ip_mc_gsfget().  This function is to
return an array of sockaddr_storage in optval.  This function
is shared between ip_get_mcast_msfilter() and
compat_ip_get_mcast_msfilter().  However, the sockaddr_storage
is stored at different offset of the optval because of
the difference between group_filter and compat_group_filter.
Thus, a new 'ss_offset' argument is added to ip_mc_gsfget().

Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20220902002828.2890585-1-kafai@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Stable-dep-of: 5c3be3e0eb ("ipmr: fix incorrect parameter validation in the ip_mroute_getsockopt() function")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:21:53 -04:00
..
2024-01-25 14:37:54 -08:00
2024-02-23 08:41:51 +01:00
2024-03-26 18:21:48 -04:00
2023-12-20 15:44:30 +01:00
2023-10-25 11:54:20 +02:00
2023-11-20 11:06:46 +01:00
2023-06-21 15:45:38 +02:00
2023-08-26 15:26:57 +02:00
2024-01-25 14:37:40 -08:00
2024-02-23 08:42:11 +01:00
2023-11-28 16:54:53 +00:00
2023-10-25 11:54:13 +02:00
2023-10-25 11:54:13 +02:00
2023-05-17 11:48:09 +02:00
2024-02-23 08:41:51 +01:00