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