mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:04:51 +01:00
Filesystems should never provide a delayed allocation mapping to
writeback; they're supposed to allocate the space before replying.
This can lead to weird IO errors and crashes in the block layer if the
filesystem is being malicious, or if it hadn't set iomap->dev because
it's a delalloc mapping.
Fix this by failing writeback on delalloc mappings. Currently no
filesystems actually misbehave in this manner, but we ought to be
stricter about things like that.
Cc: stable@vger.kernel.org # v5.5
Fixes:
|
||
|---|---|---|
| .. | ||
| bio.c | ||
| buffered-io.c | ||
| direct-io.c | ||
| fiemap.c | ||
| internal.h | ||
| ioend.c | ||
| iter.c | ||
| Makefile | ||
| seek.c | ||
| swapfile.c | ||
| trace.c | ||
| trace.h | ||