Hi,
Andreas pointed this bug out yesterday:
Function gfs2_inode_lookup was dereferencing the inode, and after,
it checks for the value being NULL. We need to check that first.
Signed-off-by: Bob Peterson
---
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
index
merged into cifs-2.6.git
On Wed, Apr 13, 2016 at 5:30 PM, Andreas Gruenbacher
wrote:
> The two values ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT are meant to be
> enumerations, not bits in a bit mask. Use '==' instead of '&' to check
> for these values.
>
> Signed-off-by: Andreas
On Wed, Apr 13, 2016 at 11:26:24PM -0500, Steve French wrote:
> Thanks for spotting this - merged into cifs-2.6.git. checkpatch
> spotted and old indentation issue so I cleaned that up in a followon
> patch that I will send.
*ugh*
And in the meanwhile I'd picked those into my queue... Could
If you prefer merging those out of your tree, you can add my
Reviewed-by if needed (for the three cifs patches)
On Wed, Apr 13, 2016 at 11:43 PM, Steve French wrote:
> If you are planning to merge it in next few weeks (they fix bugs, and
> are safe so why not), I can simply
On Wed, Apr 13, 2016 at 11:43:19PM -0500, Steve French wrote:
> If you are planning to merge it in next few weeks (they fix bugs, and
> are safe so why not), I can simply just back out my changes from
> cifs-2.6.git for-next branch and let you merge the trivial checkpatch
> cleanup attached.
Do
Thanks for spotting this - merged into cifs-2.6.git. checkpatch
spotted and old indentation issue so I cleaned that up in a followon
patch that I will send.
On Wed, Apr 13, 2016 at 5:30 PM, Andreas Gruenbacher
wrote:
> Use strcmp(str, name) instead of strncmp(str, name,
merged into cifs-2.6.git
checkpatch complained about comment formatting so I cleaned that up in
attached trivial followon patch.
On Wed, Apr 13, 2016 at 5:30 PM, Andreas Gruenbacher
wrote:
> If cifs_removexattr finds a "user." or "os2." xattr name prefix, it
> skips 5
If you are planning to merge it in next few weeks (they fix bugs, and
are safe so why not), I can simply just back out my changes from
cifs-2.6.git for-next branch and let you merge the trivial checkpatch
cleanup attached.
On Wed, Apr 13, 2016 at 11:37 PM, Al Viro
Create a variant of ceph_setattr that takes an inode instead of a
dentry. Change __ceph_setxattr (and also __ceph_removexattr) to take an
inode instead of a dentry. Use those in ceph_set_acl so that we no
longer need a dentry there.
Signed-off-by: Andreas Gruenbacher
The two values ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT are meant to be
enumerations, not bits in a bit mask. Use '==' instead of '&' to check
for these values.
Signed-off-by: Andreas Gruenbacher
---
fs/cifs/cifssmb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Use strcmp(str, name) instead of strncmp(str, name, strlen(name)) for
checking if str and name are the same (as opposed to name being a prefix
of str) in the gexattr and setxattr inode operations.
Signed-off-by: Andreas Gruenbacher
---
fs/cifs/xattr.c | 24
Create a variant of ceph_setattr that takes an inode instead of a
dentry. Change __ceph_setxattr (and also __ceph_removexattr) to take an
inode instead of a dentry. Use those in ceph_set_acl so that we no
longer need a dentry there.
Signed-off-by: Andreas Gruenbacher
Add a catch-all xattr handler at the end of ceph_xattr_handlers. Check
for valid attribute names there, and remove those checks from
__ceph_{get,set,remove}xattr instead. No "system.*" xattrs need to be
handled by the catch-all handler anymore.
The set xattr handler is called with a NULL value
The two values ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT are meant to be
enumerations, not bits in a bit mask. Use '==' instead of '&' to check
for these values.
Signed-off-by: Andreas Gruenbacher
---
fs/cifs/cifssmb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Use strcmp(str, name) instead of strncmp(str, name, strlen(name)) for
checking if str and name are the same (as opposed to name being a prefix
of str) in the gexattr and setxattr inode operations.
Signed-off-by: Andreas Gruenbacher
---
fs/cifs/xattr.c | 24
These functions are useful in filesystems like gfs2 which require
pre-/postamble code around xattr operations.
Signed-off-by: Andreas Gruenbacher
Reviewed-by: Bob Peterson
---
fs/posix_acl.c | 9 ++---
On Wed, Apr 13, 2016 at 8:20 PM, Al Viro wrote:
> On Wed, Apr 13, 2016 at 05:40:34PM +0200, Andreas Gruenbacher wrote:
>> Export xattr_resolve_name and make it easier to use by filesystems.
>> Use it to remove reiserfs's own copy of the same functionality.
>
> Nah - I've
From: "Yan, Zheng"
when removing a xattr, generic_removexattr() calls __ceph_setxattr()
with NULL value and XATTR_REPLACE flag. __ceph_removexattr() is not
used any more.
Signed-off-by: "Yan, Zheng"
---
fs/ceph/xattr.c | 126
If cifs_removexattr finds a "user." or "os2." xattr name prefix, it
skips 5 bytes, one byte too many for "os2.".
Signed-off-by: Andreas Gruenbacher
---
fs/cifs/xattr.c | 26 +-
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git
Add a catch-all xattr handler at the end of ceph_xattr_handlers. Check
for valid attribute names there, and remove those checks from
__ceph_{get,set,remove}xattr instead. No "system.*" xattrs need to be
handled by the catch-all handler anymore.
The set xattr handler is called with a NULL value
These functions are useful in filesystems like gfs2 which require
pre-/postamble code around xattr operations.
Signed-off-by: Andreas Gruenbacher
Reviewed-by: Bob Peterson
---
fs/posix_acl.c | 9 ++---
On Wed, Apr 13, 2016 at 8:20 PM, Al Viro wrote:
> On Wed, Apr 13, 2016 at 05:40:34PM +0200, Andreas Gruenbacher wrote:
>> Export xattr_resolve_name and make it easier to use by filesystems.
>> Use it to remove reiserfs's own copy of the same functionality.
>
> Nah - I've
From: "Yan, Zheng"
when removing a xattr, generic_removexattr() calls __ceph_setxattr()
with NULL value and XATTR_REPLACE flag. __ceph_removexattr() is not
used any more.
Signed-off-by: "Yan, Zheng"
---
fs/ceph/xattr.c | 126
Move the pre- and postamble code in gfs2_{get,set,remove}xattr into the
handlers in gfs2_xattr_handlers. Replace the generic POSIX ACL handlers
in there with gfs2-specific versions that wrap the generic handlers into
the pre- and postamble code. With that, gfs2_{get,set,remove}xattr can
be
If cifs_removexattr finds a "user." or "os2." xattr name prefix, it
skips 5 bytes, one byte too many for "os2.".
Signed-off-by: Andreas Gruenbacher
---
fs/cifs/xattr.c | 26 +-
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git
25 matches
Mail list logo