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] [day] [month] [year] [list]
Date:   Tue, 22 May 2018 15:35:01 -0700
From:   Martin KaFai Lau <kafai@...com>
To:     Andrey Ignatov <rdna@...com>
CC:     <netdev@...r.kernel.org>, <davem@...emloft.net>, <ast@...nel.org>,
        <daniel@...earbox.net>, <kernel-team@...com>
Subject: Re: [PATCH bpf-next 5/5] selftests/bpf: Selftest for sys_sendmsg
 hooks

On Fri, May 18, 2018 at 07:21:13PM -0700, Andrey Ignatov wrote:
> Add selftest for BPF_CGROUP_UDP4_SENDMSG and BPF_CGROUP_UDP6_SENDMSG
> attach types.
> 
> Try to sendmsg(2) to specific IP:port and test that:
> * source IP is overridden as expected.
> * remote IP:port pair is overridden as expected;
> 
> Both UDPv4 and UDPv6 are tested.
> 
> Output:
>   # test_sock_addr.sh 2>/dev/null
>   Wait for testing IPv4/IPv6 to become available ... OK
>   ... pre-existing test-cases skipped ...
>   Test case: sendmsg4: load prog with wrong expected attach type .. [PASS]
>   Test case: sendmsg4: attach prog with wrong attach type .. [PASS]
>   Test case: sendmsg4: rewrite IP & port (asm) .. [PASS]
>   Test case: sendmsg4: rewrite IP & port (C) .. [PASS]
>   Test case: sendmsg4: deny call .. [PASS]
>   Test case: sendmsg6: load prog with wrong expected attach type .. [PASS]
>   Test case: sendmsg6: attach prog with wrong attach type .. [PASS]
>   Test case: sendmsg6: rewrite IP & port (asm) .. [PASS]
>   Test case: sendmsg6: rewrite IP & port (C) .. [PASS]
>   Test case: sendmsg6: deny call .. [PASS]
>   Summary: 26 PASSED, 0 FAILED
> 
> Signed-off-by: Andrey Ignatov <rdna@...com>
> Acked-by: Alexei Starovoitov <ast@...nel.org>
Acked-by: Martin KaFai Lau <kafai@...com>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ