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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1c1e30f4-c898-4fa7-8f26-9eee1b1f0f09@gmail.com>
Date: Fri, 23 Feb 2024 00:10:16 -0800
From: Kui-Feng Lee <sinquersw@...il.com>
To: Kui-Feng Lee <thinker.li@...il.com>, netdev@...r.kernel.org,
 ast@...nel.org, martin.lau@...ux.dev, kernel-team@...a.com, kuba@...nel.org,
 davem@...emloft.net, dsahern@...nel.org
Cc: kuifeng@...a.com
Subject: Re: [PATCH bpf-next] selftests/net: force synchronized GC for a test.

Sorry! Post the patch to a wrong list.

On 2/22/24 23:52, Kui-Feng Lee wrote:
> Due to the slowness of the test environment, always set off a synchronized
> GC after waiting for GC. This can fix the problem that Fib6 garbage
> collection test fails occasionally.
> 
> Signed-off-by: Kui-Feng Lee <thinker.li@...il.com>
> ---
>   tools/testing/selftests/net/fib_tests.sh | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/tools/testing/selftests/net/fib_tests.sh b/tools/testing/selftests/net/fib_tests.sh
> index 3ec1050e47a2..0a82c9bc07bb 100755
> --- a/tools/testing/selftests/net/fib_tests.sh
> +++ b/tools/testing/selftests/net/fib_tests.sh
> @@ -823,7 +823,9 @@ fib6_gc_test()
>   	    $IP -6 route add 2001:20::$i \
>   		via 2001:10::2 dev dummy_10 expires $EXPIRE
>   	done
> +	# Wait for GC
>   	sleep $(($EXPIRE * 2 + 1))
> +	$NS_EXEC sysctl -wq net.ipv6.route.flush=1
>   	check_rt_num 0 $($IP -6 route list |grep expires|wc -l)
>   	log_test $ret 0 "ipv6 route garbage collection (with permanent routes)"
>   
> @@ -864,7 +866,7 @@ fib6_gc_test()
>   
>   	# Wait for GC
>   	sleep $(($EXPIRE * 2 + 1))
> -
> +	$NS_EXEC sysctl -wq net.ipv6.route.flush=1
>   	check_rt_num 5 $($IP -6 route list |grep -v expires|grep 2001:20::|wc -l)
>   	log_test $ret 0 "ipv6 route garbage collection (replace with permanent)"
>   

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ