From: Taesoo Kim Date: Sat, 21 Mar 2015 23:08:30 +0000 (-0400) Subject: cifs: potential memory leaks when parsing mnt opts X-Git-Tag: omap-for-v4.1/fixes-rc1~235^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bd50fb3d4d31f5168ecea221f291534cd0a96e9;p=pandora-kernel.git cifs: potential memory leaks when parsing mnt opts For example, when mount opt is redundently specified (e.g., "user=A,user=B,user=C"), kernel kept allocating new key/val with kstrdup() and overwrite previous ptr (to be freed). Althouhg mount.cifs in userspace performs a bit of sanitization (e.g., forcing one user option), current implementation is not robust. Other options such as iocharset and domainanme are similarly vulnerable. Signed-off-by: Taesoo Kim Signed-off-by: Steve French --- Reading git-diff-tree failed