Skip to content

VFS: memory leak in do_kern_mount()

Gerald Schaefer lkml 1 version In review

Get series with b4
b4 am 1119014276.7006.57.camel@thinkpad

Versions newest first

  1. v1 Latest0 of 1 patch 2 repliesIn review

Patches in v1 No applies recorded yet

The patch the cover letter announces is not in this archive.

Reviews trailers per patch

PatchJames Morris
SeriesA-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/1] VFS: memory leak in do_kern_mount()

[PATCH 0/1] VFS: memory leak in do_kern_mount()
There is a memory leak during mount when CONFIG_SECURITY is enabled and mount options are specified.

---

fs/super.c 2005-06-17 14:18:06.000000000 +0200 renamed from fs/super.c 2005-06-16 20:00:26.000000000 +0200 +1 -0
diff -pruN linux-2.6-git/fs/super.c linux-2.6-git_xxx/fs/super.c
@@ -835,6 +835,7 @@ do_kern_mount(const char *fstype, int fl
        mnt->mnt_parent = mnt;
        mnt->mnt_namespace = current->namespace;
        up_write(&sb->s_umount);
+       free_secdata(secdata);
        put_filesystem(type);
        return mnt;
 out_sb: