Commit dd8bbfe
btrfs: check folio mapping after unlock in put_file_data()
commit 0fba7be 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: [email protected] # 6.12+
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Boris Burkov <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent c3a403d commit dd8bbfe
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5291 | 5291 | | |
5292 | 5292 | | |
5293 | 5293 | | |
| 5294 | + | |
5294 | 5295 | | |
5295 | 5296 | | |
5296 | 5297 | | |
| |||
5323 | 5324 | | |
5324 | 5325 | | |
5325 | 5326 | | |
| 5327 | + | |
| 5328 | + | |
| 5329 | + | |
| 5330 | + | |
| 5331 | + | |
5326 | 5332 | | |
5327 | 5333 | | |
5328 | 5334 | | |
| |||
0 commit comments