diff options
author | Andrei Matei <andreimatei1@gmail.com> | 2023-12-04 02:12:48 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2023-12-04 15:57:27 +0100 |
commit | 5bd90cdc65ef9ef5e13c9ff23620079db5c608a0 (patch) | |
tree | 765b13f5eb37979fd4aa064425af740489731742 /kernel | |
parent | Merge branch 'bpf-verifier-retval-logic-fixes' (diff) | |
download | linux-5bd90cdc65ef9ef5e13c9ff23620079db5c608a0.tar.xz linux-5bd90cdc65ef9ef5e13c9ff23620079db5c608a0.zip |
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 <andreimatei1@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20231204011248.2040084-1-andreimatei1@gmail.com
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/bpf/verifier.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 2cd150d6d141..cdb4f5f0ba79 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -6585,8 +6585,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; |