[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20181102205453.7yzrgfvfmzbmvdf4@ast-mbp.dhcp.thefacebook.com>
Date: Fri, 2 Nov 2018 13:54:54 -0700
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Daniel Borkmann <daniel@...earbox.net>
Cc: ast@...nel.org, netdev@...r.kernel.org,
Sandipan Das <sandipan@...ux.vnet.ibm.com>,
Song Liu <songliubraving@...com>
Subject: Re: [PATCH bpf] bpf: fix bpf_prog_get_info_by_fd to return 0
func_lens for unpriv
On Fri, Nov 02, 2018 at 11:35:46AM +0100, Daniel Borkmann wrote:
> While dbecd7388476 ("bpf: get kernel symbol addresses via syscall")
> zeroed info.nr_jited_ksyms in bpf_prog_get_info_by_fd() for queries
> from unprivileged users, commit 815581c11cc2 ("bpf: get JITed image
> lengths of functions via syscall") forgot about doing so and therefore
> returns the #elems of the user set up buffer which is incorrect. It
> also needs to indicate a info.nr_jited_func_lens of zero.
>
> Fixes: 815581c11cc2 ("bpf: get JITed image lengths of functions via syscall")
> Signed-off-by: Daniel Borkmann <daniel@...earbox.net>
> Cc: Sandipan Das <sandipan@...ux.vnet.ibm.com>
> Cc: Song Liu <songliubraving@...com>
Applied, Thanks
Powered by blists - more mailing lists