jianhai / rpms / kernel

Forked from rpms/kernel 3 years ago
Clone
e293be
diff -up ./kernel/bpf/syscall.c.u32 ./kernel/bpf/syscall.c
e293be
--- ./kernel/bpf/syscall.c.u32	2018-10-05 05:18:19.000000000 +0900
e293be
+++ ./kernel/bpf/syscall.c	2018-10-30 22:16:32.000000000 +0900
e293be
@@ -1576,7 +1576,7 @@ static int bpf_prog_get_info_by_fd(struc
e293be
 	info.nr_map_ids = prog->aux->used_map_cnt;
e293be
 	ulen = min_t(u32, info.nr_map_ids, ulen);
e293be
 	if (ulen) {
e293be
-		u32 *user_map_ids = (u32 *)info.map_ids;
e293be
+		u32 *user_map_ids = (u32 *)(unsigned long)info.map_ids;
e293be
 		u32 i;
e293be
 
e293be
 		for (i = 0; i < ulen; i++)