From: Alexei Starovoitov <alexei.starovoitov@gmail.com>
To: Teng Qin <qinteng@fb.com>
Cc: netdev@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net,
yhs@fb.com, kernel-team@fb.com
Subject: Re: [PATCH bpf-next v2] bpf: Allow bpf_current_task_under_cgroup in interrupt
Date: Sun, 29 Apr 2018 09:20:58 -0700 [thread overview]
Message-ID: <20180429162057.7e4ofw7olx7hpris@ast-mbp> (raw)
In-Reply-To: <20180429063929.206386-1-qinteng@fb.com>
On Sat, Apr 28, 2018 at 11:39:29PM -0700, Teng Qin wrote:
> Currently, the bpf_current_task_under_cgroup helper has a check where if
> the BPF program is running in_interrupt(), it will return -EINVAL. This
> prevents the helper to be used in many useful scenarios, particularly
> BPF programs attached to Perf Events.
>
> This commit removes the check. Tested a few NMI (Perf Event) and some
> softirq context, the helper returns the correct result.
>
> Signed-off-by: Teng Qin <qinteng@fb.com>
Applied, Thanks Teng.
prev parent reply other threads:[~2018-04-29 16:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-28 7:32 [PATCH bpf-next] bpf: Allow bpf_current_task_under_cgroup in interrupt Teng Qin
2018-04-28 15:03 ` Alexei Starovoitov
2018-04-29 6:39 ` [PATCH bpf-next v2] " Teng Qin
2018-04-29 16:20 ` Alexei Starovoitov [this message]
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=20180429162057.7e4ofw7olx7hpris@ast-mbp \
--to=alexei.starovoitov@gmail.com \
--cc=ast@kernel.org \
--cc=daniel@iogearbox.net \
--cc=kernel-team@fb.com \
--cc=netdev@vger.kernel.org \
--cc=qinteng@fb.com \
--cc=yhs@fb.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox