From: Jeff Layton Date: Thu, 22 Jan 2009 15:35:13 +0000 (-0500) Subject: cifs: make sure we allocate enough storage for socket address X-Git-Tag: v2.6.27.15~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7b448e662a938360e546d22665c81ab62f6365a;p=pandora-kernel.git cifs: make sure we allocate enough storage for socket address commit a9ac49d303f967be0dabd97cb722c4a13109c6c2 upstream. cifs_mount declares a struct sockaddr on the stack and then casts it to the proper address type. The storage allocated is fine for ipv4, but is too small for ipv6 addresses. Declare it as "struct sockaddr_storage" instead of struct sockaddr". This bug was manifesting itself as oopses and address corruption when mounting IPv6 addresses. Signed-off-by: Jeff Layton Tested-by: Stefan Bader Signed-off-by: Steve French Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed