Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] SELinux: memory leak in selinux_sb_copy_data()

There is a memory leak during mount when SELinux is active and mount
options are specified.

Signed-off-by: Gerald Schaefer <geraldsc@de.ibm.com>
Acked-by: Stephen Smalley <sds@epoch.ncsc.mil>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Gerald Schaefer and committed by
Linus Torvalds
da3caa20 8680e22f

+1
+1
security/selinux/hooks.c
··· 1945 1945 } while (*in_end++); 1946 1946 1947 1947 copy_page(in_save, nosec_save); 1948 + free_page((unsigned long)nosec_save); 1948 1949 out: 1949 1950 return rc; 1950 1951 }