Lines Matching refs:info_len
3619 u32 info_len = attr->info.info_len; in bpf_prog_get_info_by_fd() local
3625 err = bpf_check_uarg_tail_zero(USER_BPFPTR(uinfo), sizeof(info), info_len); in bpf_prog_get_info_by_fd()
3628 info_len = min_t(u32, sizeof(info), info_len); in bpf_prog_get_info_by_fd()
3631 if (copy_from_user(&info, uinfo, info_len)) in bpf_prog_get_info_by_fd()
3889 if (copy_to_user(uinfo, &info, info_len) || in bpf_prog_get_info_by_fd()
3890 put_user(info_len, &uattr->info.info_len)) in bpf_prog_get_info_by_fd()
3903 u32 info_len = attr->info.info_len; in bpf_map_get_info_by_fd() local
3906 err = bpf_check_uarg_tail_zero(USER_BPFPTR(uinfo), sizeof(info), info_len); in bpf_map_get_info_by_fd()
3909 info_len = min_t(u32, sizeof(info), info_len); in bpf_map_get_info_by_fd()
3934 if (copy_to_user(uinfo, &info, info_len) || in bpf_map_get_info_by_fd()
3935 put_user(info_len, &uattr->info.info_len)) in bpf_map_get_info_by_fd()
3947 u32 info_len = attr->info.info_len; in bpf_btf_get_info_by_fd() local
3950 err = bpf_check_uarg_tail_zero(USER_BPFPTR(uinfo), sizeof(*uinfo), info_len); in bpf_btf_get_info_by_fd()
3964 u32 info_len = attr->info.info_len; in bpf_link_get_info_by_fd() local
3967 err = bpf_check_uarg_tail_zero(USER_BPFPTR(uinfo), sizeof(info), info_len); in bpf_link_get_info_by_fd()
3970 info_len = min_t(u32, sizeof(info), info_len); in bpf_link_get_info_by_fd()
3973 if (copy_from_user(&info, uinfo, info_len)) in bpf_link_get_info_by_fd()
3986 if (copy_to_user(uinfo, &info, info_len) || in bpf_link_get_info_by_fd()
3987 put_user(info_len, &uattr->info.info_len)) in bpf_link_get_info_by_fd()