History

net: switch copy_bpf_fprog_from_user to sockptr_t

Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup.

Christoph Hellwig committed 6 years ago

Commit b1ea9ff1 parent ba423fd4 files · +11 −8Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/filter.h+2−1
@@ -20,6 +20,7 @@ · 19 unmodified lines
2020 #include <linux/kallsyms.h>
2121 #include <linux/if_vlan.h>
2222 #include <linux/vmalloc.h>
23+#include <linux/sockptr.h>
2324 #include <crypto/sha.h>
2425
2526 #include <net/sch_generic.h>
@@ -1276,7 +1277,7 @@ struct bpf_sockopt_kern { · 1250 unmodified lines
12761277 s32 retval;
12771278 };
12781279
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);
12801281
12811282 struct bpf_sk_lookup_kern {
12821283 u16 family;