From: Daniel Borkmann <daniel@iogearbox.net>
To: Alexei Starovoitov <ast@kernel.org>, davem@davemloft.net
Cc: peterz@infradead.org, jannh@google.com, paulmck@linux.ibm.com,
will.deacon@arm.com, mingo@redhat.com, netdev@vger.kernel.org,
kernel-team@fb.com
Subject: Re: [PATCH bpf-next] bpf: check that BPF programs run with preemption disabled
Date: Thu, 31 Jan 2019 23:29:59 +0100 [thread overview]
Message-ID: <799a8afa-fe19-21ad-e73e-b24199dd55c8@iogearbox.net> (raw)
In-Reply-To: <20190129012152.251061-1-ast@kernel.org>
On 01/29/2019 02:21 AM, Alexei Starovoitov wrote:
> From: Peter Zijlstra <peterz@infradead.org>
>
> Introduce cant_sleep() macro for annotation of functions that cannot sleep.
>
> Use it in BPF_PROG_RUN to catch execution of BPF programs
> in preemptable context.
>
> Suggested-by: Jann Horn <jannh@google.com>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
(Just fyi, will let this sit in patchwork till the preemption fixes have been
merged back from bpf into bpf-next as otherwise people will yell that they
hit this frequently.)
next prev parent reply other threads:[~2019-01-31 22:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-29 1:21 [PATCH bpf-next] bpf: check that BPF programs run with preemption disabled Alexei Starovoitov
2019-01-29 7:00 ` Song Liu
2019-01-31 22:29 ` Daniel Borkmann [this message]
2019-02-19 20:58 ` Daniel Borkmann
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=799a8afa-fe19-21ad-e73e-b24199dd55c8@iogearbox.net \
--to=daniel@iogearbox.net \
--cc=ast@kernel.org \
--cc=davem@davemloft.net \
--cc=jannh@google.com \
--cc=kernel-team@fb.com \
--cc=mingo@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=paulmck@linux.ibm.com \
--cc=peterz@infradead.org \
--cc=will.deacon@arm.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;
as well as URLs for NNTP newsgroup(s).