All of lore.kernel.org
 help / color / mirror / Atom feed
* running an eBPF program
@ 2017-05-26 11:00 Adel Fuchs
  2017-05-27 20:23 ` Y Song
  0 siblings, 1 reply; 9+ messages in thread
From: Adel Fuchs @ 2017-05-26 11:00 UTC (permalink / raw)
  To: netdev

Hi

I'm trying to run this eBPF program:

https://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git/tree/examples/bpf


and I get this error:


:~/iproute2/examples/bpf$sudo tc filter add dev enx00e11100329b parent
1: bpf obj bpf.o exp /tmp/bpf-uds flowid 1:1 action bpf obj bpf.o sec
action-mark            action bpf obj bpf.o sec action-rand ok

[sudo] password for adel:



Prog section 'classifier' rejected: Permission denied (13)!

- Type:         3

- Instructions: 218 (0 over limit)

- License:      GPL



Verifier analysis:



0: (bf) r6 = r1

1: (18) r9 = 0xffe0000e

3: (69) r0 = *(u16 *)(r6 +16)

invalid bpf_context access off=16 size=2



Error fetching program/map!

Failed to retrieve (e)BPF data!


Any suggestions?

Thanks,

Adel

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

end of thread, other threads:[~2017-06-01  6:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-26 11:00 running an eBPF program Adel Fuchs
2017-05-27 20:23 ` Y Song
2017-05-27 20:52   ` Y Song
2017-05-28  0:11     ` David Miller
2017-05-28  5:08       ` Y Song
     [not found]         ` <CAErYV9HhBoWnMVZS4XBJPN0TM4V2=U2Y+NBSyY8bqHJopvWTGA@mail.gmail.com>
2017-05-28  7:40           ` Fwd: " Adel Fuchs
     [not found]         ` <CAErYV9FSQ1Fs-++1MPGXh=_aY3PnBKKCLTH_rvxGWaaz=6aBNg@mail.gmail.com>
2017-05-29  5:31           ` Y Song
2017-06-01  6:43             ` Adel Fuchs
2017-06-01  6:54               ` Adel Fuchs

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.