-
- Downloads
rxrpc: Fix missing security check on incoming calls
Fix rxrpc_new_incoming_call() to check that we have a suitable service key available for the combination of service ID and security class of a new incoming call - and to reject calls for which we don't. This causes an assertion like the following to appear: rxrpc: Assertion failed - 6(0x6) == 12(0xc) is false kernel BUG at net/rxrpc/call_object.c:456! Where call->state is RXRPC_CALL_SERVER_SECURING (6) rather than RXRPC_CALL_COMPLETE (12). Fixes: 248f219c ("rxrpc: Rewrite the data and ack handling code") Reported-by:Marc Dionne <marc.dionne@auristor.com> Signed-off-by:
David Howells <dhowells@redhat.com>
Showing
- net/rxrpc/ar-internal.h 7 additions, 3 deletionsnet/rxrpc/ar-internal.h
- net/rxrpc/call_accept.c 11 additions, 3 deletionsnet/rxrpc/call_accept.c
- net/rxrpc/conn_event.c 1 addition, 15 deletionsnet/rxrpc/conn_event.c
- net/rxrpc/conn_service.c 4 additions, 0 deletionsnet/rxrpc/conn_service.c
- net/rxrpc/rxkad.c 3 additions, 2 deletionsnet/rxrpc/rxkad.c
- net/rxrpc/security.c 33 additions, 37 deletionsnet/rxrpc/security.c
Loading
Please register or sign in to comment