]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cifs: fix potential buffer overrun when composing a new options string
authorJeff Layton <jlayton@redhat.com>
Fri, 24 May 2013 11:40:04 +0000 (07:40 -0400)
committerSteve French <sfrench@us.ibm.com>
Fri, 24 May 2013 18:26:39 +0000 (13:26 -0500)
commit20ac9e1ef55ef311534db06a01d555a8d29eba0b
treeac379e6dd8d4cd121b5f1c0232c5658a3958be3b
parent17fdfd0851617b6c18c0913364caf2a54171ce85
cifs: fix potential buffer overrun when composing a new options string

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.

Cc: <stable@vger.kernel.org>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_dfs_ref.c