summaryrefslogtreecommitdiff
path: root/scripts/leaking_addresses.pl
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-09-12 20:05:48 +0300
committerDarrick J. Wong <djwong@kernel.org>2023-09-12 20:05:48 +0300
commit4aa8cdd5e523d2d8ec8df29dcd696bf207d7a494 (patch)
tree2db21c6cdd86acbe43a8dec894160096f832e65a /scripts/leaking_addresses.pl
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d (diff)
downloadlinux-4aa8cdd5e523d2d8ec8df29dcd696bf207d7a494.tar.xz
iomap: handle error conditions more gracefully in iomap_to_bh
iomap_to_bh currently BUG()s when the passed in block number is not in the iomap. For file systems that have proper synchronization this should never happen and so far hasn't in mainline, but for block devices size changes aren't fully synchronized against ongoing I/O. Instead of BUG()ing in this case, return -EIO to the caller, which already has proper error handling. While we're at it, also return -EIO for an unknown iomap state instead of returning garbage. Fixes: 487c607df790 ("block: use iomap for writes to block devices") Reported-by: syzbot+4a08ffdf3667b36650a1@syzkaller.appspotmail.com Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Diffstat (limited to 'scripts/leaking_addresses.pl')
0 files changed, 0 insertions, 0 deletions