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] [day] [month] [year] [list]
Message-ID: <4cab7f95-b4b7-4435-ac70-706ee7a9f7af@internet.ru>
Date: Fri, 9 Feb 2024 15:51:30 +0300
From: Maxim Galaganov <max@...ernet.ru>
To: Naresh Kamboju <naresh.kamboju@...aro.org>,
 open list <linux-kernel@...r.kernel.org>, Netdev <netdev@...r.kernel.org>,
 lkft-triage@...ts.linaro.org,
 "open list:KERNEL SELFTEST FRAMEWORK" <linux-kselftest@...r.kernel.org>
Cc: "David S. Miller" <davem@...emloft.net>,
 Mat Martineau <martineau@...nel.org>, Matthieu Baerts <matttbe@...nel.org>,
 Dan Carpenter <dan.carpenter@...aro.org>
Subject: Re: selftests: net: ip_local_port_range.c:152:17: error: use of
 undeclared identifier 'IPPROTO_MPTCP'

On 09.02.2024 13:55, Naresh Kamboju wrote:
> I encountered the following build errors while compiling the selftests net
> test cases on Linux next-20240208 tag with clang toolchain.
> 
> Reported-by: Linux Kernel Functional Testing <lkft@...aro.org>
> 
> selftests/net/ip_local_port_range
> ip_local_port_range.c:152:17: error: use of undeclared identifier
> 'IPPROTO_MPTCP'
>    152 |         .so_protocol    = IPPROTO_MPTCP,
>        |                           ^
> ip_local_port_range.c:176:17: error: use of undeclared identifier
> 'IPPROTO_MPTCP'
>    176 |         .so_protocol    = IPPROTO_MPTCP,
>        |                           ^
> 2 errors generated.
> 
> Build link,
>   - https://storage.tuxsuite.com/public/linaro/lkft/builds/2c4LtUoRSYhdGbErOY8hqHxc6Tu/

The glibc netinet/in.h header in the test container does not have 
IPPROTO_MPTCP definition. It is included first through netinet/ip.h and 
then __UAPI_DEF_IN_IPPROTO is set in linux/libc-compat.h -- so no 
definition comes from include/uapi/linux/in.h either.

# ldd --version
ldd (Debian GLIBC 2.31-13+deb11u7) 2.31
...

# grep -q IPPROTO_MPTCP /usr/include/netinet/in.h ; echo $?
1

I'll send an ifndef/define/endif IPPROTO_MPTCP patch to netdev once it's 
build tested. Thank you for the report.

Broken by commit 122db5e3634b ("selftests/net: add MPTCP coverage for 
IP_LOCAL_PORT_RANGE")

> 
> --
> Linaro LKFT
> https://lkft.linaro.org


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ