Patch "ubifs: Fix xattr generic handler usage" has been added to the 4.7-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
ubifs: Fix xattr generic handler usage
to the 4.7-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ubifs-fix-xattr-generic-handler-usage.patch
and it can be found in the queue-4.7 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
17ce1eb0b64eb27d4f9180daae7495fa022c7b0dMon Sep 17 00:00:00 2001
From: Richard Weinberger <[email protected]>
Date: Sun, 31 Jul 2016 21:42:23 +0200
Subject: ubifs: Fix xattr generic handler usage
From: Richard Weinberger <[email protected]>
commit 17ce1eb0b64eb27d4f9180daae7495fa022c7b0d upstream.
UBIFS uses full names to work with xattrs, therefore we have to use xattr_full_name() to obtain the xattr prefix as string.
--- fs/ubifs/xattr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
fs/ubifs/xattr.c +4 -1
@@ -575,7 +575,8 @@ static int ubifs_xattr_get(const structdbg_gen ("xattr '%s', ino %lu ('%pd'), buf size %zd" , name, inode->i_ino, dentry, size); -return __ubifs_getxattr (inode, name, buffer, size); + name =xattr_full_name (handler, name); +return __ubifs_getxattr (inode, name, buffer, size); } static int ubifs_xattr_set(const struct xattr_handler *handler,
@@ -586,6 +587,8 @@ static int ubifs_xattr_set(const structdbg_gen ("xattr '%s', host ino %lu ('%pd'), size %zd" , name, inode->i_ino, dentry, size); + name =xattr_full_name (handler, name); +if (value)return __ubifs_setxattr (inode, name, value, size, flags);else
Patches currently in stable-queue which might be from [email protected] are
queue-4.7/ubifs-fix-assertion-in-layout_in_gaps.patch queue-4.7/ubifs-fix-xattr-generic-handler-usage.patch