From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7D30FA0C52; Wed, 24 Nov 2021 19:51:50 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0E16C40696; Wed, 24 Nov 2021 19:51:50 +0100 (CET) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mails.dpdk.org (Postfix) with ESMTP id D3DB440688 for ; Wed, 24 Nov 2021 19:51:48 +0100 (CET) Received: by mail-wm1-f53.google.com with SMTP id n33-20020a05600c502100b0032fb900951eso6306727wmr.4 for ; Wed, 24 Nov 2021 10:51:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=xhLvX1zCtLA+gsP5BLIDm+hkE0pTZ18Re9fF30zGXpA=; b=qkkvEiyXxt/e83yE5az9N4w5waZn4BiMkfHObNfG/pIF8freu7+7dDBZi2PwaCPB8y 7RsxzMpYERLtgAtrvl1Zobb7LfLTSCiKyc1Lxg0KPu6Pw5YNoenvHTZ/tMyfIEdOaqQ4 ef/TRs3Dukca75zzFnI8YTIsFtdQILAvS0CmcORUNU5jAxlbqxbwklTxkaGjSK2PNwQk 00UglnuN2UBQtv2TqexRIgsXoMGc/RGcz07jdtsydbWzUbwxopT5qJwvULrVk2NjLkxl ItmWeIsMXXzrOZbfW7WymeQ3KPD8CzvW5pe/8jxAqoHK9+seVcxXOalAQfDHZ8EobfTR GL8g== X-Gm-Message-State: AOAM5323ks030C94xaV42Ts5gSbdg4uv37HlWGI0tkvS/hEuvi+KLR+z Ui4vX0HA3Wgnr+RgbZCoK8r+P/XH1qP0XQ== X-Google-Smtp-Source: ABdhPJw3vYrqDiy6En1bs+d1JcOnD45p7YjFoL5SVj9rI8Fy/cl5XCD+p1olwc+0JCcMDRNRX8AfQA== X-Received: by 2002:a7b:c310:: with SMTP id k16mr18243863wmj.169.1637779908221; Wed, 24 Nov 2021 10:51:48 -0800 (PST) Received: from localhost ([137.220.125.106]) by smtp.gmail.com with ESMTPSA id r11sm605347wrw.5.2021.11.24.10.51.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 10:51:47 -0800 (PST) Message-ID: <8fd8ce6358f022fad8b17b5f2377d9cca876f4aa.camel@debian.org> Subject: Re: [PATCH v2] test/bpf_convert: do not require DNS lookup From: Luca Boccassi To: Stephen Hemminger Cc: dev Date: Wed, 24 Nov 2021 18:51:46 +0000 In-Reply-To: References: <20211109210403.114391-1-stephen@networkplumber.org> <20211110161848.34050-1-stephen@networkplumber.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.38.3-1+plugin MIME-Version: 1.0 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Sun, 2021-11-14 at 23:39 +0000, Luca Boccassi wrote: > On Wed, 10 Nov 2021 at 16:18, Stephen Hemminger > wrote: > >=20 > > These tests were using strings with hostname (dpdk.org) and this makes > > test code do a DNS lookup. In container environment used for OpenSuse > > build, DNS is unavailable. Replace dpdk.org with an IPv4 address > > reserved for documentation (RFC 5737) and use IPv6 in one example (RFC = 3849). > > Actual addresses don't matter for this test whichis validating tke > > classic BPF to eBPF for common cases. > >=20 > > Signed-off-by: Stephen Hemminger > > --- > > v2 - use RFC reserved address > >=20 > > =C2=A0app/test/test_bpf.c | 4 ++-- > > =C2=A01 file changed, 2 insertions(+), 2 deletions(-) > >=20 > > diff --git a/app/test/test_bpf.c b/app/test/test_bpf.c > > index ef861d05e755..785f3e689e10 100644 > > --- a/app/test/test_bpf.c > > +++ b/app/test/test_bpf.c > > @@ -3359,8 +3359,8 @@ static const char * const sample_filters[] =3D { > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0"dst net 192.168.0.0/24= ", > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0"dst net 192.168.0.0 ma= sk 255.255.255.0", > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0"port 53", > > - "host dpdk.org and not (port 80 or port 25)", > > - "host dpdk.org and not port 80 and not port 25", > > + "host 192.0.2.1 and not (port 80 or port 25)", > > + "host 2001:4b98:db0::8 and not port 80 and not port 25", > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0"port not 53 and not ar= p", > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0"(tcp[0:2] > 1500 and t= cp[0:2] < 1550) or (tcp[2:2] > 1500 and tcp[2:2] < 1550)", > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0"ether proto 0x888e", > > -- > > 2.30.2 >=20 > Acked-by: Luca Boccassi The test still fails in a restricted build environment on latest main: [ 1846s] EAL: Multi-process socket /tmp/dpdk/bpf_autotest/mp_socket [ 1846s] EAL: Selected IOVA mode 'VA' [ 1846s] APP: HPET is not enabled, using TSC as default timer [ 1846s] RTE>>bpf_autotest [ 1846s] bpf_jit(0xf7fd2000) failed, error code: -95; [ 1846s] bpf_jit(0xf7fd2000) failed, error code: -95; [ 1846s] bpf_jit(0xf7fd2000) failed, error code: -95; [ 1846s] bpf_jit(0xf7fd2000) failed, error code: -95; [ 1846s] bpf_jit(0xf7fd2000) failed, error code: -95; [ 1846s] bpf_jit(0xf7fd2000) failed, error code: -95; [ 1846s] bpf_jit(0xf7fd2000) failed, error code: -95; [ 1846s] bpf_jit(0xf7fd2000) failed, error code: -95; [ 1846s] bpf_jit(0xf7fd2000) failed, error code: -95; [ 1846s] bpf_jit(0xf7fd2000) failed, error code: -95; [ 1846s] bpf_jit(0xf7fd2000) failed, error code: -95; [ 1846s] bpf_jit(0xf7fd2000) failed, error code: -95; [ 1846s] bpf_exec(0xf7fd2000): division by 0 at pc: 0x68; [ 1846s] evaluate: function calls are supported only for 64 bit apps at pc:= 8 [ 1846s] evaluate: function calls are supported only for 64 bit apps at pc:= 4 [ 1846s] evaluate: function calls are supported only for 64 bit apps at pc:= 0 [ 1846s] evaluate: function calls are supported only for 64 bit apps at pc:= 7 [ 1846s] evaluate: function calls are supported only for 64 bit apps at pc:= 10 [ 1846s] bpf_validate: unsupported argument type [ 1846s] bpf_validate: unsupported argument type [ 1846s] bpf_validate: unsupported argument type [ 1846s] run_test(test_store1) start [ 1846s] run_test(test_store2) start [ 1846s] run_test(test_load1) start [ 1846s] run_test(test_ldimm1) start [ 1846s] run_test(test_mul1) start [ 1846s] run_test(test_shift1) start [ 1846s] run_test(test_jump1) start [ 1846s] run_test(test_jump2) start [ 1846s] run_test(test_alu1) start [ 1846s] run_test(test_bele1) start [ 1846s] run_test(test_xadd1) start [ 1846s] run_test(test_div1) start [ 1846s] run_test(test_call1) start [ 1846s] run_test@3202: failed to load bpf code, error=3D22(Invalid argumen= t); [ 1846s] run_test(test_call2) start [ 1846s] run_test@3202: failed to load bpf code, error=3D22(Invalid argumen= t); [ 1846s] run_test(test_call3) start [ 1846s] run_test@3202: failed to load bpf code, error=3D22(Invalid argumen= t); [ 1846s] run_test(test_call4) start [ 1846s] run_test@3202: failed to load bpf code, error=3D22(Invalid argumen= t); [ 1846s] run_test(test_call5) start [ 1846s] run_test@3202: failed to load bpf code, error=3D22(Invalid argumen= t); [ 1846s] run_test(test_ld_mbuf1) start [ 1846s] run_test@3202: failed to load bpf code, error=3D95(Operation not s= upported); [ 1846s] run_test(test_ld_mbuf2) start [ 1846s] run_test@3202: failed to load bpf code, error=3D95(Operation not s= upported); [ 1846s] run_test(test_ld_mbuf3) start [ 1846s] run_test@3202: failed to load bpf code, error=3D95(Operation not s= upported); [ 1846s] Test OK [ 1847s] RTE>>EAL: Detected CPU lcores: 8 [ 1847s] EAL: Detected NUMA nodes: 1 [ 1847s] EAL: Detected shared linkage of DPDK [ 1847s] EAL: Multi-process socket /tmp/dpdk/bpf_convert_autotest/mp_socket [ 1847s] EAL: Selected IOVA mode 'VA' [ 1847s] APP: HPET is not enabled, using TSC as default timer [ 1847s] RTE>>bpf_convert_autotest [ 1847s] bpf_validate: unsupported argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] test_bpf_match@3292: failed to load bpf code, error=3D95(Operation= not supported); [ 1847s] test_bpf_filter_sanity@3338: filter "ip" doesn't match test data [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "host 172.18.5.4" [ 1847s] cBPF program (14 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x800 jt 2 jf 6 [ 1847s] (002) ld [26] [ 1847s] (003) jeq #0xac120504 jt 12 jf 4 [ 1847s] (004) ld [30] [ 1847s] (005) jeq #0xac120504 jt 12 jf 13 [ 1847s] (006) jeq #0x806 jt 8 jf 7 [ 1847s] (007) jeq #0x8035 jt 8 jf 13 [ 1847s] (008) ld [28] [ 1847s] (009) jeq #0xac120504 jt 12 jf 10 [ 1847s] (010) ld [38] [ 1847s] (011) jeq #0xac120504 jt 12 jf 13 [ 1847s] (012) ret #262144 [ 1847s] (013) ret #0 [ 1847s]=20 [ 1847s] eBPF program (24 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jne r0, #0x800, L12 [ 1847s] L5: ldw r0, [26] [ 1847s] L6: mov32 r8, #0xac120504 [ 1847s] L7: jeq r0, #0x0, L20 [ 1847s] L8: ldw r0, [30] [ 1847s] L9: mov32 r8, #0xac120504 [ 1847s] L10: jeq r0, #0x0, L20 [ 1847s] L11: ja L22 [ 1847s] L12: jeq r0, #0x806, L14 [ 1847s] L13: jne r0, #0x8035, L22 [ 1847s] L14: ldw r0, [28] [ 1847s] L15: mov32 r8, #0xac120504 [ 1847s] L16: jeq r0, #0x0, L20 [ 1847s] L17: ldw r0, [38] [ 1847s] L18: mov32 r8, #0xac120504 [ 1847s] L19: jne r0, #0x0, L22 [ 1847s] L20: mov32 r0, #0x40000 [ 1847s] L21: exit [ 1847s] L22: mov32 r0, #0x0 [ 1847s] L23: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "net 192.168.0.0/24" [ 1847s] cBPF program (18 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x800 jt 2 jf 8 [ 1847s] (002) ld [26] [ 1847s] (003) and #0xffffff00 [ 1847s] (004) jeq #0xc0a80000 jt 16 jf 5 [ 1847s] (005) ld [30] [ 1847s] (006) and #0xffffff00 [ 1847s] (007) jeq #0xc0a80000 jt 16 jf 17 [ 1847s] (008) jeq #0x806 jt 10 jf 9 [ 1847s] (009) jeq #0x8035 jt 10 jf 17 [ 1847s] (010) ld [28] [ 1847s] (011) and #0xffffff00 [ 1847s] (012) jeq #0xc0a80000 jt 16 jf 13 [ 1847s] (013) ld [38] [ 1847s] (014) and #0xffffff00 [ 1847s] (015) jeq #0xc0a80000 jt 16 jf 17 [ 1847s] (016) ret #262144 [ 1847s] (017) ret #0 [ 1847s]=20 [ 1847s] eBPF program (28 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jne r0, #0x800, L14 [ 1847s] L5: ldw r0, [26] [ 1847s] L6: and32 r0, #0xffffff00 [ 1847s] L7: mov32 r8, #0xc0a80000 [ 1847s] L8: jeq r0, #0x0, L24 [ 1847s] L9: ldw r0, [30] [ 1847s] L10: and32 r0, #0xffffff00 [ 1847s] L11: mov32 r8, #0xc0a80000 [ 1847s] L12: jeq r0, #0x0, L24 [ 1847s] L13: ja L26 [ 1847s] L14: jeq r0, #0x806, L16 [ 1847s] L15: jne r0, #0x8035, L26 [ 1847s] L16: ldw r0, [28] [ 1847s] L17: and32 r0, #0xffffff00 [ 1847s] L18: mov32 r8, #0xc0a80000 [ 1847s] L19: jeq r0, #0x0, L24 [ 1847s] L20: ldw r0, [38] [ 1847s] L21: and32 r0, #0xffffff00 [ 1847s] L22: mov32 r8, #0xc0a80000 [ 1847s] L23: jne r0, #0x0, L26 [ 1847s] L24: mov32 r0, #0x40000 [ 1847s] L25: exit [ 1847s] L26: mov32 r0, #0x0 [ 1847s] L27: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "src net 192.168.0.0/24" [ 1847s] cBPF program (12 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x800 jt 2 jf 5 [ 1847s] (002) ld [26] [ 1847s] (003) and #0xffffff00 [ 1847s] (004) jeq #0xc0a80000 jt 10 jf 11 [ 1847s] (005) jeq #0x806 jt 7 jf 6 [ 1847s] (006) jeq #0x8035 jt 7 jf 11 [ 1847s] (007) ld [28] [ 1847s] (008) and #0xffffff00 [ 1847s] (009) jeq #0xc0a80000 jt 10 jf 11 [ 1847s] (010) ret #262144 [ 1847s] (011) ret #0 [ 1847s]=20 [ 1847s] eBPF program (20 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jne r0, #0x800, L10 [ 1847s] L5: ldw r0, [26] [ 1847s] L6: and32 r0, #0xffffff00 [ 1847s] L7: mov32 r8, #0xc0a80000 [ 1847s] L8: jeq r0, #0x0, L16 [ 1847s] L9: ja L18 [ 1847s] L10: jeq r0, #0x806, L12 [ 1847s] L11: jne r0, #0x8035, L18 [ 1847s] L12: ldw r0, [28] [ 1847s] L13: and32 r0, #0xffffff00 [ 1847s] L14: mov32 r8, #0xc0a80000 [ 1847s] L15: jne r0, #0x0, L18 [ 1847s] L16: mov32 r0, #0x40000 [ 1847s] L17: exit [ 1847s] L18: mov32 r0, #0x0 [ 1847s] L19: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "src net 192.168.0.0 mask 255.255.255.0" [ 1847s] cBPF program (12 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x800 jt 2 jf 5 [ 1847s] (002) ld [26] [ 1847s] (003) and #0xffffff00 [ 1847s] (004) jeq #0xc0a80000 jt 10 jf 11 [ 1847s] (005) jeq #0x806 jt 7 jf 6 [ 1847s] (006) jeq #0x8035 jt 7 jf 11 [ 1847s] (007) ld [28] [ 1847s] (008) and #0xffffff00 [ 1847s] (009) jeq #0xc0a80000 jt 10 jf 11 [ 1847s] (010) ret #262144 [ 1847s] (011) ret #0 [ 1847s]=20 [ 1847s] eBPF prbpf_validate: unsupported argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] ogram (20 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jne r0, #0x800, L10 [ 1847s] L5: ldw r0, [26] [ 1847s] L6: and32 r0, #0xffffff00 [ 1847s] L7: mov32 r8, #0xc0a80000 [ 1847s] L8: jeq r0, #0x0, L16 [ 1847s] L9: ja L18 [ 1847s] L10: jeq r0, #0x806, L12 [ 1847s] L11: jne r0, #0x8035, L18 [ 1847s] L12: ldw r0, [28] [ 1847s] L13: and32 r0, #0xffffff00 [ 1847s] L14: mov32 r8, #0xc0a80000 [ 1847s] L15: jne r0, #0x0, L18 [ 1847s] L16: mov32 r0, #0x40000 [ 1847s] L17: exit [ 1847s] L18: mov32 r0, #0x0 [ 1847s] L19: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "dst net 192.168.0.0/24" [ 1847s] cBPF program (12 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x800 jt 2 jf 5 [ 1847s] (002) ld [30] [ 1847s] (003) and #0xffffff00 [ 1847s] (004) jeq #0xc0a80000 jt 10 jf 11 [ 1847s] (005) jeq #0x806 jt 7 jf 6 [ 1847s] (006) jeq #0x8035 jt 7 jf 11 [ 1847s] (007) ld [38] [ 1847s] (008) and #0xffffff00 [ 1847s] (009) jeq #0xc0a80000 jt 10 jf 11 [ 1847s] (010) ret #262144 [ 1847s] (011) ret #0 [ 1847s]=20 [ 1847s] eBPF program (20 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jne r0, #0x800, L10 [ 1847s] L5: ldw r0, [30] [ 1847s] L6: and32 r0, #0xffffff00 [ 1847s] L7: mov32 r8, #0xc0a80000 [ 1847s] L8: jeq r0, #0x0, L16 [ 1847s] L9: ja L18 [ 1847s] L10: jeq r0, #0x806, L12 [ 1847s] L11: jne r0, #0x8035, L18 [ 1847s] L12: ldw r0, [38] [ 1847s] L13: and32 r0, #0xffffff00 [ 1847s] L14: mov32 r8, #0xc0a80000 [ 1847s] L15: jne r0, #0x0, L18 [ 1847s] L16: mov32 r0, #0x40000 [ 1847s] L17: exit [ 1847s] L18: mov32 r0, #0x0 [ 1847s] L19: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "dst net 192.168.0.0 mask 255.255.255.0" [ 1847s] cBPF program (12 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x800 jt 2 jf 5 [ 1847s] (002) ld [30] [ 1847s] (003) and #0xffffff00 [ 1847s] (004) jeq #0xc0a80000 jt 10 jf 11 [ 1847s] (005) jeq #0x806 jt 7 jf 6 [ 1847s] (006) jeq #0x8035 jt 7 jf 11 [ 1847s] (007) ld [38] [ 1847s] (008) and #0xffffff00 [ 1847s] (009) jeq #0xc0a80000 jt 10 jf 11 [ 1847s] (010) ret #262144 [ 1847s] (011) ret #0 [ 1847s]=20 [ 1847s] eBPF program (20 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jne r0, #0x800, L10 [ 1847s] L5: ldw r0, [30] [ 1847s] L6: and32 r0, #0xffffff00 [ 1847s] L7: mov32 r8, #0xc0a80000 [ 1847s] L8: jeq r0, #0x0, L16 [ 1847s] L9: ja L18 [ 1847s] L10: jeq r0, #0x806, L12 [ 1847s] L11: jne r0, #0x8035, L18 [ 1847s] L12: ldw r0, [38] [ 1847s] L13: and32 r0, #0xffffff00 [ 1847s] L14: mov32 r8, #0xc0a80000 [ 1847s] L15: jne r0, #0x0, L18 [ 1847s] L16: mov32 r0, #0x40000 [ 1847s] L17: exit [ 1847s] L18: mov32 r0, #0x0 [ 1847s] L19: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "port 53" [ 1847s] cBPF program (24 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x86dd jt 2 jf 10 [ 1847s] (002) ldb [20] [ 1847s] (003) jeq #0x84 jt 6 jf 4 [ 1847s] (004) jeq #0x6 jt 6 jf 5 [ 1847s] (005) jeq #0x11 jt 6 jf 23 [ 1847s] (006) ldh [54] [ 1847s] (007) jeq #0x35 jt 22 jf 8 [ 1847s] (008) ldh [56] [ 1847s] (009) jeq #0x35 jt 22 jf 23 [ 1847s] (010) jeq #0x800 jt 11 jf 23 [ 1847s] (011) ldb [23] [ 1847s] (012) jeq #0x84 jt 15 jf 13 [ 1847s] (013) jeq #0x6 jt 15 jf 14 [ 1847s] (014) jeq #0x11 jt 15 jf 23 [ 1847s] (015) ldh [20] [ 1847s] (016) jset #0x1fff jt 23 jf 17 [ 1847s] (017) ldxb 4*([14]&0xf) [ 1847s] (018) ldh [x + 14] [ 1847s] (019) jeq #0x35 jt 22 jf 20 [ 1847s] (020) ldh [x + 16] [ 1847s] (021) jeq #0x35 jt 22 jf 23 [ 1847s] (022) ret #262144 [ 1847s] (023) ret #0 [ 1847s]=20 [ 1847s] eBPF program (35 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jne r0, #0x86dd, L14 [ 1847s] L5: ldb r0, [20] [ 1847s] L6: jeq r0, #0x84, L9 [ 1847s] L7: jeq r0, #0x6, L9 [ 1847s] L8: jne r0, #0x11, L33 [ 1847s] L9: ldh r0, [54] [ 1847s] L10: jeq r0, #0x35, L31 [ 1847s] L11: ldh r0, [56] [ 1847s] L12: jeq r0, #0x35, L31 [ 1847s] L13: ja L33 [ 1847s] L14: jne r0, #0x800, L33 [ 1847s] L15: ldb r0, [23] [ 1847s] L16: jeq r0, #0x84, L19 [ 1847s] L17: jeq r0, #0x6, L19 [ 1847s] L18: jne r0, #0x11, L33 [ 1847s] L19: ldh r0, [20] [ 1847s] L20: jset r0, #0x1fff, L33 [ 1847s] L21: mov r8, r0 [ 1847s] L22: ldb r0, [14] [ 1847s] L23: and32 r0, #0xf [ 1847s] L24: lsh32 r0, #0x2 [ 1847s] L25: mov r7, r0 [ 1847s] L26: mov r0, r8 [ 1847s] L27: ldh r0, [r7 + 14] [ 1847s] L28: jeq r0, #0x35, L31 [ 1847s] L29: ldh r0, [r7 + 16] [ 1847s] L30: jne r0, #0x35, L33 [ 1847s] L31: mov32 r0, #0x40000 [ 1847s] L32: exit [ 1847s] L33: mov32 r0, #0x0 [ 1847s] L34: exit [ 1847s] test_bpf_filter@3411: failed to load bpf cobpf_validate: unsupport= ed argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] de, error=3D95(Operation not supported); [ 1847s] test_bpf_filter "host 192.0.2.1 and not (port 80 or port 25)" [ 1847s] cBPF program (27 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x800 jt 2 jf 19 [ 1847s] (002) ld [26] [ 1847s] (003) jeq #0xc0000201 jt 6 jf 4 [ 1847s] (004) ld [30] [ 1847s] (005) jeq #0xc0000201 jt 6 jf 26 [ 1847s] (006) ldb [23] [ 1847s] (007) jeq #0x84 jt 10 jf 8 [ 1847s] (008) jeq #0x6 jt 10 jf 9 [ 1847s] (009) jeq #0x11 jt 10 jf 25 [ 1847s] (010) ldh [20] [ 1847s] (011) jset #0x1fff jt 25 jf 12 [ 1847s] (012) ldxb 4*([14]&0xf) [ 1847s] (013) ldh [x + 14] [ 1847s] (014) jeq #0x50 jt 26 jf 15 [ 1847s] (015) jeq #0x19 jt 26 jf 16 [ 1847s] (016) ldh [x + 16] [ 1847s] (017) jeq #0x50 jt 26 jf 18 [ 1847s] (018) jeq #0x19 jt 26 jf 25 [ 1847s] (019) jeq #0x806 jt 21 jf 20 [ 1847s] (020) jeq #0x8035 jt 21 jf 26 [ 1847s] (021) ld [28] [ 1847s] (022) jeq #0xc0000201 jt 25 jf 23 [ 1847s] (023) ld [38] [ 1847s] (024) jeq #0xc0000201 jt 25 jf 26 [ 1847s] (025) ret #262144 [ 1847s] (026) ret #0 [ 1847s]=20 [ 1847s] eBPF program (42 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jne r0, #0x800, L30 [ 1847s] L5: ldw r0, [26] [ 1847s] L6: mov32 r8, #0xc0000201 [ 1847s] L7: jeq r0, #0x0, L11 [ 1847s] L8: ldw r0, [30] [ 1847s] L9: mov32 r8, #0xc0000201 [ 1847s] L10: jne r0, #0x0, L40 [ 1847s] L11: ldb r0, [23] [ 1847s] L12: jeq r0, #0x84, L15 [ 1847s] L13: jeq r0, #0x6, L15 [ 1847s] L14: jne r0, #0x11, L38 [ 1847s] L15: ldh r0, [20] [ 1847s] L16: jset r0, #0x1fff, L38 [ 1847s] L17: mov r8, r0 [ 1847s] L18: ldb r0, [14] [ 1847s] L19: and32 r0, #0xf [ 1847s] L20: lsh32 r0, #0x2 [ 1847s] L21: mov r7, r0 [ 1847s] L22: mov r0, r8 [ 1847s] L23: ldh r0, [r7 + 14] [ 1847s] L24: jeq r0, #0x50, L40 [ 1847s] L25: jeq r0, #0x19, L40 [ 1847s] L26: ldh r0, [r7 + 16] [ 1847s] L27: jeq r0, #0x50, L40 [ 1847s] L28: jeq r0, #0x19, L40 [ 1847s] L29: ja L38 [ 1847s] L30: jeq r0, #0x806, L32 [ 1847s] L31: jne r0, #0x8035, L40 [ 1847s] L32: ldw r0, [28] [ 1847s] L33: mov32 r8, #0xc0000201 [ 1847s] L34: jeq r0, #0x0, L38 [ 1847s] L35: ldw r0, [38] [ 1847s] L36: mov32 r8, #0xc0000201 [ 1847s] L37: jne r0, #0x0, L40 [ 1847s] L38: mov32 r0, #0x40000 [ 1847s] L39: exit [ 1847s] L40: mov32 r0, #0x0 [ 1847s] L41: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "host 2001:4b98:db0::8 and not port 80 and not por= t 25" [ 1847s] cBPF program (30 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x86dd jt 2 jf 29 [ 1847s] (002) ld [22] [ 1847s] (003) jeq #0x20014b98 jt 4 jf 10 [ 1847s] (004) ld [26] [ 1847s] (005) jeq #0xdb00000 jt 6 jf 10 [ 1847s] (006) ld [30] [ 1847s] (007) jeq #0x0 jt 8 jf 10 [ 1847s] (008) ld [34] [ 1847s] (009) jeq #0x8 jt 18 jf 10 [ 1847s] (010) ld [38] [ 1847s] (011) jeq #0x20014b98 jt 12 jf 29 [ 1847s] (012) ld [42] [ 1847s] (013) jeq #0xdb00000 jt 14 jf 29 [ 1847s] (014) ld [46] [ 1847s] (015) jeq #0x0 jt 16 jf 29 [ 1847s] (016) ld [50] [ 1847s] (017) jeq #0x8 jt 18 jf 29 [ 1847s] (018) ldb [20] [ 1847s] (019) jeq #0x84 jt 22 jf 20 [ 1847s] (020) jeq #0x6 jt 22 jf 21 [ 1847s] (021) jeq #0x11 jt 22 jf 28 [ 1847s] (022) ldh [54] [ 1847s] (023) jeq #0x50 jt 29 jf 24 [ 1847s] (024) jeq #0x19 jt 29 jf 25 [ 1847s] (025) ldh [56] [ 1847s] (026) jeq #0x50 jt 29 jf 27 [ 1847s] (027) jeq #0x19 jt 29 jf 28 [ 1847s] (028) ret #262144 [ 1847s] (029) ret #0 [ 1847s]=20 [ 1847s] eBPF program (35 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jne r0, #0x86dd, L33 [ 1847s] L5: ldw r0, [22] [ 1847s] L6: jne r0, #0x20014b98, L13 [ 1847s] L7: ldw r0, [26] [ 1847s] L8: jne r0, #0xdb00000, L13 [ 1847s] L9: ldw r0, [30] [ 1847s] L10: jne r0, #0x0, L13 [ 1847s] L11: ldw r0, [34] [ 1847s] L12: jeq r0, #0x8, L21 [ 1847s] L13: ldw r0, [38] [ 1847s] L14: jne r0, #0x20014b98, L33 [ 1847s] L15: ldw r0, [42] [ 1847s] L16: jne r0, #0xdb00000, L33 [ 1847s] L17: ldw r0, [46] [ 1847s] L18: jne r0, #0x0, L33 [ 1847s] L19: ldw r0, [50] [ 1847s] L20: jne r0, #0x8, L33 [ 1847s] L21: ldb r0, [20] [ 1847s] L22: jeq r0, #0x84, L25 [ 1847s] L23: jeq r0, #0x6, L25 [ 1847s] L24: jne r0, #0x11, L31 [ 1847s] L25: ldh r0, [54] [ 1847s] L26: jeq r0, #0x50, L33 [ 1847s] L27: jeq r0, #0x19, L33 [ 1847s] L28: ldh r0, [56] [ 1847s] L29: jeq r0, #0x50, L33 [ 1847s] L30: jeq r0, #0x19, L33 [ 1847s] L31: mov32 r0, #0x40000 [ 1847s] L32: exit [ 1847s] L33: mov32 r0, #0x0 [ 1847s] L34: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "port not 53 and not arp" [ 1847s] cBPF program (25 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x86dd bpf_validate: unsupported argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] jt 2 jf 10 [ 1847s] (002) ldb [20] [ 1847s] (003) jeq #0x84 jt 6 jf 4 [ 1847s] (004) jeq #0x6 jt 6 jf 5 [ 1847s] (005) jeq #0x11 jt 6 jf 24 [ 1847s] (006) ldh [54] [ 1847s] (007) jeq #0x35 jt 23 jf 8 [ 1847s] (008) ldh [56] [ 1847s] (009) jeq #0x35 jt 23 jf 24 [ 1847s] (010) jeq #0x800 jt 11 jf 22 [ 1847s] (011) ldb [23] [ 1847s] (012) jeq #0x84 jt 15 jf 13 [ 1847s] (013) jeq #0x6 jt 15 jf 14 [ 1847s] (014) jeq #0x11 jt 15 jf 24 [ 1847s] (015) ldh [20] [ 1847s] (016) jset #0x1fff jt 24 jf 17 [ 1847s] (017) ldxb 4*([14]&0xf) [ 1847s] (018) ldh [x + 14] [ 1847s] (019) jeq #0x35 jt 23 jf 20 [ 1847s] (020) ldh [x + 16] [ 1847s] (021) jeq #0x35 jt 23 jf 24 [ 1847s] (022) jeq #0x806 jt 23 jf 24 [ 1847s] (023) ret #0 [ 1847s] (024) ret #262144 [ 1847s]=20 [ 1847s] eBPF program (37 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jne r0, #0x86dd, L14 [ 1847s] L5: ldb r0, [20] [ 1847s] L6: jeq r0, #0x84, L9 [ 1847s] L7: jeq r0, #0x6, L9 [ 1847s] L8: jne r0, #0x11, L35 [ 1847s] L9: ldh r0, [54] [ 1847s] L10: jeq r0, #0x35, L33 [ 1847s] L11: ldh r0, [56] [ 1847s] L12: jeq r0, #0x35, L33 [ 1847s] L13: ja L35 [ 1847s] L14: jne r0, #0x800, L32 [ 1847s] L15: ldb r0, [23] [ 1847s] L16: jeq r0, #0x84, L19 [ 1847s] L17: jeq r0, #0x6, L19 [ 1847s] L18: jne r0, #0x11, L35 [ 1847s] L19: ldh r0, [20] [ 1847s] L20: jset r0, #0x1fff, L35 [ 1847s] L21: mov r8, r0 [ 1847s] L22: ldb r0, [14] [ 1847s] L23: and32 r0, #0xf [ 1847s] L24: lsh32 r0, #0x2 [ 1847s] L25: mov r7, r0 [ 1847s] L26: mov r0, r8 [ 1847s] L27: ldh r0, [r7 + 14] [ 1847s] L28: jeq r0, #0x35, L33 [ 1847s] L29: ldh r0, [r7 + 16] [ 1847s] L30: jeq r0, #0x35, L33 [ 1847s] L31: ja L35 [ 1847s] L32: jne r0, #0x806, L35 [ 1847s] L33: mov32 r0, #0x0 [ 1847s] L34: exit [ 1847s] L35: mov32 r0, #0x40000 [ 1847s] L36: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "(tcp[0:2] > 1500 and tcp[0:2] < 1550) or (tcp[2:2= ] > 1500 and tcp[2:2] < 1550)" [ 1847s] cBPF program (15 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x800 jt 2 jf 14 [ 1847s] (002) ldb [23] [ 1847s] (003) jeq #0x6 jt 4 jf 14 [ 1847s] (004) ldh [20] [ 1847s] (005) jset #0x1fff jt 14 jf 6 [ 1847s] (006) ldxb 4*([14]&0xf) [ 1847s] (007) ldh [x + 14] [ 1847s] (008) jgt #0x5dc jt 9 jf 10 [ 1847s] (009) jge #0x60e jt 10 jf 13 [ 1847s] (010) ldh [x + 16] [ 1847s] (011) jgt #0x5dc jt 12 jf 14 [ 1847s] (012) jge #0x60e jt 14 jf 13 [ 1847s] (013) ret #262144 [ 1847s] (014) ret #0 [ 1847s]=20 [ 1847s] eBPF program (28 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jne r0, #0x800, L26 [ 1847s] L5: ldb r0, [23] [ 1847s] L6: jne r0, #0x6, L26 [ 1847s] L7: ldh r0, [20] [ 1847s] L8: jset r0, #0x1fff, L26 [ 1847s] L9: mov r8, r0 [ 1847s] L10: ldb r0, [14] [ 1847s] L11: and32 r0, #0xf [ 1847s] L12: lsh32 r0, #0x2 [ 1847s] L13: mov r7, r0 [ 1847s] L14: mov r0, r8 [ 1847s] L15: ldh r0, [r7 + 14] [ 1847s] L16: jgt r0, #0x5dc, L18 [ 1847s] L17: ja L20 [ 1847s] L18: jge r0, #0x60e, L20 [ 1847s] L19: ja L24 [ 1847s] L20: ldh r0, [r7 + 16] [ 1847s] L21: jgt r0, #0x5dc, L23 [ 1847s] L22: ja L26 [ 1847s] L23: jge r0, #0x60e, L26 [ 1847s] L24: mov32 r0, #0x40000 [ 1847s] L25: exit [ 1847s] L26: mov32 r0, #0x0 [ 1847s] L27: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "ether proto 0x888e" [ 1847s] cBPF program (4 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x888e jt 2 jf 3 [ 1847s] (002) ret #262144 [ 1847s] (003) ret #0 [ 1847s]=20 [ 1847s] eBPF program (9 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jne r0, #0x888e, L7 [ 1847s] L5: mov32 r0, #0x40000 [ 1847s] L6: exit [ 1847s] L7: mov32 r0, #0x0 [ 1847s] L8: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "ether[0] & 1 =3D 0 and ip[16] >=3D 224" [ 1847s] cBPF program (8 insns) [ 1847s] (000) ldb [0] [ 1847s] (001) jset #0x1 jt 7 jf 2 [ 1847s] (002) ldh [12] [ 1847s] (003) jeq #0x800 jt 4 jf 7 [ 1847s] (004) ldb [30] [ 1847s] (005) jge #0xe0 jt 6 jf 7 [ 1847s] (006) ret #262144 [ 1847s] (007) ret #0 [ 1847s]=20 [ 1847s] eBPF program (14 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldb r0, [0] [ 1847s] L4: jset r0, #0x1, L12 [ 1847s] L5: ldh r0, [12] [ 1847s] L6: jne r0, #0x800, L12 [ 1847s] L7: ldb r0, [30] [ 1847s] L8: jge r0, #0xe0, L10 [ 1847s] L9: ja L12 [ 1847s] L10: mov32 r0, #0x40000 [ 1847s] L11: exit [ 1847s] L12: mov32 r0, #0x0 [ 1847s] L13: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "icmp[icmptype] !=3D icmp-echo and icmp[icmptype] = !=3D icmp-echoreplybpf_validate: unsupported argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] " [ 1847s] cBPF program (12 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x800 jt 2 jf 11 [ 1847s] (002) ldb [23] [ 1847s] (003) jeq #0x1 jt 4 jf 11 [ 1847s] (004) ldh [20] [ 1847s] (005) jset #0x1fff jt 11 jf 6 [ 1847s] (006) ldxb 4*([14]&0xf) [ 1847s] (007) ldb [x + 14] [ 1847s] (008) jeq #0x8 jt 11 jf 9 [ 1847s] (009) jeq #0x0 jt 11 jf 10 [ 1847s] (010) ret #262144 [ 1847s] (011) ret #0 [ 1847s]=20 [ 1847s] eBPF program (22 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jne r0, #0x800, L20 [ 1847s] L5: ldb r0, [23] [ 1847s] L6: jne r0, #0x1, L20 [ 1847s] L7: ldh r0, [20] [ 1847s] L8: jset r0, #0x1fff, L20 [ 1847s] L9: mov r8, r0 [ 1847s] L10: ldb r0, [14] [ 1847s] L11: and32 r0, #0xf [ 1847s] L12: lsh32 r0, #0x2 [ 1847s] L13: mov r7, r0 [ 1847s] L14: mov r0, r8 [ 1847s] L15: ldb r0, [r0 + 14] [ 1847s] L16: jeq r0, #0x8, L20 [ 1847s] L17: jeq r0, #0x0, L20 [ 1847s] L18: mov32 r0, #0x40000 [ 1847s] L19: exit [ 1847s] L20: mov32 r0, #0x0 [ 1847s] L21: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "tcp[tcpflags] & (tcp-syn|tcp-fin) !=3D 0 and not = src and dst net 127.0.0.1" [ 1847s] cBPF program (15 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x800 jt 2 jf 14 [ 1847s] (002) ldb [23] [ 1847s] (003) jeq #0x6 jt 4 jf 14 [ 1847s] (004) ldh [20] [ 1847s] (005) jset #0x1fff jt 14 jf 6 [ 1847s] (006) ldxb 4*([14]&0xf) [ 1847s] (007) ldb [x + 27] [ 1847s] (008) jset #0x3 jt 9 jf 14 [ 1847s] (009) ld [26] [ 1847s] (010) jeq #0x7f000001 jt 11 jf 13 [ 1847s] (011) ld [30] [ 1847s] (012) jeq #0x7f000001 jt 14 jf 13 [ 1847s] (013) ret #262144 [ 1847s] (014) ret #0 [ 1847s]=20 [ 1847s] eBPF program (26 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jne r0, #0x800, L24 [ 1847s] L5: ldb r0, [23] [ 1847s] L6: jne r0, #0x6, L24 [ 1847s] L7: ldh r0, [20] [ 1847s] L8: jset r0, #0x1fff, L24 [ 1847s] L9: mov r8, r0 [ 1847s] L10: ldb r0, [14] [ 1847s] L11: and32 r0, #0xf [ 1847s] L12: lsh32 r0, #0x2 [ 1847s] L13: mov r7, r0 [ 1847s] L14: mov r0, r8 [ 1847s] L15: ldb r0, [r0 + 27] [ 1847s] L16: jset r0, #0x3, L18 [ 1847s] L17: ja L24 [ 1847s] L18: ldw r0, [26] [ 1847s] L19: jne r0, #0x7f000001, L22 [ 1847s] L20: ldw r0, [30] [ 1847s] L21: jeq r0, #0x7f000001, L24 [ 1847s] L22: mov32 r0, #0x40000 [ 1847s] L23: exit [ 1847s] L24: mov32 r0, #0x0 [ 1847s] L25: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "not ether dst 01:80:c2:00:00:0e" [ 1847s] cBPF program (6 insns) [ 1847s] (000) ld [2] [ 1847s] (001) jeq #0xc200000e jt 2 jf 5 [ 1847s] (002) ldh [0] [ 1847s] (003) jeq #0x180 jt 4 jf 5 [ 1847s] (004) ret #0 [ 1847s] (005) ret #262144 [ 1847s]=20 [ 1847s] eBPF program (12 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldw r0, [2] [ 1847s] L4: mov32 r8, #0xc200000e [ 1847s] L5: jne r0, #0x0, L10 [ 1847s] L6: ldh r0, [0] [ 1847s] L7: jne r0, #0x180, L10 [ 1847s] L8: mov32 r0, #0x0 [ 1847s] L9: exit [ 1847s] L10: mov32 r0, #0x40000 [ 1847s] L11: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "not broadcast and not multicast" [ 1847s] cBPF program (8 insns) [ 1847s] (000) ld [2] [ 1847s] (001) jeq #0xffffffff jt 2 jf 4 [ 1847s] (002) ldh [0] [ 1847s] (003) jeq #0xffff jt 6 jf 4 [ 1847s] (004) ldb [0] [ 1847s] (005) jset #0x1 jt 6 jf 7 [ 1847s] (006) ret #0 [ 1847s] (007) ret #262144 [ 1847s]=20 [ 1847s] eBPF program (15 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldw r0, [2] [ 1847s] L4: mov32 r8, #0xffffffff [ 1847s] L5: jne r0, #0x0, L8 [ 1847s] L6: ldh r0, [0] [ 1847s] L7: jeq r0, #0xffff, L11 [ 1847s] L8: ldb r0, [0] [ 1847s] L9: jset r0, #0x1, L11 [ 1847s] L10: ja L13 [ 1847s] L11: mov32 r0, #0x0 [ 1847s] L12: exit [ 1847s] L13: mov32 r0, #0x40000 [ 1847s] L14: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "dst host ff02::1" [ 1847s] cBPF program (12 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x86dd jt 2 jf 11 [ 1847s] (002) ld [38] [ 1847s] (003) jeq #0xff020000 jt 4 jf 11 [ 1847s] (004) ld [42] [ 1847s] (005) jeq #0x0 jt 6 jf 11 [ 1847s] (006) ld [46] [ 1847s] (007) jeq #0x0 jt 8 jf 11 [ 1847s] (008) ld [50] [ 1847s] (009) jeq #0x1 jt 10 jf 11 [ 1847s] (010) ret #262144 [ 1847s] (011) ret #0 [ 1847s]=20 [ 1847s] eBPF program (18 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jne r0, #0x86dd, L16 [ 1847s] L5: ldw r0, [38] [ 1847s] L6: mov32 r8, #0xff020000 [ 1847s] L7: jne r0, #0x0, L16 [ 1847s] L8: ldw r0, [42] [ 1847s] L9: jne r0, #0x0, L16 [ 1847s] L10: ldw r0, [46] [ 1847s] L11: jne r0, #0x0, L16 [ 1847s] L12: ldw r0, [50] [ 1847s] L13: jne r0, #0x1, bpf_validate: unsupported argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] bpf_validate: unsupported argument type [ 1847s] L16 [ 1847s] L14: mov32 r0, #0x40000 [ 1847s] L15: exit [ 1847s] L16: mov32 r0, #0x0 [ 1847s] L17: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "port 80 and tcp[((tcp[12:1] & 0xf0) >> 2):4] =3D = 0x47455420" [ 1847s] cBPF program (22 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x86dd jt 21 jf 2 [ 1847s] (002) jeq #0x800 jt 3 jf 21 [ 1847s] (003) ldb [23] [ 1847s] (004) jeq #0x84 jt 21 jf 5 [ 1847s] (005) jeq #0x6 jt 6 jf 21 [ 1847s] (006) ldh [20] [ 1847s] (007) jset #0x1fff jt 21 jf 8 [ 1847s] (008) ldxb 4*([14]&0xf) [ 1847s] (009) ldh [x + 14] [ 1847s] (010) jeq #0x50 jt 13 jf 11 [ 1847s] (011) ldh [x + 16] [ 1847s] (012) jeq #0x50 jt 13 jf 21 [ 1847s] (013) ldb [x + 26] [ 1847s] (014) and #0xf0 [ 1847s] (015) rsh #2 [ 1847s] (016) add x [ 1847s] (017) tax =20 [ 1847s] (018) ld [x + 14] [ 1847s] (019) jeq #0x47455420 jt 20 jf 21 [ 1847s] (020) ret #262144 [ 1847s] (021) ret #0 [ 1847s]=20 [ 1847s] eBPF program (32 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jeq r0, #0x86dd, L30 [ 1847s] L5: jne r0, #0x800, L30 [ 1847s] L6: ldb r0, [23] [ 1847s] L7: jeq r0, #0x84, L30 [ 1847s] L8: jne r0, #0x6, L30 [ 1847s] L9: ldh r0, [20] [ 1847s] L10: jset r0, #0x1fff, L30 [ 1847s] L11: mov r8, r0 [ 1847s] L12: ldb r0, [14] [ 1847s] L13: and32 r0, #0xf [ 1847s] L14: lsh32 r0, #0x2 [ 1847s] L15: mov r7, r0 [ 1847s] L16: mov r0, r8 [ 1847s] L17: ldh r0, [r7 + 14] [ 1847s] L18: jeq r0, #0x50, L21 [ 1847s] L19: ldh r0, [r7 + 16] [ 1847s] L20: jne r0, #0x50, L30 [ 1847s] L21: ldb r0, [r0 + 26] [ 1847s] L22: and32 r0, #0xf0 [ 1847s] L23: rsh32 r0, #0x2 [ 1847s] L24: add32 r0, r7 [ 1847s] L25: mov r7, r0 [ 1847s] L26: ldw r0, [r0 + 14] [ 1847s] L27: jne r0, #0x47455420, L30 [ 1847s] L28: mov32 r0, #0x40000 [ 1847s] L29: exit [ 1847s] L30: mov32 r0, #0x0 [ 1847s] L31: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "dst port 135 and tcp port 135 and ip[2:2]=3D=3D48= " [ 1847s] cBPF program (15 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x86dd jt 14 jf 2 [ 1847s] (002) jeq #0x800 jt 3 jf 14 [ 1847s] (003) ldb [23] [ 1847s] (004) jeq #0x84 jt 14 jf 5 [ 1847s] (005) jeq #0x6 jt 6 jf 14 [ 1847s] (006) ldh [20] [ 1847s] (007) jset #0x1fff jt 14 jf 8 [ 1847s] (008) ldxb 4*([14]&0xf) [ 1847s] (009) ldh [x + 16] [ 1847s] (010) jeq #0x87 jt 11 jf 14 [ 1847s] (011) ldh [16] [ 1847s] (012) jeq #0x30 jt 13 jf 14 [ 1847s] (013) ret #262144 [ 1847s] (014) ret #0 [ 1847s]=20 [ 1847s] eBPF program (25 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jeq r0, #0x86dd, L23 [ 1847s] L5: jne r0, #0x800, L23 [ 1847s] L6: ldb r0, [23] [ 1847s] L7: jeq r0, #0x84, L23 [ 1847s] L8: jne r0, #0x6, L23 [ 1847s] L9: ldh r0, [20] [ 1847s] L10: jset r0, #0x1fff, L23 [ 1847s] L11: mov r8, r0 [ 1847s] L12: ldb r0, [14] [ 1847s] L13: and32 r0, #0xf [ 1847s] L14: lsh32 r0, #0x2 [ 1847s] L15: mov r7, r0 [ 1847s] L16: mov r0, r8 [ 1847s] L17: ldh r0, [r7 + 16] [ 1847s] L18: jne r0, #0x87, L23 [ 1847s] L19: ldh r0, [16] [ 1847s] L20: jne r0, #0x30, L23 [ 1847s] L21: mov32 r0, #0x40000 [ 1847s] L22: exit [ 1847s] L23: mov32 r0, #0x0 [ 1847s] L24: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "icmp[icmptype]=3D=3Dicmp-echo and ip[2:2]=3D=3D92= and icmp[8:4]=3D=3D0xAAAAAAAA" [ 1847s] cBPF program (15 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x800 jt 2 jf 14 [ 1847s] (002) ldb [23] [ 1847s] (003) jeq #0x1 jt 4 jf 14 [ 1847s] (004) ldh [20] [ 1847s] (005) jset #0x1fff jt 14 jf 6 [ 1847s] (006) ldxb 4*([14]&0xf) [ 1847s] (007) ldb [x + 14] [ 1847s] (008) jeq #0x8 jt 9 jf 14 [ 1847s] (009) ldh [16] [ 1847s] (010) jeq #0x5c jt 11 jf 14 [ 1847s] (011) ld [x + 22] [ 1847s] (012) jeq #0xaaaaaaaa jt 13 jf 14 [ 1847s] (013) ret #262144 [ 1847s] (014) ret #0 [ 1847s]=20 [ 1847s] eBPF program (26 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jne r0, #0x800, L24 [ 1847s] L5: ldb r0, [23] [ 1847s] L6: jne r0, #0x1, L24 [ 1847s] L7: ldh r0, [20] [ 1847s] L8: jset r0, #0x1fff, L24 [ 1847s] L9: mov r8, r0 [ 1847s] L10: ldb r0, [14] [ 1847s] L11: and32 r0, #0xf [ 1847s] L12: lsh32 r0, #0x2 [ 1847s] L13: mov r7, r0 [ 1847s] L14: mov r0, r8 [ 1847s] L15: ldb r0, [r0 + 14] [ 1847s] L16: jne r0, #0x8, L24 [ 1847s] L17: ldh r0, [16] [ 1847s] L18: jne r0, #0x5c, L24 [ 1847s] L19: ldw r0, [r0 + 22] [ 1847s] L20: mov32 r8, #0xaaaaaaaa [ 1847s] L21: jne r0, #0x0, L24 [ 1847s] L22: mov32 r0, #0x40000 [ 1847s] L23: exit [ 1847s] L24: mov32 r0, #0x0 [ 1847s] L25: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "dst port 135 or dst port 445 or dst portbpf_valid= ate: unsupported argument type [ 1847s] 1433 and tcp[tcpflags] & (tcp-syn) !=3D 0 and tcp[tcpflags] & (tc= p-ack) =3D 0 and src net 192.168.0.0/24" [ 1847s] cBPF program (21 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x86dd jt 20 jf 2 [ 1847s] (002) jeq #0x800 jt 3 jf 20 [ 1847s] (003) ldb [23] [ 1847s] (004) jeq #0x84 jt 20 jf 5 [ 1847s] (005) jeq #0x6 jt 6 jf 20 [ 1847s] (006) ldh [20] [ 1847s] (007) jset #0x1fff jt 20 jf 8 [ 1847s] (008) ldxb 4*([14]&0xf) [ 1847s] (009) ldh [x + 16] [ 1847s] (010) jeq #0x87 jt 13 jf 11 [ 1847s] (011) jeq #0x1bd jt 13 jf 12 [ 1847s] (012) jeq #0x599 jt 13 jf 20 [ 1847s] (013) ldb [x + 27] [ 1847s] (014) jset #0x2 jt 15 jf 20 [ 1847s] (015) jset #0x10 jt 20 jf 16 [ 1847s] (016) ld [26] [ 1847s] (017) and #0xffffff00 [ 1847s] (018) jeq #0xc0a80000 jt 19 jf 20 [ 1847s] (019) ret #262144 [ 1847s] (020) ret #0 [ 1847s]=20 [ 1847s] eBPF program (33 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jeq r0, #0x86dd, L31 [ 1847s] L5: jne r0, #0x800, L31 [ 1847s] L6: ldb r0, [23] [ 1847s] L7: jeq r0, #0x84, L31 [ 1847s] L8: jne r0, #0x6, L31 [ 1847s] L9: ldh r0, [20] [ 1847s] L10: jset r0, #0x1fff, L31 [ 1847s] L11: mov r8, r0 [ 1847s] L12: ldb r0, [14] [ 1847s] L13: and32 r0, #0xf [ 1847s] L14: lsh32 r0, #0x2 [ 1847s] L15: mov r7, r0 [ 1847s] L16: mov r0, r8 [ 1847s] L17: ldh r0, [r7 + 16] [ 1847s] L18: jeq r0, #0x87, L21 [ 1847s] L19: jeq r0, #0x1bd, L21 [ 1847s] L20: jne r0, #0x599, L31 [ 1847s] L21: ldb r0, [r0 + 27] [ 1847s] L22: jset r0, #0x2, L24 [ 1847s] L23: ja L31 [ 1847s] L24: jset r0, #0x10, L31 [ 1847s] L25: ldw r0, [26] [ 1847s] L26: and32 r0, #0xffffff00 [ 1847s] L27: mov32 r8, #0xc0a80000 [ 1847s] L28: jne r0, #0x0, L31 [ 1847s] L29: mov32 r0, #0x40000 [ 1847s] L30: exit [ 1847s] L31: mov32 r0, #0x0 [ 1847s] L32: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "tcp src port 443 and (tcp[((tcp[12] & 0xF0) >> 4 = ) * 4] =3D 0x18) and (tcp[((tcp[12] & 0xF0) >> 4 ) * 4 + 1] =3D 0x03) and (= tcp[((tcp[12] & 0xF0) >> 4 ) * 4 + 2] < 0x04) and ((ip[2:2] - 4 * (ip[0] & = 0x0F) - 4 * ((tcp[12] & 0xF0) >> 4) > 69))" [ 1847s] cBPF program (62 insns) [ 1847s] (000) ldh [12] [ 1847s] (001) jeq #0x86dd jt 61 jf 2 [ 1847s] (002) jeq #0x800 jt 3 jf 61 [ 1847s] (003) ldb [23] [ 1847s] (004) jeq #0x6 jt 5 jf 61 [ 1847s] (005) ldh [20] [ 1847s] (006) jset #0x1fff jt 61 jf 7 [ 1847s] (007) ldxb 4*([14]&0xf) [ 1847s] (008) ldh [x + 14] [ 1847s] (009) jeq #0x1bb jt 10 jf 61 [ 1847s] (010) ldb [x + 26] [ 1847s] (011) and #0xf0 [ 1847s] (012) rsh #4 [ 1847s] (013) mul #4 [ 1847s] (014) add x [ 1847s] (015) tax =20 [ 1847s] (016) ldb [x + 14] [ 1847s] (017) jeq #0x18 jt 18 jf 61 [ 1847s] (018) ldxb 4*([14]&0xf) [ 1847s] (019) ldb [x + 26] [ 1847s] (020) and #0xf0 [ 1847s] (021) rsh #4 [ 1847s] (022) mul #4 [ 1847s] (023) add #1 [ 1847s] (024) add x [ 1847s] (025) tax =20 [ 1847s] (026) ldb [x + 14] [ 1847s] (027) jeq #0x3 jt 28 jf 61 [ 1847s] (028) ldxb 4*([14]&0xf) [ 1847s] (029) ldb [x + 26] [ 1847s] (030) and #0xf0 [ 1847s] (031) rsh #4 [ 1847s] (032) mul #4 [ 1847s] (033) add #2 [ 1847s] (034) add x [ 1847s] (035) tax =20 [ 1847s] (036) ldb [x + 14] [ 1847s] (037) jge #0x4 jt 61 jf 38 [ 1847s] (038) ldh [16] [ 1847s] (039) st M[5] [ 1847s] (040) ldb [14] [ 1847s] (041) and #0xf [ 1847s] (042) tax =20 [ 1847s] (043) ld #0x4 [ 1847s] (044) mul x [ 1847s] (045) tax =20 [ 1847s] (046) ld M[5] [ 1847s] (047) sub x [ 1847s] (048) st M[9] [ 1847s] (049) ldxb 4*([14]&0xf) [ 1847s] (050) ldb [x + 26] [ 1847s] (051) and #0xf0 [ 1847s] (052) rsh #4 [ 1847s] (053) tax =20 [ 1847s] (054) ld #0x4 [ 1847s] (055) mul x [ 1847s] (056) tax =20 [ 1847s] (057) ld M[9] [ 1847s] (058) sub x [ 1847s] (059) jgt #0x45 jt 60 jf 61 [ 1847s] (060) ret #262144 [ 1847s] (061) ret #0 [ 1847s]=20 [ 1847s] eBPF program (88 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldh r0, [12] [ 1847s] L4: jeq r0, #0x86dd, L86 [ 1847s] L5: jne r0, #0x800, L86 [ 1847s] L6: ldb r0, [23] [ 1847s] L7: jne r0, #0x6, L86 [ 1847s] L8: ldh r0, [20] [ 1847s] L9: jset r0, #0x1fff, L86 [ 1847s] L10: mov r8, r0 [ 1847s] L11: ldb r0, [14] [ 1847s] L12: and32 r0, #0xf [ 1847s] L13: lsh32 r0, #0x2 [ 1847s] L14: mov r7, r0 [ 1847s] L15: mov r0, r8 [ 1847s] L16: ldh r0, [r7 + 14] [ 1847s] L17: jne r0, #0x1bb, L86 [ 1847s] L18: ldb r0, [r0 + 26] [ 1847s] L19: and32 r0, #0xf0 [ 1847s] L20: rsh32 r0, #0x4 [ 1847s] L21: mul32 r0, #0x4 [ 1847s] L22: add32 r0, r7 [ 1847s] L23: mov r7, r0 [ 1847s] L24: ldb r0, [r0 + 14] [ 1847s] L25: jne r0, #0x18, L86 [ 1847s] L26: mov r8, r0 [ 1847s] L27: ldb r0, [14] [ 1847s] L28: and32 r0, #0xf [ 1847s] L29: lsh32 r0, #0x2 [ 1847s] L30: mov r7, r0 [ 1847s] L31: mov r0, r8 [ 1847s] L32: ldb r0, [r0 + 26] [ 1847s] L33: and32 r0, #0xf0 [ 1847s] L34: rsbpf_validate: unsupported argument type [ 1847s] h32 r0, #0x4 [ 1847s] L35: mul32 r0, #0x4 [ 1847s] L36: add32 r0, #0x1 [ 1847s] L37: add32 r0, r7 [ 1847s] L38: mov r7, r0 [ 1847s] L39: ldb r0, [r0 + 14] [ 1847s] L40: jne r0, #0x3, L86 [ 1847s] L41: mov r8, r0 [ 1847s] L42: ldb r0, [14] [ 1847s] L43: and32 r0, #0xf [ 1847s] L44: lsh32 r0, #0x2 [ 1847s] L45: mov r7, r0 [ 1847s] L46: mov r0, r8 [ 1847s] L47: ldb r0, [r0 + 26] [ 1847s] L48: and32 r0, #0xf0 [ 1847s] L49: rsh32 r0, #0x4 [ 1847s] L50: mul32 r0, #0x4 [ 1847s] L51: add32 r0, #0x2 [ 1847s] L52: add32 r0, r7 [ 1847s] L53: mov r7, r0 [ 1847s] L54: ldb r0, [r0 + 14] [ 1847s] L55: jge r0, #0x4, L86 [ 1847s] L56: ldh r0, [16] [ 1847s] L57: stxw [r10 + -44], r0 [ 1847s] L58: ldb r0, [14] [ 1847s] L59: and32 r0, #0xf [ 1847s] L60: mov r7, r0 [ 1847s] L61: mov32 r0, #0x4 [ 1847s] L62: mul32 r0, r7 [ 1847s] L63: mov r7, r0 [ 1847s] L64: ldxw r0, [r10 + -44] [ 1847s] L65: sub32 r0, r7 [ 1847s] L66: stxw [r10 + -28], r0 [ 1847s] L67: mov r8, r0 [ 1847s] L68: ldb r0, [14] [ 1847s] L69: and32 r0, #0xf [ 1847s] L70: lsh32 r0, #0x2 [ 1847s] L71: mov r7, r0 [ 1847s] L72: mov r0, r8 [ 1847s] L73: ldb r0, [r0 + 26] [ 1847s] L74: and32 r0, #0xf0 [ 1847s] L75: rsh32 r0, #0x4 [ 1847s] L76: mov r7, r0 [ 1847s] L77: mov32 r0, #0x4 [ 1847s] L78: mul32 r0, r7 [ 1847s] L79: mov r7, r0 [ 1847s] L80: ldxw r0, [r10 + -28] [ 1847s] L81: sub32 r0, r7 [ 1847s] L82: jgt r0, #0x45, L84 [ 1847s] L83: ja L86 [ 1847s] L84: mov32 r0, #0x40000 [ 1847s] L85: exit [ 1847s] L86: mov32 r0, #0x0 [ 1847s] L87: exit [ 1847s] test_bpf_filter@3411: failed to load bpf code, error=3D95(Operatio= n not supported); [ 1847s] test_bpf_filter "len =3D 128" [ 1847s] cBPF program (4 insns) [ 1847s] (000) ld #pktlen [ 1847s] (001) jeq #0x80 jt 2 jf 3 [ 1847s] (002) ret #262144 [ 1847s] (003) ret #0 [ 1847s]=20 [ 1847s] eBPF program (9 insns) [ 1847s] L0: xor r0, r0 [ 1847s] L1: xor r7, r7 [ 1847s] L2: mov r6, r1 [ 1847s] L3: ldxw r0, [r6 + 36] [ 1847s] L4: jne r0, #0x80, L7 [ 1847s] L5: mov32 r0, #0x40000 [ 1847s] L6: exit [ 1847s] L7: mov32 r0, #0x0 [ 1847s] L8: exit [ 1847s] Test Failed