[Lucid][CVE-2013-0160][PATCH v2 2/7] UBUNTU: ubuntu: AUFS: fsnotify_open() now receives a file

Luis Henriques luis.henriques at canonical.com
Fri Jan 24 14:17:20 UTC 2014


CVE-2013-0160

BugLink: http://bugs.launchpad.net/bugs/1097680

After upstream commit 2a12a9d7814631e918dec93abad856e692d5286d ("fsnotify:
pass a file instead of an inode to open, read, and write"), function
fsnotify_open() expects to receive a 'struct file *' and not a 'struct
dentry *'.

This patch fixes the AUFS call to this function.

Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
 ubuntu/aufs/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ubuntu/aufs/file.c b/ubuntu/aufs/file.c
index a4f33aa..c3229b0 100644
--- a/ubuntu/aufs/file.c
+++ b/ubuntu/aufs/file.c
@@ -85,7 +85,7 @@ struct file *au_h_open(struct dentry *dentry, aufs_bindex_t bindex, int flags,
 			goto out_br;
 		}
 	}
-	fsnotify_open(h_dentry);
+	fsnotify_open(h_file);
 	goto out; /* success */
 
  out_br:
-- 
1.8.3.2




More information about the kernel-team mailing list