From: Andrei Matei Date: Mon, 4 Dec 2023 01:12:48 +0000 (-0500) Subject: bpf: Minor logging improvement X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5bd90cdc65ef9ef5e13c9ff23620079db5c608a0;p=linux.git 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 Signed-off-by: Daniel Borkmann Link: https://lore.kernel.org/bpf/20231204011248.2040084-1-andreimatei1@gmail.com --- diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index 2cd150d6d141e..cdb4f5f0ba79d 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;