[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <873772fc-9ec6-b9bc-4671-8c59150b3050@nvidia.com>
Date: Tue, 3 May 2022 20:14:01 +0300
From: Maxim Mikityanskiy <maximmi@...dia.com>
To: Alexei Starovoitov <alexei.starovoitov@...il.com>
Cc: bpf <bpf@...r.kernel.org>, Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii@...nel.org>,
Network Development <netdev@...r.kernel.org>,
Tariq Toukan <tariqt@...dia.com>,
Martin KaFai Lau <kafai@...com>,
Song Liu <songliubraving@...com>, Yonghong Song <yhs@...com>,
John Fastabend <john.fastabend@...il.com>,
KP Singh <kpsingh@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Eric Dumazet <edumazet@...gle.com>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
David Ahern <dsahern@...nel.org>,
Shuah Khan <shuah@...nel.org>,
Jesper Dangaard Brouer <hawk@...nel.org>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Joe Stringer <joe@...ium.io>,
Florent Revest <revest@...omium.org>,
"open list:KERNEL SELFTEST FRAMEWORK"
<linux-kselftest@...r.kernel.org>,
Toke Høiland-Jørgensen <toke@...e.dk>,
Kumar Kartikeya Dwivedi <memxor@...il.com>,
Florian Westphal <fw@...len.de>,
Paolo Abeni <pabeni@...hat.com>
Subject: Re: [PATCH bpf-next v8 4/5] bpf: Add selftests for raw syncookie
helpers
On 2022-04-29 19:41, Alexei Starovoitov wrote:
> On Fri, Apr 29, 2022 at 4:16 AM Maxim Mikityanskiy <maximmi@...dia.com> wrote:
>> + SYS("iptables -t raw -I PREROUTING \
>> + -i tmp1 -p tcp -m tcp --syn --dport 8080 -j CT --notrack");
>> + SYS("iptables -t filter -A INPUT \
>> + -i tmp1 -p tcp -m tcp --dport 8080 -m state --state INVALID,UNTRACKED \
>> + -j SYNPROXY --sack-perm --timestamp --wscale 7 --mss 1460");
>> + SYS("iptables -t filter -A INPUT \
>> + -i tmp1 -m state --state INVALID -j DROP");
>> +
>> + ctrl_file = SYS_OUT("./xdp_synproxy --iface tmp1 --ports 8080 --single \
>> + --mss4 1460 --mss6 1440 --wscale 7 --ttl 64");
>
> That doesn't work for test_progs-no_alu32.
> sh: line 1: ./xdp_synproxy: No such file or directory
> https://github.com/kernel-patches/bpf/runs/6227226675?check_suite_focus=true#step:6:7380
>
> and going to be fragile in general.
> Could you launch it as a kthread or fork it
> like other tests are doing ?
A similar thing is done for the urandom_read binary used in another
test. What I missed is adding my binary to the Makefile the same way.
After adding it, both test_progs and test_progs-no_alu32 pass.
Respinning with the fix.
Powered by blists - more mailing lists