diff options
| author | Christoph Hellwig <[email protected]> | 2023-09-25 15:54:45 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2023-09-25 15:55:00 +0000 |
| commit | 381c043233e66b1c160ef235675e65cf6c580e92 (patch) | |
| tree | ec44e4f53fd024c3dfa14343eca8de8b488eb5a3 /tools/net/ynl/generated/netdev-user.c | |
| parent | iomap: convert iomap_unshare_iter to use large folios (diff) | |
| download | kernel-381c043233e66b1c160ef235675e65cf6c580e92.tar.gz kernel-381c043233e66b1c160ef235675e65cf6c580e92.zip | |
iomap: add a workaround for racy i_size updates on block devices
A szybot reproducer that does write I/O while truncating the size of a
block device can end up in clean_bdev_aliases, which tries to clean the
bdev aliases that it uses. This is because iomap_to_bh automatically
sets the BH_New flag when outside of i_size. For block devices updates
to i_size are racy and we can hit this case in a tiny race window,
leading to the eventual clean_bdev_aliases call. Fix this by erroring
out of > i_size I/O on block devices.
Reported-by: [email protected]
Signed-off-by: Christoph Hellwig <[email protected]>
Tested-by: [email protected]
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Diffstat (limited to 'tools/net/ynl/generated/netdev-user.c')
0 files changed, 0 insertions, 0 deletions
