rxrpc: Make /proc/net/rxrpc_calls safer
authorDavid Howells <dhowells@redhat.com>
Wed, 24 Aug 2016 13:31:43 +0000 (14:31 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 24 Aug 2016 14:15:59 +0000 (15:15 +0100)
commitdf5d8bf70f64a2ee34234553eb215418dbc4c8f3
tree866b273fb3eb256464fe6d10185b63054601df5a
parent2266ffdef5737fdfa96005204fc5606dbd559956
rxrpc: Make /proc/net/rxrpc_calls safer

Make /proc/net/rxrpc_calls safer by stashing a copy of the peer pointer in
the rxrpc_call struct and checking in the show routine that the peer
pointer, the socket pointer and the local pointer obtained from the socket
pointer aren't NULL before we use them.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/ar-internal.h
net/rxrpc/call_object.c
net/rxrpc/conn_client.c
net/rxrpc/proc.c