summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>2015-08-18 06:38:36 +0200
committerRichard Weinberger <richard@nod.at>2015-11-07 11:33:17 +0100
commitab92a20bce3b4c21927cc1ae514c482f50ad3487 (patch)
tree5979820c9a40bf54a7542a3df9f75c0482aea70b /kernel
parentUBIFS: Delete unnecessary checks before the function call "iput" (diff)
downloadlinux-ab92a20bce3b4c21927cc1ae514c482f50ad3487.tar.xz
linux-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 'kernel')
0 files changed, 0 insertions, 0 deletions