Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Andrei Matei and committed by
Daniel Borkmann
5bd90cdc 90679706

+2 -2
+2 -2
kernel/bpf/verifier.c
··· 6585 6585 char tn_buf[48]; 6586 6586 6587 6587 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); 6590 6590 } 6591 6591 } 6592 6592 return err;