From: Chuck Lever Date: Fri, 13 Nov 2009 15:52:55 +0000 (-0500) Subject: SUNRPC: Address buffer overrun in rpc_uaddr2sockaddr() X-Git-Tag: v2.6.32-rc8~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e360a60b24ad8f8685af66fa6de10ce46693a4b;p=pandora-kernel.git SUNRPC: Address buffer overrun in rpc_uaddr2sockaddr() The size of buf[] must account for the string termination needed for the first strict_strtoul() call. Introduced in commit a02d6926. Fábio Olivé Leite points out that strict_strtoul() requires _either_ '\n\0' _or_ '\0' termination, so use the simpler '\0' here instead. See http://bugzilla.kernel.org/show_bug.cgi?id=14546 . Reported-by: argp@census-labs.com Signed-off-by: Chuck Lever Signed-off-by: Fábio Olivé Leite Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed