diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-06-22 14:00:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-06-22 14:00:12 +0000 |
commit | 3df61e827932ae40fd7b1b45c1f8257c145155db (patch) | |
tree | de6d6f53bb1993137be1c04c078796c24b383548 /target/linux | |
parent | 0f003be0104ca9cf5b01f9d8bd4a89c790035b27 (diff) | |
download | upstream-3df61e827932ae40fd7b1b45c1f8257c145155db.tar.gz upstream-3df61e827932ae40fd7b1b45c1f8257c145155db.tar.bz2 upstream-3df61e827932ae40fd7b1b45c1f8257c145155db.zip |
kernel: fix a reference counting bug in overlayfs
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37014
Diffstat (limited to 'target/linux')
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()); + } + |