aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorDongsheng Yang <[email protected]>2015-08-18 04:38:36 +0000
committerRichard Weinberger <[email protected]>2015-11-07 10:33:17 +0000
commitab92a20bce3b4c21927cc1ae514c482f50ad3487 (patch)
tree5979820c9a40bf54a7542a3df9f75c0482aea70b /net/unix/af_unix.c
parentUBIFS: Delete unnecessary checks before the function call "iput" (diff)
downloadkernel-ab92a20bce3b4c21927cc1ae514c482f50ad3487.tar.gz
kernel-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 <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions