diff options
| author | Karsten Graul <[email protected]> | 2020-09-03 19:53:15 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-09-03 23:52:33 +0000 |
| commit | fffe83c8c40a61978f8998a85cc94bb2ca19b6dd (patch) | |
| tree | 7aa63d579c048a3455ebc7ab54ff82b513db8f21 /net/tipc/socket.c | |
| parent | tg3: Fix soft lockup when tg3_reset_task() fails. (diff) | |
| download | kernel-fffe83c8c40a61978f8998a85cc94bb2ca19b6dd.tar.gz kernel-fffe83c8c40a61978f8998a85cc94bb2ca19b6dd.zip | |
net/smc: fix toleration of fake add_link messages
Older SMCR implementations had no link failover support and used one
link only. Because the handshake protocol requires to try the
establishment of a second link the old code sent a fake add_link message
and declined any server response afterwards.
The current code supports multiple links and inspects the received fake
add_link message more closely. To tolerate the fake add_link messages
smc_llc_is_local_add_link() needs an improved check of the message to
be able to separate between locally enqueued and fake add_link messages.
And smc_llc_cli_add_link() needs to check if the provided qp_mtu size is
invalid and reject the add_link request in that case.
Fixes: c48254fa48e5 ("net/smc: move add link processing for new device into llc layer")
Reviewed-by: Ursula Braun <[email protected]>
Signed-off-by: Karsten Graul <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/socket.c')
0 files changed, 0 insertions, 0 deletions
