linux-yocto/net/smc
Mahanta Jambigi b3bab397a3 net/smc: Remove validation of reserved bits in CLC Decline message
[ Upstream commit cc282f73bc0cbdf3ee7af2f2d3a2ef4e6b19242d ]

Currently SMC code is validating the reserved bits while parsing the incoming
CLC decline message & when this validation fails, its treated as a protocol
error. As a result, the SMC connection is terminated instead of falling back to
TCP. As per RFC7609[1] specs we shouldn't be validating the reserved bits that
is part of CLC message. This patch fixes this issue.

CLC Decline message format can viewed here[2].

[1] https://datatracker.ietf.org/doc/html/rfc7609#page-92
[2] https://datatracker.ietf.org/doc/html/rfc7609#page-105

Fixes: 8ade200c26 ("net/smc: add v2 format of CLC decline message")
Signed-off-by: Mahanta Jambigi <mjambigi@linux.ibm.com>
Reviewed-by: Sidraya Jayagond <sidraya@linux.ibm.com>
Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>
Reviewed-by: Dust Li <dust.li@linux.alibaba.com>
Link: https://patch.msgid.link/20250902082041.98996-1-mjambigi@linux.ibm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-09-09 18:58:13 +02:00
..
af_smc.c net/smc: fix UAF on smcsk after smc_listen_out() 2025-08-28 16:31:14 +02:00
Kconfig
Makefile
smc_cdc.c
smc_cdc.h
smc_clc.c net/smc: Remove validation of reserved bits in CLC Decline message 2025-09-09 18:58:13 +02:00
smc_clc.h
smc_close.c
smc_close.h
smc_core.c
smc_core.h
smc_diag.c
smc_ib.c net/smc: fix one NULL pointer dereference in smc_ib_is_sg_need_sync() 2025-09-09 18:58:08 +02:00
smc_ib.h
smc_inet.c
smc_inet.h
smc_ism.c
smc_ism.h
smc_llc.c
smc_llc.h
smc_loopback.c
smc_loopback.h
smc_netlink.c
smc_netlink.h
smc_netns.h
smc_pnet.c
smc_pnet.h
smc_rx.c
smc_rx.h
smc_stats.c
smc_stats.h
smc_sysctl.c
smc_sysctl.h
smc_tracepoint.c
smc_tracepoint.h
smc_tx.c
smc_tx.h
smc_wr.c
smc_wr.h
smc.h smc: Fix various oops due to inet_sock type confusion. 2025-07-24 08:56:31 +02:00