summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/ubifs.h
diff options
context:
space:
mode:
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>2015-08-18 12:38:36 +0800
committerRichard Weinberger <richard@nod.at>2015-11-07 11:33:17 +0100
commitab92a20bce3b4c21927cc1ae514c482f50ad3487 (patch)
tree5979820c9a40bf54a7542a3df9f75c0482aea70b /fs/ubifs/ubifs.h
parent54bcfdf19ec7c2f2788fa76426c91abdc4dab973 (diff)
downloadlinux-stable-ab92a20bce3b4c21927cc1ae514c482f50ad3487.tar.gz
linux-stable-ab92a20bce3b4c21927cc1ae514c482f50ad3487.tar.bz2
linux-stable-ab92a20bce3b4c21927cc1ae514c482f50ad3487.zip
ubifs: make ubifs_[get|set]xattr atomic
This commit make the ubifs_[get|set]xattr protected by ui_mutex. Originally, there is a possibility that ubifs_getxattr to get a wrong value. P1 P2 ---------- ---------- ubifs_getxattr ubifs_setxattr - kfree() - memcpy() - kmemdup() Then ubifs_getxattr() would get a non-sense data. To solve this problem, this commit make the xattr of ubifs_inode updated in atomic. Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs/ubifs.h')
0 files changed, 0 insertions, 0 deletions