]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: Convert proto callbacks from sockaddr to sockaddr_unsized
authorKees Cook <kees@kernel.org>
Tue, 4 Nov 2025 00:26:13 +0000 (16:26 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 5 Nov 2025 03:10:33 +0000 (19:10 -0800)
commit449f68f8fffa2c41fc265730bd05a3c4947916c1
treee21c5052a0af6e8a796cf5867ea88ee8c477ee8b
parent3d39d34146f2b38127eadf36a0513e130eaa7eec
net: Convert proto callbacks from sockaddr to sockaddr_unsized

Convert struct proto pre_connect(), connect(), bind(), and bind_add()
callback function prototypes from struct sockaddr to struct sockaddr_unsized.
This does not change per-implementation use of sockaddr for passing around
an arbitrarily sized sockaddr struct. Those will be addressed in future
patches.

Additionally removes the no longer referenced struct sockaddr from
include/net/inet_common.h.

No binary changes expected.

Signed-off-by: Kees Cook <kees@kernel.org>
Link: https://patch.msgid.link/20251104002617.2752303-5-kees@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
31 files changed:
fs/dlm/lowcomms.c
include/net/inet_common.h
include/net/ip.h
include/net/ipv6.h
include/net/ipv6_stubs.h
include/net/ping.h
include/net/sock.h
include/net/tcp.h
include/net/udp.h
net/core/filter.c
net/core/sock.c
net/ieee802154/socket.c
net/ipv4/af_inet.c
net/ipv4/datagram.c
net/ipv4/ping.c
net/ipv4/raw.c
net/ipv4/tcp_ipv4.c
net/ipv4/udp.c
net/ipv6/af_inet6.c
net/ipv6/datagram.c
net/ipv6/ping.c
net/ipv6/raw.c
net/ipv6/tcp_ipv6.c
net/ipv6/udp.c
net/l2tp/l2tp_ip.c
net/l2tp/l2tp_ip6.c
net/mptcp/pm_kernel.c
net/mptcp/protocol.c
net/phonet/pep.c
net/phonet/socket.c
net/sctp/socket.c