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

bpf: Add missing newline characters in verifier error messages

Newline characters are added in two verifier error messages,
refactored in Commit afbf21dce668 ("bpf: Support readonly/readwrite
buffers in verifier"). This way, they do not mix with
messages afterwards.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20200728221801.1090349-1-yhs@fb.com

authored by

Yonghong Song and committed by
Daniel Borkmann
4fc00b79 80083428

+2 -2
+2 -2
kernel/bpf/verifier.c
··· 3069 3069 { 3070 3070 if (off < 0) { 3071 3071 verbose(env, 3072 - "R%d invalid %s buffer access: off=%d, size=%d", 3072 + "R%d invalid %s buffer access: off=%d, size=%d\n", 3073 3073 regno, buf_info, off, size); 3074 3074 return -EACCES; 3075 3075 } ··· 3078 3078 3079 3079 tnum_strn(tn_buf, sizeof(tn_buf), reg->var_off); 3080 3080 verbose(env, 3081 - "R%d invalid variable buffer offset: off=%d, var_off=%s", 3081 + "R%d invalid variable buffer offset: off=%d, var_off=%s\n", 3082 3082 regno, off, tn_buf); 3083 3083 return -EACCES; 3084 3084 }