From: Yonghong Song <yhs@fb.com>
To: <bpf@vger.kernel.org>
Cc: Alexei Starovoitov <ast@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>, <kernel-team@fb.com>
Subject: [PATCH bpf-next v3 0/2] bpf: permits pointers on stack for helper calls
Date: Thu, 10 Dec 2020 19:41:21 -0800 [thread overview]
Message-ID: <20201211034121.3452172-1-yhs@fb.com> (raw)
This patch permits pointers on stack for helper calls if permission is
granted. Patch #1 described the detailed usecase and Patch #2
added a test.
Changelog:
v2 -> v3:
- do not permit spilled reg state NOT_INIT on stack. (Daniel)
v1 -> v2:
- fix a verifier test failure due to verifier change.
Yonghong Song (2):
bpf: permits pointers on stack for helper calls
selftests/bpf: add a test for ptr_to_map_value on stack for helper
access
kernel/bpf/verifier.c | 4 +++-
tools/testing/selftests/bpf/progs/bpf_iter_task.c | 3 ++-
tools/testing/selftests/bpf/verifier/unpriv.c | 5 +++--
3 files changed, 8 insertions(+), 4 deletions(-)
--
2.24.1
next reply other threads:[~2020-12-11 3:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-11 3:41 Yonghong Song [this message]
2020-12-11 3:41 ` [PATCH bpf-next v3 1/2] bpf: permits pointers on stack for helper calls Yonghong Song
2020-12-14 21:26 ` Daniel Borkmann
2020-12-15 3:57 ` Yonghong Song
2020-12-11 3:41 ` [PATCH bpf-next v3 2/2] selftests/bpf: add a test for ptr_to_map_value on stack for helper access Yonghong Song
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=20201211034121.3452172-1-yhs@fb.com \
--to=yhs@fb.com \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=kernel-team@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 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.