diff options
author | Zhihao Cheng <[email protected]> | 2021-05-31 20:52:09 +0800 |
---|---|---|
committer | Richard Weinberger <[email protected]> | 2021-06-18 22:04:47 +0200 |
commit | f4e3634a3b642225a530c292fdb1e8a4007507f5 (patch) | |
tree | 3aeb9658f4ab13f138415ee881d66af842cfec32 /scripts/gdb/linux/tasks.py | |
parent | be076fdf8369f3b4842362c64cd681f3d498f3dd (diff) |
ubifs: Fix races between xattr_{set|get} and listxattr operations
UBIFS may occur some problems with concurrent xattr_{set|get} and
listxattr operations, such as assertion failure, memory corruption,
stale xattr value[1].
Fix it by importing a new rw-lock in @ubifs_inode to serilize write
operations on xattr, concurrent read operations are still effective,
just like ext4.
[1] https://lore.kernel.org/linux-mtd/[email protected]
Fixes: 1e51764a3c2ac05a23 ("UBIFS: add new flash file system")
Cc: [email protected] # v2.6+
Signed-off-by: Zhihao Cheng <[email protected]>
Reviewed-by: Sascha Hauer <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions