From 3df61e827932ae40fd7b1b45c1f8257c145155db Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 22 Jun 2013 14:00:12 +0000 Subject: [PATCH] kernel: fix a reference counting bug in overlayfs Signed-off-by: Felix Fietkau SVN-Revision: 37014 --- .../generic/patches-3.10/101-overlayfs_path_ref.patch | 10 ++++++++++ .../generic/patches-3.8/101-overlayfs_path_ref.patch | 10 ++++++++++ .../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 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 00000000000..0891ddf5f60 --- /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 00000000000..0891ddf5f60 --- /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 00000000000..0891ddf5f60 --- /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()); + } + -- 2.30.2