netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Allow bpf_perf_event_output to access packet data
@ 2018-09-07 14:56 Lorenz Bauer
  2018-09-10  8:26 ` Jakub Kicinski
  0 siblings, 1 reply; 3+ messages in thread
From: Lorenz Bauer @ 2018-09-07 14:56 UTC (permalink / raw)
  To: netdev

Re-sent due to HTML e-mail mess up, apologies.

---------- Forwarded message ----------
From: Lorenz Bauer <lmb@cloudflare.com>
Date: 7 September 2018 at 15:53
Subject: Allow bpf_perf_event_output to access packet data
To: netdev@vger.kernel.org, Alexei Starovoitov <ast@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>


Hello list,

I'm attempting to use bpf_perf_event_output to do packet sampling from XDP.

The code basically runs before our other XDP code, does a
perf_event_output with the full packet (for now) and then tail calls
into DDoS mitigation, etc.

I've just discovered that perf_event_output isn't allowed to access
packet data by the verifier. Is this something that could be allowed?

Best
Lorenz

-- 
Lorenz Bauer  |  Systems Engineer
25 Lavington St., London SE1 0NZ

www.cloudflare.com

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

end of thread, other threads:[~2018-09-11 13:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-07 14:56 Allow bpf_perf_event_output to access packet data Lorenz Bauer
2018-09-10  8:26 ` Jakub Kicinski
2018-09-11  8:37   ` Lorenz Bauer

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).