summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-06-22 14:00:12 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-06-22 14:00:12 +0000
commit04fc1eb30e482bef5448518e2ca4f0abfb45bc30 (patch)
tree91e9a4d9fbd548eee37eda2a98706c62802c6629 /target
parentd427f199a9beae7cb1bce3fc2916c4db1e6e1daa (diff)
kernel: fix a reference counting bug in overlayfs
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37014 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/generic/patches-3.10/101-overlayfs_path_ref.patch10
-rw-r--r--target/linux/generic/patches-3.8/101-overlayfs_path_ref.patch10
-rw-r--r--target/linux/generic/patches-3.9/101-overlayfs_path_ref.patch10
3 files changed, 30 insertions, 0 deletions
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());
+ }
+