Re: [PATCH 5/9] rxrpc: Check address length before reading srx_service field

2019-04-12 Thread David Miller
From: Tetsuo Handa Date: Fri, 12 Apr 2019 19:54:05 +0900 > KMSAN will complain if valid address length passed to bind() is shorter > than sizeof(struct sockaddr_rxrpc) bytes. > > Signed-off-by: Tetsuo Handa I know David said he'd take it, but I'll take it too, no harm in that.

Re: [PATCH 5/9] rxrpc: Check address length before reading srx_service field

2019-04-12 Thread David Howells
Tetsuo Handa wrote: > > Do you want me to add this to my rxrpc-fixes branch? > > > > Yes, please. Sorry, saw your reply right after posting my patches. Will forward yours on next. David

Re: [PATCH 5/9] rxrpc: Check address length before reading srx_service field

2019-04-12 Thread Tetsuo Handa
On 2019/04/12 21:18, David Howells wrote: > Tetsuo Handa wrote: > >> KMSAN will complain if valid address length passed to bind() is shorter >> than sizeof(struct sockaddr_rxrpc) bytes. > > Do you want me to add this to my rxrpc-fixes branch? > Yes, please. > David >

Re: [PATCH 5/9] rxrpc: Check address length before reading srx_service field

2019-04-12 Thread David Howells
Tetsuo Handa wrote: > KMSAN will complain if valid address length passed to bind() is shorter > than sizeof(struct sockaddr_rxrpc) bytes. Do you want me to add this to my rxrpc-fixes branch? David

[PATCH 5/9] rxrpc: Check address length before reading srx_service field

2019-04-12 Thread Tetsuo Handa
KMSAN will complain if valid address length passed to bind() is shorter than sizeof(struct sockaddr_rxrpc) bytes. Signed-off-by: Tetsuo Handa --- net/rxrpc/af_rxrpc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/rxrpc/af_rxrpc.c b/net/rxrpc/af_rxrpc.c index 96f2952bb