diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2014-11-20 18:40:00 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2014-11-20 18:40:00 +0300 |
commit | 521484639ec19a6f1ed56de6993feb255f5f676c (patch) | |
tree | 53cad82bc4ae05b1d2d21a22a2ccde9658e5c8c7 /fs/jbd2 | |
parent | a105d685a8483985a01776411de191a726b48132 (diff) | |
download | linux-521484639ec19a6f1ed56de6993feb255f5f676c.tar.xz |
ovl: fix race in private xattr checks
Xattr operations can race with copy up. This does not matter as long as
we consistently fiter out "trunsted.overlay.opaque" attribute on upper
directories.
Previously we checked parent against OVL_PATH_MERGE. This is too general,
and prone to race with copy-up. I.e. we found the parent to be on the
lower layer but ovl_dentry_real() would return the copied-up dentry,
possibly with the "opaque" attribute.
So instead use ovl_path_real() and decide to filter the attributes based on
the actual type of the dentry we'll use.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/jbd2')
0 files changed, 0 insertions, 0 deletions