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: <5f04c91d-2e8b-3092-ec7b-af6d59d073a9@fb.com>
Date:   Sat, 14 Dec 2019 00:22:52 +0000
From:   Alexei Starovoitov <ast@...com>
To:     Andrii Nakryiko <andriin@...com>,
        "bpf@...r.kernel.org" <bpf@...r.kernel.org>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "daniel@...earbox.net" <daniel@...earbox.net>
CC:     "andrii.nakryiko@...il.com" <andrii.nakryiko@...il.com>,
        Kernel Team <Kernel-team@...com>
Subject: Re: [PATCH v3 bpf-next 4/4] selftests/bpf: add tests for
 libbpf-provided externs

On 12/13/19 3:51 PM, Andrii Nakryiko wrote:
> Add a set of tests validating libbpf-provided extern variables. One crucial
> feature that's tested is dead code elimination together with using invalid BPF
> helper. CONFIG_MISSING is not supposed to exist and should always be specified
> by libbpf as zero, which allows BPF verifier to correctly do branch pruning
> and not fail validation, when invalid BPF helper is called from dead if branch.
> 
> Signed-off-by: Andrii Nakryiko <andriin@...com>
> ---
>   .../selftests/bpf/prog_tests/core_extern.c    | 193 ++++++++++++++++++
>   .../selftests/bpf/prog_tests/skeleton.c       |  18 +-
>   .../selftests/bpf/progs/test_core_extern.c    |  62 ++++++
>   .../selftests/bpf/progs/test_skeleton.c       |   9 +
>   4 files changed, 281 insertions(+), 1 deletion(-)
>   create mode 100644 tools/testing/selftests/bpf/prog_tests/core_extern.c
>   create mode 100644 tools/testing/selftests/bpf/progs/test_core_extern.c
> 
> diff --git a/tools/testing/selftests/bpf/prog_tests/core_extern.c b/tools/testing/selftests/bpf/prog_tests/core_extern.c
> new file mode 100644
> index 000000000000..4f5f8439cb02
> --- /dev/null
> +++ b/tools/testing/selftests/bpf/prog_tests/core_extern.c
> @@ -0,0 +1,193 @@
> +// SPDX-License-Identifier: GPL-2.0
> +#include <test_progs.h>

copyright just for consistency ?

> +++ b/tools/testing/selftests/bpf/progs/test_core_extern.c
> @@ -0,0 +1,62 @@
> +// SPDX-License-Identifier: GPL-2.0
> +// Copyright (c) 2017 Facebook
> +

wrong year and format.
It should be C style comment /* */

> --- a/tools/testing/selftests/bpf/progs/test_skeleton.c
> +++ b/tools/testing/selftests/bpf/progs/test_skeleton.c
> @@ -1,6 +1,7 @@
>   // SPDX-License-Identifier: GPL-2.0
>   // Copyright (c) 2017 Facebook

ditto

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ