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: <5ea71ade547e3_a372ad3a5ecc5b811@john-XPS-13-9370.notmuch>
Date:   Mon, 27 Apr 2020 10:48:14 -0700
From:   John Fastabend <john.fastabend@...il.com>
To:     David Ahern <dsahern@...nel.org>, netdev@...r.kernel.org
Cc:     davem@...emloft.net, kuba@...nel.org,
        prashantbhole.linux@...il.com, jasowang@...hat.com,
        brouer@...hat.com, toke@...hat.com, toshiaki.makita1@...il.com,
        daniel@...earbox.net, john.fastabend@...il.com, ast@...nel.org,
        kafai@...com, songliubraving@...com, yhs@...com, andriin@...com,
        dsahern@...il.com, David Ahern <dahern@...italocean.com>
Subject: RE: [PATCH v3 bpf-next 13/15] selftest: Add test for xdp_egress

David Ahern wrote:
> From: David Ahern <dahern@...italocean.com>
> 
> Add selftest for xdp_egress. Add xdp_drop program to veth connecting
> a namespace to drop packets and break connectivity.
> 
> Signed-off-by: David Ahern <dahern@...italocean.com>
> ---

[...]

> +################################################################################
> +# main
> +
> +if [ $(id -u) -ne 0 ]; then
> +	echo "selftests: $TESTNAME [SKIP] Need root privileges"
> +	exit $ksft_skip
> +fi
> +
> +if ! ip link set dev lo xdp off > /dev/null 2>&1; then
> +	echo "selftests: $TESTNAME [SKIP] Could not run test without the ip xdp support"
> +	exit $ksft_skip
> +fi
> +
> +if [ -z "$BPF_FS" ]; then
> +	echo "selftests: $TESTNAME [SKIP] Could not run test without bpffs mounted"
> +	exit $ksft_skip
> +fi
> +
> +if ! bpftool version > /dev/null 2>&1; then
> +	echo "selftests: $TESTNAME [SKIP] Could not run test without bpftool"
> +	exit $ksft_skip
> +fi

This is consistent with test_xdp_veth.sh so it is probably ok for this series
but I think it would be nice to go back and make these fail on errors. Or at
least fail on bpffs mount. Seems other tests fail on bpffs mount failures so
would be OK I think.

Otherwise LGTM.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ