[PATCH net v2 0/2] net: mctp: avoid a zero-refcount socket hold

From: Andrew Stellman

Date: Fri Dec 04 2026 - 13:43:10 EST


From: Andrew Stellman <astellman@xxxxxxxxxxxxxxxxxxx>

This v2 adds the KUnit case Jeremy Kerr requested. The code in 1/2 is
unchanged from v1 and has his Reviewed-by.

---
v1: https://lore.kernel.org/netdev/20261202164958.49945-1-bugs@xxxxxxxxxxxxxxxxxxx/

Andrew Stellman (2):
net: mctp: don't hold a zero-refcount socket in mctp_key_alloc()
net: mctp: test route input with a zero-refcount socket

net/mctp/route.c | 5 ++++-
net/mctp/test/route-test.c | 30 ++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 1 deletion(-)

--
2.53.0