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
..
2023-08-30 16:23:11 +02:00
2023-11-08 17:30:47 +01:00
2023-06-28 10:28:13 +02:00
2024-01-25 14:37:54 -08:00
2023-05-17 11:47:36 +02:00
2023-11-20 11:06:52 +01:00
2024-03-26 18:21:46 -04:00
2023-12-08 08:46:16 +01:00
2024-02-23 08:42:31 +01:00
2023-12-13 18:26:57 +01:00
2023-06-05 09:07:02 +02:00
2023-06-28 10:28:08 +02:00
2024-03-01 13:16:47 +01:00
2024-02-23 08:41:51 +01:00
2023-11-28 16:54:53 +00:00
2023-09-19 12:20:23 +02:00
2023-09-23 11:01:05 +02:00
2023-10-10 21:53:33 +02:00
2023-09-19 12:20:28 +02:00
2024-02-23 08:41:53 +01:00
2023-05-17 11:47:32 +02:00
2024-03-26 18:21:48 -04:00
2023-07-27 08:43:37 +02:00
2024-03-26 18:21:45 -04:00
2023-10-10 21:53:35 +02:00
2023-10-10 21:53:33 +02:00
2024-01-25 14:37:49 -08:00
2023-08-30 16:23:19 +02:00
2023-08-16 18:21:00 +02:00
2023-12-13 18:26:56 +01:00
2023-08-30 16:23:17 +02:00
2023-12-20 15:44:30 +01:00
2023-12-08 08:46:15 +01:00
2023-05-30 12:57:45 +01:00
2024-01-25 14:37:50 -08:00
2024-02-23 08:42:18 +01:00
2023-07-27 08:43:39 +02:00
2023-09-19 12:20:06 +02:00
2024-03-26 18:21:50 -04:00
2024-03-01 13:16:51 +01:00
2023-04-20 12:10:23 +02:00
2023-12-08 08:46:08 +01:00
2024-02-23 08:42:22 +01:00
2024-03-15 10:48:22 -04:00
2024-03-15 10:48:21 -04:00
2023-11-20 11:06:56 +01:00
2023-09-19 12:20:22 +02:00
2023-10-10 21:53:28 +02:00
2023-12-20 15:44:28 +01:00
2024-03-26 18:21:53 -04:00
2023-07-27 08:43:37 +02:00
2024-03-26 18:21:45 -04:00
2023-08-26 15:26:43 +02:00
2023-10-25 11:54:20 +02:00
2023-10-25 11:54:14 +02:00
2023-11-08 17:30:43 +01:00
2023-06-21 15:45:35 +02:00
2023-04-20 12:10:29 +02:00
2024-01-05 15:12:25 +01:00
2023-06-21 15:45:35 +02:00
2023-10-10 21:53:35 +02:00
2024-03-01 13:16:51 +01:00
2024-03-15 10:48:20 -04:00
2024-03-15 10:48:20 -04:00
2023-10-25 11:54:15 +02:00
2023-08-26 15:26:48 +02:00
2024-02-23 08:42:00 +01:00
2023-09-02 09:18:12 +02:00
2024-03-26 18:21:53 -04:00
2023-11-20 11:06:46 +01:00
2023-06-21 15:45:38 +02:00
2023-06-21 15:45:38 +02:00
2023-10-10 21:53:24 +02:00
2023-09-19 12:20:04 +02:00
2023-07-27 08:43:40 +02:00
2023-04-05 11:23:36 +02:00
2023-05-17 11:47:51 +02:00
2023-08-26 15:26:57 +02:00
2023-04-05 11:23:34 +02:00
2024-01-25 14:37:40 -08:00
2023-11-20 11:06:44 +01:00
2023-11-20 11:06:52 +01:00
2024-02-23 08:42:11 +01:00
2024-03-26 18:21:52 -04:00
2023-12-13 18:27:04 +01:00
2023-07-27 08:43:58 +02:00
2024-02-23 08:41:59 +01:00
2023-11-08 17:30:47 +01:00
2024-02-23 08:42:32 +01:00
2023-08-11 11:57:55 +02:00
2024-03-26 18:21:47 -04:00
2023-05-17 11:47:31 +02:00
2023-06-05 09:07:03 +02:00
2023-05-17 11:48:19 +02: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-08-30 16:23:18 +02:00
2023-07-27 08:44:13 +02:00
2024-03-26 18:21:45 -04:00
2024-03-15 10:48:23 -04:00
2023-11-08 17:30:47 +01:00
2023-08-30 16:23:18 +02:00
2024-03-15 10:48:20 -04:00
2023-10-10 21:53:28 +02:00
2023-07-27 08:44:31 +02:00
2024-02-23 08:42:30 +01:00
2023-03-22 13:30:02 +01:00
2023-04-26 11:27:35 +02:00
2024-03-01 13:16:50 +01:00
2024-03-15 10:48:20 -04:00
2024-02-23 08:41:54 +01:00
2023-06-21 15:45:35 +02:00
2024-02-23 08:42:01 +01:00
2023-06-28 10:28:09 +02:00
2023-07-27 08:44:43 +02:00
2023-05-17 11:47:32 +02:00
2023-11-28 16:55:02 +00:00
2023-03-22 13:30:03 +01:00
2023-05-17 11:48:09 +02:00
2024-02-23 08:41:51 +01:00
2023-12-08 08:46:15 +01:00
2023-08-26 15:26:53 +02:00
2024-02-23 08:41:55 +01:00
2023-05-17 11:47:56 +02:00
2023-12-08 08:46:13 +01:00