From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D51163904D2; Thu, 22 Jan 2026 03:27:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769052453; cv=none; b=mnL0qOIlpx2X3gyPmta/jOqwZCKpUINhWzV+IhsXWAhDDzGftcVs31YURAXdcct6lhgROJq8AW/JPu1RGnjd24jm+8uhjDW5uyu+c2jAIi969f0lIVLLwJTjQYR+/C651zwBfu9wCT0V36CGb2j/bRZzOlVos1KyEg62TKzV5Ss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769052453; c=relaxed/simple; bh=Y/3pPodyEl+yDTvYSlwrBE6jK/FnjEX2M2Klb6SJ7/A=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kPayxFXDIwu7ngxQD+5loHRGrzwHDw+r4feC9wQt0wb3yvQ85HfvcDfo3kieou4rA/M15rSpivCBNlI/mgmVuWpgyy49sNzRqXsT/4M20KvAqB0HzWU6BdXy8hkkFdRbVHzJbF7N+MDnYg3kRB6ai0oVdEecWH6PNL119mFbaGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=k6lhlPVb; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="k6lhlPVb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADB3AC116C6; Thu, 22 Jan 2026 03:27:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769052452; bh=Y/3pPodyEl+yDTvYSlwrBE6jK/FnjEX2M2Klb6SJ7/A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=k6lhlPVbyUsyNOMIwjCknuIW8kj1Pmz66UKqWq4lPQkf6n1iL5Sa1lyjONH4kYQ5x vI9f5ziiGEdMOFGZRURsyf1Gx9CkXdxO8vlru7U3mPwRcyR03gHDzQV3j/ehjqfBu0 EkTeZv+BMgfjEB7fUbbB9xWwv7OugxKgmuHfdLZNBrBNLUYsbcBOpcivHfBU35oFcu yNBxNgU3syqMy8LVE7lbftDHjKGLWW+pGMO5G6yYY5NCJG23wR5a3n6Yc5TAIE51Qv uh1IgFMsOMRZiqTfyS/61wlSA5PzpTozDMPcYNTOwJdGQozn5Qmb/T03Q7cujbufJJ TEcHVgdxGdSxQ== Date: Wed, 21 Jan 2026 19:27:29 -0800 From: Jakub Kicinski To: Thomas =?UTF-8?B?V2Vpw59zY2h1aA==?= Cc: Eric Dumazet , Kuniyuki Iwashima , Paolo Abeni , Willem de Bruijn , "David S. Miller" , Simon Horman , Shuah Khan , Matthieu Baerts , Mat Martineau , Geliang Tang , =?UTF-8?B?TWlja2HDq2wgU2FsYcO8bg==?= , =?UTF-8?B?R8O8bnRoZXI=?= Noack , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Stanislav Fomichev , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , KP Singh , Hao Luo , Jiri Olsa , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , linux-kselftest@vger.kernel.org, mptcp@lists.linux.dev, linux-security-module@vger.kernel.org, bpf@vger.kernel.org, libc-alpha@sourceware.org, Carlos O'Donell , Adhemerval Zanella , Rich Felker , klibc@zytor.com, Florian Weimer Subject: Re: [PATCH net-next v2 0/4] net: uapi: Provide an UAPI definition of 'struct sockaddr' Message-ID: <20260121192729.2095aa25@kernel.org> In-Reply-To: <20260120-uapi-sockaddr-v2-0-63c319111cf6@linutronix.de> References: <20260120-uapi-sockaddr-v2-0-63c319111cf6@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 20 Jan 2026 15:10:30 +0100 Thomas Wei=C3=9Fschuh wrote: > Various UAPI headers reference 'struct sockaddr'. Currently the > definition of this struct is pulled in from the libc header > sys/socket.h. This is problematic as it introduces a dependency > on a full userspace toolchain. >=20 > Add a definition of 'struct sockaddr' to the UAPI headers. > Before that, reorder some problematic header inclusions in the selftests. > include/linux/socket.h | 10 ---------- > include/uapi/linux/if.h | 4 ---- > include/uapi/linux/libc-compat.h | 12 ++++++++++++ > include/uapi/linux/socket.h | 14 ++++++++++++++ > samples/bpf/xdp_adjust_tail_user.c | 6 ++++-- > samples/bpf/xdp_fwd_user.c | 7 ++++--- > samples/bpf/xdp_router_ipv4_user.c | 6 +++--- > samples/bpf/xdp_sample_user.c | 15 ++++++++------- > samples/bpf/xdp_tx_iptunnel_user.c | 4 ++-- > tools/testing/selftests/landlock/audit.h | 7 ++++--- > tools/testing/selftests/net/af_unix/diag_uid.c | 9 +++++---- > tools/testing/selftests/net/busy_poller.c | 3 ++- > tools/testing/selftests/net/mptcp/mptcp_diag.c | 11 ++++++----- > tools/testing/selftests/net/nettest.c | 4 ++-- > tools/testing/selftests/net/tcp_ao/icmps-discard.c | 6 +++--- > tools/testing/selftests/net/tcp_ao/lib/netlink.c | 9 +++++---- > tools/testing/selftests/net/tun.c | 5 +++-- > 17 files changed, 77 insertions(+), 55 deletions(-) Are all those selftests / samples getting broken by this patch set? I understand that we should avoid libc dependencies in uAPI but at least speaking for networking - building selftests without libc is.. not a practical proposition?