diff options
| author | Darrick J. Wong <djwong@kernel.org> | 2026-03-02 09:30:02 -0800 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-03-04 14:31:56 +0100 |
| commit | d320f160aa5ff36cdf83c645cca52b615e866e32 (patch) | |
| tree | 0a50709fc621feff167b736d86a5f7cb9d5f19d5 /include/linux/misc | |
| parent | d3ccc4d86dfe2d7321276bb1a97ab0afcbfd7200 (diff) | |
iomap: reject delalloc mappings during writeback
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: 598ecfbaa742ac ("iomap: lift the xfs writeback code to iomap")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://patch.msgid.link/20260302173002.GL13829@frogsfrogsfrogs
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux/misc')
0 files changed, 0 insertions, 0 deletions
