Re: [PATCH net-next] bpf: Fix compiler warning on info.map_ids for 32bit platform

2017-09-30 Thread David Miller
From: Martin KaFai Lau Date: Fri, 29 Sep 2017 10:52:17 -0700 > This patch uses u64_to_user_ptr() to cast info.map_ids to a userspace ptr. > It also tags the user_map_ids with '__user' for sparse check. > > Fixes: cb4d2b3f03d8 ("bpf: Add name, load_time, uid and map_ids to >

Re: [PATCH net-next] bpf: Fix compiler warning on info.map_ids for 32bit platform

2017-09-30 Thread Daniel Borkmann
On 09/29/2017 07:52 PM, Martin KaFai Lau wrote: This patch uses u64_to_user_ptr() to cast info.map_ids to a userspace ptr. It also tags the user_map_ids with '__user' for sparse check. Fixes: cb4d2b3f03d8 ("bpf: Add name, load_time, uid and map_ids to bpf_prog_info") Signed-off-by: Martin

[PATCH net-next] bpf: Fix compiler warning on info.map_ids for 32bit platform

2017-09-29 Thread Martin KaFai Lau
This patch uses u64_to_user_ptr() to cast info.map_ids to a userspace ptr. It also tags the user_map_ids with '__user' for sparse check. Fixes: cb4d2b3f03d8 ("bpf: Add name, load_time, uid and map_ids to bpf_prog_info") Signed-off-by: Martin KaFai Lau --- kernel/bpf/syscall.c | 2