diff options
author | Jan Kara <[email protected]> | 2023-05-04 14:55:24 +0200 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2023-05-13 18:05:04 -0400 |
commit | 492888df0c7b42fc0843631168b0021bc4caee84 (patch) | |
tree | dc11ae138e5738d0b5e9e471b650ad5ad71b80d7 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 00d873c17e29cc32d90ca852b82685f1673acaa5 (diff) |
ext4: fix data races when using cached status extents
When using cached extent stored in extent status tree in tree->cache_es
another process holding ei->i_es_lock for reading can be racing with us
setting new value of tree->cache_es. If the compiler would decide to
refetch tree->cache_es at an unfortunate moment, it could result in a
bogus in_range() check. Fix the possible race by using READ_ONCE() when
using tree->cache_es only under ei->i_es_lock for reading.
Cc: [email protected]
Reported-by: [email protected]
Link: https://lore.kernel.org/all/[email protected]
Suggested-by: Dmitry Vyukov <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions