aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-06-22 14:00:12 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-06-22 14:00:12 +0000
commit81e16ac101c4fc0df7e65968fda761d72e3dbff2 (patch)
tree91e9a4d9fbd548eee37eda2a98706c62802c6629
parent30ada6a9849dd2929c87649d6d6adfe3735ad155 (diff)
downloadupstream-81e16ac101c4fc0df7e65968fda761d72e3dbff2.tar.gz
upstream-81e16ac101c4fc0df7e65968fda761d72e3dbff2.tar.bz2
upstream-81e16ac101c4fc0df7e65968fda761d72e3dbff2.zip
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
-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());
+ }
+