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 | 81e16ac101c4fc0df7e65968fda761d72e3dbff2 (patch) | |
tree | 91e9a4d9fbd548eee37eda2a98706c62802c6629 /target/linux/generic | |
parent | 30ada6a9849dd2929c87649d6d6adfe3735ad155 (diff) | |
download | upstream-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
Diffstat (limited to 'target/linux/generic')
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()); + } + |