Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -20,6 +20,7 @@ · 19 unmodified lines | |||
| 20 | #include <linux/kallsyms.h> | 20 | #include <linux/kallsyms.h> |
| 21 | #include <linux/if_vlan.h> | 21 | #include <linux/if_vlan.h> |
| 22 | #include <linux/vmalloc.h> | 22 | #include <linux/vmalloc.h> |
| 23 | #include <linux/sockptr.h> | ||
| 23 | #include <crypto/sha.h> | 24 | #include <crypto/sha.h> |
| 24 | 25 | ||
| 25 | #include <net/sch_generic.h> | 26 | #include <net/sch_generic.h> |
| @@ -1276,7 +1277,7 @@ struct bpf_sockopt_kern { · 1250 unmodified lines | |||
| 1276 | s32 retval; | 1277 | s32 retval; |
| 1277 | }; | 1278 | }; |
| 1278 | 1279 | ||
| 1279 | int copy_bpf_fprog_from_user(struct sock_fprog *dst, void __user *src, int len); | 1280 | int copy_bpf_fprog_from_user(struct sock_fprog *dst, sockptr_t src, int len); |
| 1280 | 1281 | ||
| 1281 | struct bpf_sk_lookup_kern { | 1282 | struct bpf_sk_lookup_kern { |
| 1282 | u16 family; | 1283 | u16 family; |