lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZS_kr7X5Jwo4x360@u94a>
Date: Wed, 18 Oct 2023 21:59:11 +0800
From: Shung-Hsi Yu <shung-hsi.yu@...e.com>
To: netdev@...r.kernel.org
Cc: Stephen Hemminger <stephen@...workplumber.org>,
	David Ahern <dsahern@...nel.org>,
	Toke Høiland-Jørgensen <toke@...hat.com>
Subject: Re: [PATCH iproute2-next 0/2] Increase BPF verifier verbosity when
 in verbose mode

On Wed, Oct 18, 2023 at 02:22:32PM +0800, Shung-Hsi Yu wrote:
> When debugging BPF verifier issue, it is useful get as much information
> out of the verifier as possible to help diagnostic, but right now that
> is not possible because load_bpf_object() does not set the
> kernel_log_level in bpf_open_opts, which is addressed in patch 1.
> 
> Patch 2 further allows increasing the log level in verbose mode, so even
> more information can be retrieved out of the verifier, and most
> importlantly, show verifier log even on successful BPF program load.

Got some typos in patch 2, and bpf_open_opts should be bpf_object_open_opts.
Will send v2 to correct these mistakes.

> Shung-Hsi Yu (2):
>   libbpf: set kernel_log_level when available
>   bpf: increase verifier verbosity when in verbose mode
> 
>  include/bpf_util.h |  4 ++--
>  ip/ipvrf.c         |  3 ++-
>  lib/bpf_legacy.c   | 10 ++++++----
>  lib/bpf_libbpf.c   |  6 ++++++
>  4 files changed, 16 insertions(+), 7 deletions(-)
> 
> 
> base-commit: 575322b09c3c6bc1806f2faa31edcfb64df302bb
> -- 
> 2.42.0
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ