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]
Date:   Tue, 9 Apr 2019 18:29:07 +0000
From:   Martin Lau <kafai@...com>
To:     Stanislav Fomichev <sdf@...gle.com>
CC:     "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "bpf@...r.kernel.org" <bpf@...r.kernel.org>,
        "davem@...emloft.net" <davem@...emloft.net>,
        "ast@...nel.org" <ast@...nel.org>,
        "daniel@...earbox.net" <daniel@...earbox.net>
Subject: Re: [PATCH bpf-next v3 3/3] selftests: bpf: add selftest for
 __sk_buff context in BPF_PROG_TEST_RUN

On Tue, Apr 09, 2019 at 10:27:39AM -0700, Stanislav Fomichev wrote:
> Simple test that sets cb to {1,2,3,4,5} and priority to 6, runs bpf
> program that fails if cb is not what we expect and increments cb[i] and
> priority. When the test finishes, we check that cb is now {2,3,4,5,6}
> and priority is 7.
> 
> We also test the sanity checks:
> * ctx_in is provided, but ctx_size_in is zero (same for
>   ctx_out/ctx_size_out)
> * unexpected non-zero fields in __sk_buff return EINVAL
Acked-by: Martin KaFai Lau <kafai@...com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ