Re: saner sock_from_file() calling conventions (was Re: [PATCH] bpf: Expose a bpf_sock_from_file helper to tracing programs)

2020-11-13 Thread Florent Revest
On Thu, 2020-11-12 at 20:28 +, Al Viro wrote: > On Thu, Nov 12, 2020 at 09:09:44PM +0100, Florent Revest wrote: > > From: Florent Revest > > > > eBPF programs can already check whether a file is a socket using > > file->f_op == _file_ops but they can not convert file- > > >private_data into

saner sock_from_file() calling conventions (was Re: [PATCH] bpf: Expose a bpf_sock_from_file helper to tracing programs)

2020-11-12 Thread Al Viro
On Thu, Nov 12, 2020 at 09:09:44PM +0100, Florent Revest wrote: > From: Florent Revest > > eBPF programs can already check whether a file is a socket using > file->f_op == _file_ops but they can not convert file->private_data > into a struct socket with BTF information. For that, we need a new >