Actions
Bug #2927
closedInvalid argument (-22) on xdp_filter.bpf filter loading
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:
Description
Currently I am experiencing troubles loading up the xdp_filter.bpf using XDP.
I would dig into it but would appreciate any feedback for that issue with the latest Suricata gitmaster if anyone has some input.
[79098] 9/4/2019 -- 09:52:51 - (runmode-af-packet.c:437) <Info> (ParseAFPConfig) -- af-packet will use '/opt/suricata/ebpf/xdp_filter.bpf' as XDP filter file [79098] 9/4/2019 -- 09:52:51 - (util-ebpf.c:308) <Error> (EBPFSetupXDP) -- [ERRCODE: SC_ERR_INVALID_VALUE(130)] - Unable to set XDP on 'enp94s0np0': Invalid argument (-22) [79098] 9/4/2019 -- 09:52:51 - (runmode-af-packet.c:482) <Warning> (ParseAFPConfig) -- [ERRCODE: SC_ERR_INVALID_VALUE(130)] - Error when setting up XDP [79098] 9/4/2019 -- 09:52:51 - (util-runmodes.c:297) <Info> (RunModeSetLiveCaptureWorkersForDevice) -- Going to use 32 thread(s) [79098] 9/4/2019 -- 09:52:58 - (util-conf.c:115) <Info> (ConfUnixSocketIsEnable) -- Running in live mode, activating unix socket [79098] 9/4/2019 -- 09:52:58 - (unix-manager.c:131) <Info> (UnixNew) -- Using unix socket file '/var/run/suricata/suricata-command.socket' [79098] 9/4/2019 -- 09:52:58 - (tm-threads.c:2157) <Notice> (TmThreadWaitOnThreadInit) -- all 32 packet processing threads, 11 management threads initialized, engine started. 4.19.0-0.bpo.2-amd64 #1 SMP Debian 4.19.16-1~bpo9+1 (2019-02-07) x86_64 GNU/Linux This is Suricata version 5.0.0-dev (rev 7f63ec185) Features: PCAP_SET_BUFF AF_PACKET HAVE_PACKET_FANOUT LIBCAP_NG LIBNET1.1 HAVE_HTP_URI_NORMALIZE_HOOK PCRE_JIT HAVE_NSS HAVE_LUA HAVE_LUAJIT HAVE_LIBJANSSON TLS MAGIC RUST SIMD support: SSE_4_2 SSE_4_1 SSE_3 Atomic intrisics: 1 2 4 8 16 byte(s) 64-bits, Little-endian architecture GCC version 4.2.1 Compatible Clang 6.0.0 (tags/RELEASE_600/final), C version 199901 compiled with _FORTIFY_SOURCE=0 L1 cache line size (CLS)=64 thread local storage method: __thread compiled with LibHTP v0.5.30, linked against LibHTP v0.5.30 Suricata Configuration: AF_PACKET support: yes eBPF support: yes XDP support: yes PF_RING support: no NFQueue support: no NFLOG support: no IPFW support: no Netmap support: no DAG enabled: no Napatech enabled: no WinDivert enabled: no Unix socket enabled: yes Detection enabled: yes Libmagic support: yes libnss support: yes libnspr support: yes libjansson support: yes liblzma support: no hiredis support: no hiredis async with libevent: no Prelude support: no PCRE jit: yes LUA support: yes, through luajit libluajit: yes libgeoip: yes Non-bundled htp: no Old barnyard2 support: no Hyperscan support: yes Libnet support: yes liblz4 support: yes Rust support: yes (default) Rust strict mode: yes Rust debug mode: no Rust compiler: rustc 1.32.0 (9fda7c223 2019-01-16) Rust cargo: cargo 1.32.0 (8610973aa 2019-01-02) Python support: yes Python path: /usr/bin/python3 Python version: Python 3.5.3 Python distutils yes Python yaml no Install suricatactl: yes Install suricatasc: yes Install suricata-update: not bundled Profiling enabled: no Profiling locks enabled: no Development settings: Coccinelle / spatch: no Unit tests enabled: no Debug output enabled: no Debug validation enabled: no Generic build parameters: Installation prefix: /usr Configuration directory: /etc/suricata/ Log directory: /var/log/suricata/ --prefix /usr --sysconfdir /etc --localstatedir /var --datarootdir /usr/share Host: x86_64-pc-linux-gnu Compiler: clang-6.0 (exec name) / clang (real) GCC Protect enabled: no GCC march native enabled: yes GCC Profile enabled: no Position Independent Executable enabled: no CFLAGS -fno-omit-frame-pointer -march=native -I${srcdir}/../rust/gen/c-headers PCAP_CFLAGS -I/usr/include SECCFLAGS
Updated by Peter Manev over 5 years ago
- Status changed from New to Closed
Closing in favor of https://redmine.openinfosecfoundation.org/issues/2840
Updated by Victor Julien over 5 years ago
- Is duplicate of Bug #2840: xdp modes - Invalid argument (-22) on certain NICs added
Actions