From: Matthew Leach Date: Tue, 11 Mar 2014 11:58:27 +0000 (+0000) Subject: net: socket: error on a negative msg_namelen X-Git-Tag: v3.14-rc7~10^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbb490b96584;p=pandora-kernel.git net: socket: error on a negative msg_namelen When copying in a struct msghdr from the user, if the user has set the msg_namelen parameter to a negative value it gets clamped to a valid size due to a comparison between signed and unsigned values. Ensure the syscall errors when the user passes in a negative value. Signed-off-by: Matthew Leach Signed-off-by: David S. Miller --- Reading git-diff-tree failed