From: Jeff Layton Date: Fri, 24 May 2013 11:40:04 +0000 (-0400) Subject: cifs: fix potential buffer overrun when composing a new options string X-Git-Tag: v3.2.47~79 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a762b7f53a5e6bd6f6568b904ffcf2fd1811ef5;p=pandora-kernel.git cifs: fix potential buffer overrun when composing a new options string commit 166faf21bd14bc5c5295a44874bf7f3930c30b20 upstream. Consider the case where we have a very short ip= string in the original mount options, and when we chase a referral we end up with a very long IPv6 address. Be sure to allow for that possibility when estimating the size of the string to allocate. Signed-off-by: Jeff Layton Signed-off-by: Steve French Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed