summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-09-25 18:54:45 +0300
committerDarrick J. Wong <djwong@kernel.org>2023-09-25 18:55:00 +0300
commit381c043233e66b1c160ef235675e65cf6c580e92 (patch)
treeec44e4f53fd024c3dfa14343eca8de8b488eb5a3 /.clang-format
parenta5f31a5028d1e88e97c3b6cdc3e3bf2da085e232 (diff)
downloadlinux-381c043233e66b1c160ef235675e65cf6c580e92.tar.xz
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: syzbot+1fa947e7f09e136925b8@syzkaller.appspotmail.com Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: syzbot+1fa947e7f09e136925b8@syzkaller.appspotmail.com Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions