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: <CAPhsuW4qqdxz02kjoqW5dbHBmhPJPSqCSeiPg+Hr9MpdorF2zw@mail.gmail.com>
Date:   Fri, 1 Mar 2019 15:08:23 -0800
From:   Song Liu <liu.song.a23@...il.com>
To:     Yonghong Song <yhs@...com>
Cc:     Networking <netdev@...r.kernel.org>,
        Alexei Starovoitov <ast@...com>,
        Daniel Borkmann <daniel@...earbox.net>, kernel-team@...com
Subject: Re: [PATCH bpf-next] selftests/bpf: set unlimited RLIMIT_MEMLOCK for test_sock_fields

On Thu, Feb 28, 2019 at 10:20 PM Yonghong Song <yhs@...com> wrote:
>
> This is to avoid permission denied error. A lot of systems
> may have a much lower number, e.g., 64KB, for RLIMIT_MEMLOCK,
> which may not be sufficient for the test to run successfully.
>
> Fixes: e0b27b3f97b8 ("bpf: Add test_sock_fields for skb->sk and bpf_tcp_sock")
> Signed-off-by: Yonghong Song <yhs@...com>

Acked-by: Song Liu <songliubraving@...com>

> ---
>  tools/testing/selftests/bpf/test_sock_fields.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tools/testing/selftests/bpf/test_sock_fields.c b/tools/testing/selftests/bpf/test_sock_fields.c
> index 9bb58369b481..bc8943938bf5 100644
> --- a/tools/testing/selftests/bpf/test_sock_fields.c
> +++ b/tools/testing/selftests/bpf/test_sock_fields.c
> @@ -14,6 +14,7 @@
>  #include <bpf/libbpf.h>
>
>  #include "cgroup_helpers.h"
> +#include "bpf_rlimit.h"
>
>  enum bpf_array_idx {
>         SRV_IDX,
> --
> 2.17.1
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ