rxrpc: Fix undefined packet handling
By analogy with other Rx implementations, RxRPC packet types 9, 10 and 11 should just be discarded rather than being aborted like other undefined packet types. Reported-by: Jeffrey Altman <jaltman@auristor.com> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
17dec0a949
commit
b41d7cfef5
@@ -1200,6 +1200,12 @@ void rxrpc_data_ready(struct sock *udp_sk)
|
||||
!rxrpc_validate_jumbo(skb))
|
||||
goto bad_message;
|
||||
break;
|
||||
|
||||
/* Packet types 9-11 should just be ignored. */
|
||||
case RXRPC_PACKET_TYPE_PARAMS:
|
||||
case RXRPC_PACKET_TYPE_10:
|
||||
case RXRPC_PACKET_TYPE_11:
|
||||
goto discard;
|
||||
}
|
||||
|
||||
rcu_read_lock();
|
||||
|
Reference in New Issue
Block a user