]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
bpf: Add missed newline in verifier verbose log
authorAndrey Ignatov <rdna@fb.com>
Thu, 4 Apr 2019 06:22:43 +0000 (23:22 -0700)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commita79a9b1c42669b1eb687a6fe5f5f7b23fb95a4a2
tree6bb872041b57c62b81832b631d93948103b69bbd
parentdac58b18627a3db2c353478b98d0bc230b23f408
bpf: Add missed newline in verifier verbose log

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit 1fbd20f8b77b366ea4aeb92ade72daa7f36a7e3b ]

check_stack_access() that prints verbose log is used in
adjust_ptr_min_max_vals() that prints its own verbose log and now they
stick together, e.g.:

  variable stack access var_off=(0xfffffffffffffff0; 0x4) off=-16
  size=1R2 stack pointer arithmetic goes out of range, prohibited for
  !root

Add missing newline so that log is more readable:
  variable stack access var_off=(0xfffffffffffffff0; 0x4) off=-16 size=1
  R2 stack pointer arithmetic goes out of range, prohibited for !root

Fixes: f1174f77b50c ("bpf/verifier: rework value tracking")
Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
kernel/bpf/verifier.c