Commit 5bd90cdc authored by Andrei Matei's avatar Andrei Matei Committed by Daniel Borkmann

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: default avatarAndrei Matei <andreimatei1@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20231204011248.2040084-1-andreimatei1@gmail.com
parent 90679706
...@@ -6585,8 +6585,8 @@ static int check_stack_access_within_bounds( ...@@ -6585,8 +6585,8 @@ static int check_stack_access_within_bounds(
char tn_buf[48]; char tn_buf[48];
tnum_strn(tn_buf, sizeof(tn_buf), reg->var_off); 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", verbose(env, "invalid variable-offset%s stack R%d var_off=%s off=%d size=%d\n",
err_extra, regno, tn_buf, access_size); err_extra, regno, tn_buf, off, access_size);
} }
} }
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment