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.2.58~91 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d46880faad42eea3c68a525fec579bcf104d2f55;p=pandora-kernel.git net: socket: error on a negative msg_namelen [ Upstream commit dbb490b96584d4e958533fb637f08b557f505657 ] 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 Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed