]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix potential overflow in cifs_compose_mount_options
authorInsu Yun <wuninsu@gmail.com>
Mon, 1 Feb 2016 16:34:58 +0000 (11:34 -0500)
committerSteve French <smfrench@gmail.com>
Thu, 11 Feb 2016 00:04:56 +0000 (18:04 -0600)
commit5fb30081777d2f5f0fb97b144d6fc63c6fa3f3ec
treea474276b61cd22d01cfc53fa3d77f3f3153b245b
parent668fa8034d7f2e0ad303da011a99f5acc190db03
cifs: fix potential overflow in cifs_compose_mount_options

In worst case, "ip=" + sb_mountdata + ipv6 can be copied into mountdata.
Therefore, for safe, it is better to add more size when allocating memory.

Signed-off-by: Insu Yun <wuninsu@gmail.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifs_dfs_ref.c