Added support for pointer to mem register spilling, to allow the verifier
to track pointer to valid memory addresses. Such pointers are returned
for example by a successful call of the bpf_ringbuf_reserve helper.
This patch was suggested as a solution by Yonghong Song.
---
kernel/bpf/verifier.c | 2 ++
1 file changed, 2 insertions(+)
From: Marek Behún <kabel@kernel.org> Date: 2021-01-11 15:52:35
The Signed-off-by line should be last in the commit message, not first.
First line (which becomes e-mail subject) should describe what the
commit does (in a short one liner) and where it does it.
So for your patch it could be something like
bpf: support pointer to mem register spilling in verifier
The commit message should be written in present simple tense, not past
simple, ie. not "Added support" but "Add support".
Also we need your name and surname in From: header and Signed-off-by:
tag. So instead of
giladreti [off-list ref]
it should be
Gilad Reti [off-list ref]
if that is your real time. If it is not, please provide your real name.
On Mon, 11 Jan 2021 17:31:23 +0200
giladreti [off-list ref] wrote:
quoted hunk
Added support for pointer to mem register spilling, to allow the verifier
to track pointer to valid memory addresses. Such pointers are returned
for example by a successful call of the bpf_ringbuf_reserve helper.
This patch was suggested as a solution by Yonghong Song.
---
kernel/bpf/verifier.c | 2 ++
1 file changed, 2 insertions(+)
From: Daniel Borkmann <daniel@iogearbox.net> Date: 2021-01-11 15:56:45
Hello Gilad,
On 1/11/21 4:31 PM, giladreti wrote:
Added support for pointer to mem register spilling, to allow the verifier
to track pointer to valid memory addresses. Such pointers are returned
for example by a successful call of the bpf_ringbuf_reserve helper.
This patch was suggested as a solution by Yonghong Song.
From: Gilad Reti <hidden> Date: 2021-01-11 16:05:34
On Mon, Jan 11, 2021, 17:55 Daniel Borkmann [off-list ref] wrote:
Hello Gilad,
On 1/11/21 4:31 PM, giladreti wrote:
quoted
Added support for pointer to mem register spilling, to allow the verifier
to track pointer to valid memory addresses. Such pointers are returned
for example by a successful call of the bpf_ringbuf_reserve helper.
This patch was suggested as a solution by Yonghong Song.
Sure. Thanks for your guidance. As you can probably tell, I am new to
kernel code contribution (in fact this is a first time for me).
Should I try to submit this patch again?
Sorry in advance for all the overhead I may be causing to you...
On Mon, Jan 11, 2021 at 8:06 AM Gilad Reti [off-list ref] wrote:
On Mon, Jan 11, 2021, 17:55 Daniel Borkmann [off-list ref] wrote:
quoted
Hello Gilad,
On 1/11/21 4:31 PM, giladreti wrote:
quoted
Added support for pointer to mem register spilling, to allow the verifier
to track pointer to valid memory addresses. Such pointers are returned
for example by a successful call of the bpf_ringbuf_reserve helper.
This patch was suggested as a solution by Yonghong Song.
Sure. Thanks for your guidance. As you can probably tell, I am new to
kernel code contribution (in fact this is a first time for me).
Should I try to submit this patch again?
In addition to all already mentioned things, also make sure you have
[PATCH bpf] prefix in the subject, to identify that this is a bug fix
for the bpf tree.
Also you missed adding Fixes tag, please add this:
Fixes: 457f44363a88 ("bpf: Implement BPF ring buffer and verifier
support for it")
And yes, please re-submit with all the feedback incorporated
(including the selftest).
Sorry in advance for all the overhead I may be causing to you...