diff options
author | Boris Burkov <boris@bur.io> | 2024-12-13 23:33:22 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-02 12:34:25 +0300 |
commit | dd8bbfe723778bfcb49256ac15c66eae966b8632 (patch) | |
tree | c73ac951d91f92a33eaa4b1dec35fdb5922bf9e2 /scripts/generate_rust_analyzer.py | |
parent | c3a403d8ce36f5a809a492581de5ad17843e4701 (diff) | |
download | linux-dd8bbfe723778bfcb49256ac15c66eae966b8632.tar.xz |
btrfs: check folio mapping after unlock in put_file_data()
commit 0fba7be1ca6df2881e68386e5575fe096f33c4ca upstream.
When we call btrfs_read_folio() we get an unlocked folio, so it is possible
for a different thread to concurrently modify folio->mapping. We must
check that this hasn't happened once we do have the lock.
CC: stable@vger.kernel.org # 6.12+
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions