[PATCH net 0/2] rxrpc: Fixes

From: David Howells
Date: Fri Oct 05 2018 - 09:43:01 EST



Here are two fixes for AF_RXRPC:

(1) Fix some places that are doing things in the wrong net namespace.

(2) Fix the reception of UDP packets in three ways:

(a) Close the window between binding the socket and setting the
data_ready hook in which packets can come in and get lodged in the
receive queue without data_ready seeing them.

(b) Make sure the UDP receive queue is drained before returning from
the data_ready hook.

(c) Ignore Tx errors returned by skb_recv_udp().

The patches are tagged here:

git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
rxrpc-fixes-20181005

and can also be found on the following branch:

http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=rxrpc-fixes

David
---
David Howells (2):
rxrpc: Fix some missed refs to init_net
rxrpc: Fix the data_ready handler


net/rxrpc/ar-internal.h | 10 ++++---
net/rxrpc/call_accept.c | 2 +
net/rxrpc/call_object.c | 4 +--
net/rxrpc/conn_client.c | 10 ++++---
net/rxrpc/input.c | 68 ++++++++++++++++++++++++++--------------------
net/rxrpc/local_object.c | 11 ++++---
net/rxrpc/peer_object.c | 28 ++++++++++++-------
7 files changed, 76 insertions(+), 57 deletions(-)