From 04fc1eb30e482bef5448518e2ca4f0abfb45bc30 Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 22 Jun 2013 14:00:12 +0000 Subject: kernel: fix a reference counting bug in overlayfs Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37014 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/generic/patches-3.10/101-overlayfs_path_ref.patch | 10 ++++++++++ target/linux/generic/patches-3.8/101-overlayfs_path_ref.patch | 10 ++++++++++ target/linux/generic/patches-3.9/101-overlayfs_path_ref.patch | 10 ++++++++++ 3 files changed, 30 insertions(+) create mode 100644 target/linux/generic/patches-3.10/101-overlayfs_path_ref.patch create mode 100644 target/linux/generic/patches-3.8/101-overlayfs_path_ref.patch create mode 100644 target/linux/generic/patches-3.9/101-overlayfs_path_ref.patch (limited to 'target/linux/generic') diff --git a/target/linux/generic/patches-3.10/101-overlayfs_path_ref.patch b/target/linux/generic/patches-3.10/101-overlayfs_path_ref.patch new file mode 100644 index 0000000000..0891ddf5f6 --- /dev/null +++ b/target/linux/generic/patches-3.10/101-overlayfs_path_ref.patch @@ -0,0 +1,10 @@ +--- a/fs/overlayfs/super.c ++++ b/fs/overlayfs/super.c +@@ -385,7 +385,6 @@ struct dentry *ovl_lookup(struct inode * + + struct file *ovl_path_open(struct path *path, int flags) + { +- path_get(path); + return dentry_open(path, flags, current_cred()); + } + diff --git a/target/linux/generic/patches-3.8/101-overlayfs_path_ref.patch b/target/linux/generic/patches-3.8/101-overlayfs_path_ref.patch new file mode 100644 index 0000000000..0891ddf5f6 --- /dev/null +++ b/target/linux/generic/patches-3.8/101-overlayfs_path_ref.patch @@ -0,0 +1,10 @@ +--- a/fs/overlayfs/super.c ++++ b/fs/overlayfs/super.c +@@ -385,7 +385,6 @@ struct dentry *ovl_lookup(struct inode * + + struct file *ovl_path_open(struct path *path, int flags) + { +- path_get(path); + return dentry_open(path, flags, current_cred()); + } + diff --git a/target/linux/generic/patches-3.9/101-overlayfs_path_ref.patch b/target/linux/generic/patches-3.9/101-overlayfs_path_ref.patch new file mode 100644 index 0000000000..0891ddf5f6 --- /dev/null +++ b/target/linux/generic/patches-3.9/101-overlayfs_path_ref.patch @@ -0,0 +1,10 @@ +--- a/fs/overlayfs/super.c ++++ b/fs/overlayfs/super.c +@@ -385,7 +385,6 @@ struct dentry *ovl_lookup(struct inode * + + struct file *ovl_path_open(struct path *path, int flags) + { +- path_get(path); + return dentry_open(path, flags, current_cred()); + } + -- cgit v1.2.3