mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-05-26 11:40:24 +02:00
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
This commit is contained in:
committed by
Daniel Borkmann
parent
90679706d4
commit
5bd90cdc65
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user