Split of the single v3 patch, in the order Jakub asked for:
1/3 frees the LLC queue entry in smc_llc_srv_add_link() only after the
last use of the pointer into it.
2/3 bounds the peer-declared rkey counts in smc_llc_save_add_link_rkeys()
and smc_llc_rmt_delete_rkey() by the buffer they read from.
3/3 copies an oversized SMC-Rv2 LLC message into the queue entry and
declares the rkeys that fit inline, so both consumers stop
reconstructing the layout themselves.
1/3 and 2/3 are tagged for stable. 3/3 is not: it does not fix a crash on
its own, and it changes a structure layout and a static function signature.
---
v3: https://lore.kernel.org/all/20260727095833.1079618-1-yhlee@isslab.korea.ac.kr/ (local)
Yehyeong Lee (3):
net/smc: fix use-after-free of the LLC qentry in
smc_llc_srv_add_link()
net/smc: bound the peer rkey counts in SMC-Rv2 LLC messages
net/smc: carry oversized SMC-Rv2 LLC messages in the queue entry
net/smc/smc_llc.c | 101 ++++++++++++++++++++++++++++++++++------------
1 file changed, 76 insertions(+), 25 deletions(-)
--
2.43.0