commit | 044c9b6753a6b6cf486e16b53296b4707b35dbe3 | [log] [tgz] |
---|---|---|
author | Jan Kara <jack@suse.cz> | Thu Feb 18 13:20:20 2016 +0100 |
committer | Jan Kara <jack@suse.cz> | Thu Feb 18 13:34:41 2016 +0100 |
tree | 4854ad052572bab2d07d6d74b247d0017b177452 | |
parent | 5a9530e498ed25173d426cd93e31a04468d0dc24 [diff] |
quota: Fix possible races during quota loading When loading new quota structure from disk, there is a possibility caller of dqget() will see uninitialized data due to CPU reordering loads or stores - loads from dquot can be reordered before test of DQ_ACTIVE_B bit or setting of this bit could be reordered before filling of the structure. Fix the issue by adding proper memory barriers. Signed-off-by: Jan Kara <jack@suse.cz>