Skip to content

Commit 5bd90cd

Browse files
andreimateiborkmann
authored andcommitted
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]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 9067970 commit 5bd90cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/bpf/verifier.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6585,8 +6585,8 @@ static int check_stack_access_within_bounds(
65856585
char tn_buf[48];
65866586

65876587
tnum_strn(tn_buf, sizeof(tn_buf), reg->var_off);
6588-
verbose(env, "invalid variable-offset%s stack R%d var_off=%s size=%d\n",
6589-
err_extra, regno, tn_buf, access_size);
6588+
verbose(env, "invalid variable-offset%s stack R%d var_off=%s off=%d size=%d\n",
6589+
err_extra, regno, tn_buf, off, access_size);
65906590
}
65916591
}
65926592
return err;

0 commit comments

Comments
 (0)