From: Andy Gospodarek <andy@greyhouse.net>
To: Anton Protopopov <aspsk2@gmail.com>
Cc: "Théo Mainguet" <theo.mainguet.etu@univ-lille.fr>,
xdp-newbies@vger.kernel.org
Subject: Re: [xdp-tutorial] : permission denied when I try to execute a program
Date: Thu, 26 Sep 2019 08:34:50 -0400 [thread overview]
Message-ID: <20190926123450.GA39817@C02YVCJELVCG> (raw)
In-Reply-To: <CAGn_ityTBjJ+erYRrvoFCCVYM9qwztg3tkmRuShs60xACQhvbQ@mail.gmail.com>
On Thu, Sep 26, 2019 at 08:17:48AM -0400, Anton Protopopov wrote:
> чт, 26 сент. 2019 г. в 05:22, Théo Mainguet <theo.mainguet.etu@univ-lille.fr>:
> >
> > Hi,
> >
> >
> > Thank you very much for your xdp tutorial. Currently, I try to write a
> > simple xdp program to count the number of TCP and UDP packets I receive.
> > For that, I created a BPF_MAP_TYPE_ARRAY map in my kern.c file. I can
> > read into this map with the bpf_map_lookup_elem function but when I try
> > to update a value, I have an error message "libbpf: load bpf program
> > failed: Permission denied". To solve this issue, I've try to run it in
> > sudo, I've verify my kernel configuration (everything needed seems
> > enable) ....
>
> What's the error message when you are trying to load your program with sudo?
That information would be helpful as some distros will not run some of
the sample BPF programs without some ulimit changes. For example the
command:
# ulimit -l 1024
or even
# ulimit -l $VERY_LARGE_VALUE
may be needed on Fedora or Ubuntu, but not on other distros.
next prev parent reply other threads:[~2019-09-26 12:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-25 9:10 [xdp-tutorial] : permission denied when I try to execute a program Théo Mainguet
2019-09-26 12:17 ` Anton Protopopov
2019-09-26 12:34 ` Andy Gospodarek [this message]
2019-09-26 12:41 ` Anton Protopopov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190926123450.GA39817@C02YVCJELVCG \
--to=andy@greyhouse.net \
--cc=aspsk2@gmail.com \
--cc=theo.mainguet.etu@univ-lille.fr \
--cc=xdp-newbies@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.