[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180429162057.7e4ofw7olx7hpris@ast-mbp>
Date: Sun, 29 Apr 2018 09:20:58 -0700
From: Alexei Starovoitov <alexei.starovoitov@...il.com>
To: Teng Qin <qinteng@...com>
Cc: netdev@...r.kernel.org, ast@...nel.org, daniel@...earbox.net,
yhs@...com, kernel-team@...com
Subject: Re: [PATCH bpf-next v2] bpf: Allow bpf_current_task_under_cgroup in
interrupt
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@...com>
Applied, Thanks Teng.
Powered by blists - more mailing lists