[SRU quantal saucy lts-raring] [PATCH 0/1] LP#1269053 -- recv_msg send_msg EINVAL regression

Colin Ian King colin.king at canonical.com
Tue Jan 14 21:14:43 UTC 2014


On 14/01/14 21:02, Andy Whitcroft wrote:
> When the commit below was applied it caused a regression with msg IPC
> specifically with poorly written applications which supplied buffers larger
> than that permitted by the kernel.  While these are arguably faulty the
> regression can be avoided by clamping the buffer size to that the kernel
> will use.  The following patch is a simple cherry-pick of the upstream fix.
> 
> Proposing for quantal/master saucy/master and precise/lts-raring.
> 
> -apw
> 
> Dan Carpenter (1):
>   net: clamp ->msg_namelen instead of returning an error
> 
>  net/compat.c | 2 +-
>  net/socket.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 

Upstream commit, looks sane, and resolves the issue.

Acked-by: Colin Ian King <colin.king at canonical.com>




More information about the kernel-team mailing list