kernel: fix a reference counting bug in overlayfs
authorFelix Fietkau <nbd@openwrt.org>
Sat, 22 Jun 2013 14:00:12 +0000 (14:00 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 22 Jun 2013 14:00:12 +0000 (14:00 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37014

target/linux/generic/patches-3.10/101-overlayfs_path_ref.patch [new file with mode: 0644]
target/linux/generic/patches-3.8/101-overlayfs_path_ref.patch [new file with mode: 0644]
target/linux/generic/patches-3.9/101-overlayfs_path_ref.patch [new file with mode: 0644]

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 (file)
index 0000000..0891ddf
--- /dev/null
@@ -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 (file)
index 0000000..0891ddf
--- /dev/null
@@ -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 (file)
index 0000000..0891ddf
--- /dev/null
@@ -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());
+ }