diff options
| author | Daejun Park <daejun7.park@samsung.com> | 2026-10-29 11:23:00 +0900 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-11-03 15:14:20 +0100 |
| commit | bcf0b7f18ad11e1d410e82ffef678705eff0a317 (patch) | |
| tree | fa6ec65e76dfb853368dfd45b66eaa40732ae92a /scripts/subarch.include | |
| parent | f3ca3498dfe624f9b604c934263538a3acd55af5 (diff) | |
xfs: refuse a pNFS LAYOUTCOMMIT of a range without blocks
A client can commit a hole in a LAYOUTCOMMIT, because nfsd does not
check the extents against its layouts. xfs_iomap_write_unwritten() then
allocates written blocks there. A large hole overruns the block
reservation and shuts XFS down. A small one exposes stale data.
Refuse such a range with -EIO, using XFS_BMAPI_CONVERT_ONLY.
Link: https://lore.kernel.org/r/20261014130834.GB15773@lst.de
Fixes: 527851124d10 ("xfs: implement pNFS export operations")
Cc: stable@vger.kernel.org
Signed-off-by: Daejun Park <daejun7.park@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'scripts/subarch.include')
0 files changed, 0 insertions, 0 deletions
