summaryrefslogtreecommitdiffstats
path: root/fs/super.c
diff options
context:
space:
mode:
authorDongsheng Yang2015-08-18 06:38:36 +0200
committerRichard Weinberger2015-11-07 11:33:17 +0100
commitab92a20bce3b4c21927cc1ae514c482f50ad3487 (patch)
tree5979820c9a40bf54a7542a3df9f75c0482aea70b /fs/super.c
parentUBIFS: Delete unnecessary checks before the function call "iput" (diff)
downloadkernel-qcow2-linux-ab92a20bce3b4c21927cc1ae514c482f50ad3487.tar.gz
kernel-qcow2-linux-ab92a20bce3b4c21927cc1ae514c482f50ad3487.tar.xz
kernel-qcow2-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 'fs/super.c')
0 files changed, 0 insertions, 0 deletions