On Wed, Oct 9, 2024 at 8:55 AM D. Wythe <alibuda@xxxxxxxxxxxxxxxxx> wrote: > > From: "D. Wythe" <alibuda@xxxxxxxxxxxxxxxxx> > > Eric report a panic on IPPROTO_SMC, and give the facts > that when INET_PROTOSW_ICSK was set, icsk->icsk_sync_mss must be set too. > > > This patch add a toy implementation that performs a simple return to > prevent such panic. This is because MSS can be set in sock_create_kern > or smc_setsockopt, similar to how it's done in AF_SMC. However, for > AF_SMC, there is currently no way to synchronize MSS within > __sys_connect_file. This toy implementation lays the groundwork for us > to support such feature for IPPROTO_SMC in the future. > > Fixes: d25a92ccae6b ("net/smc: Introduce IPPROTO_SMC") > Reported-by: Eric Dumazet <edumazet@xxxxxxxxxx> > Signed-off-by: D. Wythe <alibuda@xxxxxxxxxxxxxxxxx> > --- Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>