mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
UPSTREAM: 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.
Change-Id: Iedfd07d69f981ba2e36a586de32ea29ecd00a9a2
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
This commit is contained in:
parent
f8021e2b60
commit
9090c2f26f
1 changed files with 2 additions and 2 deletions
|
|
@ -3096,7 +3096,7 @@ static int __check_buffer_access(struct bpf_verifier_env *env,
|
|||
{
|
||||
if (off < 0) {
|
||||
verbose(env,
|
||||
"R%d invalid %s buffer access: off=%d, size=%d",
|
||||
"R%d invalid %s buffer access: off=%d, size=%d\n",
|
||||
regno, buf_info, off, size);
|
||||
return -EACCES;
|
||||
}
|
||||
|
|
@ -3105,7 +3105,7 @@ static int __check_buffer_access(struct bpf_verifier_env *env,
|
|||
|
||||
tnum_strn(tn_buf, sizeof(tn_buf), reg->var_off);
|
||||
verbose(env,
|
||||
"R%d invalid variable buffer offset: off=%d, var_off=%s",
|
||||
"R%d invalid variable buffer offset: off=%d, var_off=%s\n",
|
||||
regno, off, tn_buf);
|
||||
return -EACCES;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue