• Martin KaFai Lau's avatar
    bpf: Remove bpf_dump_raw_ok() check for func_info and line_info · 9e794163
    Martin KaFai Lau authored
    The func_info and line_info have the bpf insn offset but
    they do not contain kernel address.  They will still be useful
    for the userspace tool to annotate the xlated insn.
    
    This patch removes the bpf_dump_raw_ok() guard for the
    func_info and line_info during bpf_prog_get_info_by_fd().
    
    The guard stays for jited_line_info which contains the kernel
    address.
    
    Although this bpf_dump_raw_ok() guard behavior has started since
    the earlier func_info patch series, I marked the Fixes tag to the
    latest line_info patch series which contains both func_info and
    line_info and this patch is fixing for both of them.
    
    Fixes: c454a46b ("bpf: Add bpf_line_info support")
    Signed-off-by: default avatarMartin KaFai Lau <kafai@fb.com>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    9e794163
syscall.c 61.2 KB