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
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
1279int copy_bpf_fprog_from_user(struct sock_fprog *dst, void __user *src, int len);1280int copy_bpf_fprog_from_user(struct sock_fprog *dst, sockptr_t src, int len);
1280 1281
1281struct bpf_sk_lookup_kern {1282struct bpf_sk_lookup_kern {
1282 u16 family;1283 u16 family;