linux/net/mctp
Matt Johnston 1b1a543084 net: mctp: Prevent duplicate binds
[ Upstream commit 3954502377 ]

Disallow bind() calls that have the same arguments as existing bound
sockets.  Previously multiple sockets could bind() to the same
type/local address, with an arbitrary socket receiving matched messages.

This is only a partial fix, a future commit will define precedence order
for MCTP_ADDR_ANY versus specific EID bind(), which are allowed to exist
together.

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Link: https://patch.msgid.link/20250710-mctp-bind-v4-2-8ec2f6460c56@codeconstruct.com.au
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-08-20 18:30:31 +02:00
..
test net: mctp: unshare packets when reassembling 2025-03-22 12:54:13 -07:00
af_mctp.c net: mctp: Prevent duplicate binds 2025-08-20 18:30:31 +02:00
device.c net: mctp: Don't access ifa_index when missing 2025-05-22 14:29:39 +02:00
Kconfig net: mctp: tests: Test that outgoing skbs have flow data populated 2024-02-22 13:32:55 +01:00
Makefile mctp: Add test utils 2021-10-03 14:35:41 +01:00
neigh.c mctp: Handle error of rtnl_register_module(). 2024-10-10 15:39:35 +02:00
route.c net: mctp: Ensure keys maintain only one ref to corresponding dev 2025-05-22 14:29:40 +02:00