From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796291683; b=he+8LWrG784YiaAuY1HhQtVF3vXaanpWVFt4npIk4sA6gblSqe3HEf4HsPevR8y+eeFB fy2zkf4DciR+25Dfn0Jt95LoVEcBWhplCRiAdhhGbB2WKiYGWQFS9YvdGX+wMMr0vQtZM 2W2jmbfL68XCMGU6CWDOic8kxfmaIa6h63GNTiB+06/uAEC1zyIkRHaTqQ0ALJ3arzqcB yFL9JwEHJpyChYIpAiI2jJT3o4eketiKcl/lmpQbGzgUyCiwVeR4T1dRg6duYkthhREcN 74pEcMZLpQILlsG8lydj8a0GQkVaoZ5dqDH1pGjZ222wWuDReOyWitGZSUSgXnmTP4Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796291683; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=4TAa11mFEQ8UCDrXlFSeh9A9hjttGVsugdR1W4TxWUk=; b=ngFawwz/AudGVfDn711jsFq8qndhMj/pz+nnxfK0lxeBqvYyfTFJj74J2rpKBYmXFYXj ZWVtMTnNe5we2JABi7YDJ1NU+0PzO5pTXS1vARaS8UWNYkpCfhLug21CG4WWbq5+jCxLZ b/ge/QElJcl1SUQPNDhdKXRTIUJL31XDX68mytnMQ0W1O9rzr0Fp4aRVQVSP0AmRq9ncl PZvFhk70X1todeQqNkFRly3L/G9sMfY1MBNoi2fkGVN7XKtmUFdwpNn3px7+Js6RW8zD6 rmoCleBZT/YjMr2+Ven3X/AX2yvWNnFHswR6D+4+X2u0pxpd3vLlUN8znUTfk/GamPw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=J43lW2QS; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32ABF606A32C for ; Thu, 3 Dec 2026 09:54:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=J43lW2QS Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFF851F00893; Thu, 3 Dec 2026 09:54:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796291683; bh=4TAa11mFEQ8UCDrXlFSeh9A9hjttGVsugdR1W4TxWUk=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=J43lW2QS0KGewWoeQQKp31VqPXxDQptzYlovJ0hUtkX3aOK6mwy9ao2pn1deyyx4K N3OO3hEwUKNmeCa6yh6Z7/binEPW12u7m/C6CqBNjBRpWstNc/nO/a2iE6PVYd6dJ2 MF1EKwzbv1YZRsn08xlUMREgpFUsiJyfUvX7cCcST0suj4uUEXhiQlKCRfwRFplztX ncFeDQl3eGnFs5QJiAUsPa3BH3stXPTsxPnvPH8nSYO2ENMoE/pAPwe3lNTcCcin6V 5lrF9CGRwR0VgHSY3QoFmasRgKfWtIlUXw+YWrbfRq9FKms48ZFRWJ6Qp9ammdP9YP /ENJoMQPXRctg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH mptcp-next] selftests: mptcp: cover mixed accepts on one listener Reply-To: sashiko-reviews@lists.linux.dev To: zibuyu , mptcp@lists.linux.dev In-Reply-To: <20261203094509.3382752-1-zibuyu423@gmail.com> References: <20261203094509.3382752-1-zibuyu423@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 09:54:42 +0000 X-Mailing-List: mptcp@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] selftests: mptcp: UAPI linux/kernel.h shadows ARRAY_SIZE and breaks build -- commit aa719ae60eaeb0cc26e571bc88875f675f4fdba7 Author: zibuyu selftests: mptcp: cover mixed accepts on one listener This commit adds test_mixed_accept() to mptcp_sockopt.c to connect MPTCP, TCP, and MPTCP clients to the same listener and verify SO_PROTOCOL and client data on each accepted socket. Link: https://github.com/multipath-tcp/mptcp_net-next/issues/426 > diff --git a/tools/testing/selftests/net/mptcp/mptcp_sockopt.c b/tools/te= sting/selftests/net/mptcp/mptcp_sockopt.c > index b8158a1198eba..cb3e8b2e0b8eb 100644 > --- a/tools/testing/selftests/net/mptcp/mptcp_sockopt.c > +++ b/tools/testing/selftests/net/mptcp/mptcp_sockopt.c > @@ -26,6 +26,7 @@ > =20 > #include > #include > +#include > =20 > static int pf =3D AF_INET; > =20 > @@ -705,22 +706,49 @@ static int xaccept(int s) > return fd; > } > =20 > -static int server(int pipefd) > +static void test_mixed_accept(int listener, const char *addr, const char= *port) > { > - int fd =3D -1, r; > + static const int protos[] =3D { IPPROTO_MPTCP, IPPROTO_TCP, IPPROTO_MPT= CP }; > + int clients[ARRAY_SIZE(protos)], accepted[ARRAY_SIZE(protos)]; [Severity: Medium] Can #include fail to provide ARRAY_SIZE() when UAPI headers are installed, breaking the mptcp_sockopt build? tools/testing/selftests/net/mptcp/Makefile puts -I$(top_srcdir)/usr/include ahead of -I$(top_srcdir)/tools/include: tools/testing/selftests/net/mptcp/Makefile: CFLAGS +=3D -Wall -Wl,--no-as-needed -O2 -g -I$(top_srcdir)/usr/include $(= KHDR_INCLUDES) CFLAGS +=3D -I$(top_srcdir)/tools/include When UAPI headers are installed (for example via make kselftest), #include resolves to $(top_srcdir)/usr/include/linux/kerne= l.h instead of tools/include/linux/kernel.h. The UAPI header does not define ARRAY_SIZE(), so compiling mptcp_sockopt.c fails in test_mixed_accept(). Including kselftest.h instead of linux/kernel.h would provide ARRAY_SIZE() without colliding with the UAPI header. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203094509.3382= 752-1-zibuyu423@gmail.com?part=3D1