diff options
| author | Dongsheng Yang <[email protected]> | 2015-08-18 04:38:36 +0000 |
|---|---|---|
| committer | Richard Weinberger <[email protected]> | 2015-11-07 10:33:17 +0000 |
| commit | ab92a20bce3b4c21927cc1ae514c482f50ad3487 (patch) | |
| tree | 5979820c9a40bf54a7542a3df9f75c0482aea70b /net/unix/af_unix.c | |
| parent | UBIFS: Delete unnecessary checks before the function call "iput" (diff) | |
| download | kernel-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
