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. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
ba423fdaa5
commit
b1ea9ff6af
@ -20,6 +20,7 @@
|
||||
#include <linux/kallsyms.h>
|
||||
#include <linux/if_vlan.h>
|
||||
#include <linux/vmalloc.h>
|
||||
#include <linux/sockptr.h>
|
||||
#include <crypto/sha.h>
|
||||
|
||||
#include <net/sch_generic.h>
|
||||
@ -1276,7 +1277,7 @@ struct bpf_sockopt_kern {
|
||||
s32 retval;
|
||||
};
|
||||
|
||||
int copy_bpf_fprog_from_user(struct sock_fprog *dst, void __user *src, int len);
|
||||
int copy_bpf_fprog_from_user(struct sock_fprog *dst, sockptr_t src, int len);
|
||||
|
||||
struct bpf_sk_lookup_kern {
|
||||
u16 family;
|
||||
|
||||
Reference in New Issue
Block a user