netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how is the bpfilter sockopt processing supposed to work
@ 2020-07-17  5:52 Christoph Hellwig
  2020-07-17 16:13 ` Alexei Starovoitov
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2020-07-17  5:52 UTC (permalink / raw)
  To: Alexei Starovoitov; +Cc: David S. Miller, netdev, bpf

Hi Alexei,

I've just been auditing the sockopt code, and bpfilter looks really
odd.  Both getsockopts and setsockopt eventually end up
in__bpfilter_process_sockopt, which then passes record to the
userspace helper containing the address of the optval buffer.
Which depending on bpf-cgroup might be in user or kernel space.
But even if it is in userspace it would be in a different process
than the bpfiler helper.  What makes all this work?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-07-20  8:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-17  5:52 how is the bpfilter sockopt processing supposed to work Christoph Hellwig
2020-07-17 16:13 ` Alexei Starovoitov
2020-07-17 16:25   ` Christoph Hellwig
2020-07-17 17:28     ` Alexei Starovoitov
2020-07-20  8:25       ` David Laight

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).