bpf: minor logging improvement
PATCH 1/1 bpf: minor logging improvement
One place where we were logging a register was only logging the variable part, not also the fixed part.
Signed-off-by Andrei Matei <[email protected]>
--- kernel/bpf/verifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/bpf/verifier.c +2 -2
@@ -6834,8 +6834,8 @@ static int check_stack_access_within_bounds(char tn_buf[48 ];tnum_strn (tn_buf,sizeof (tn_buf), reg->var_off); -verbose (env,"invalid variable-offset%s stack R%d var_off=%s size=%d\n" , - err_extra, regno, tn_buf, access_size); +verbose (env,"invalid variable-offset%s stack R%d var_off=%s off=%d size=%d\n" , + err_extra, regno, tn_buf, off, access_size); } }return err;
Signature · 1 line
2.40.1
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:
Hello:
This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <[email protected]>:
Quoted 7 lines · On Sun, 3 Dec 2023 20:12:48 -0500 you wrote:
One place where we were logging a register was only logging the variable part, not also the fixed part.
Signed-off-by Andrei Matei <[email protected]>--- kernel/bpf/verifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Here is the summary with links:
- [bpf] bpf: minor logging improvement
https://git.kernel.org/bpf/bpf-next/c/5bd90cdc65ef
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html