summaryrefslogtreecommitdiffstats
path: root/scripts/spelling.txt
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2023-01-26 09:51:55 +0100
committerAndrew Morton <akpm@linux-foundation.org>2023-02-02 22:50:07 -0800
commitbf470202dd9f9f5a29dab007fd2cd6c671aecbed (patch)
tree9b28e455a06f862b5ae67f94d045740169326f31 /scripts/spelling.txt
parenta1f46ff2ff88ab8cec64953422f207a81ff379f8 (diff)
downloadlinux-bf470202dd9f9f5a29dab007fd2cd6c671aecbed.tar.gz
linux-bf470202dd9f9f5a29dab007fd2cd6c671aecbed.tar.bz2
linux-bf470202dd9f9f5a29dab007fd2cd6c671aecbed.zip
fs: gracefully handle ->get_block not mapping bh in __mpage_writepage
When filesystem's ->get_block function does not map the buffer head when called from __mpage_writepage(), __mpage_writepage() will happily go and pass bogus bdev and block number to bio allocation routines which leads to crashes sooner or later. E.g. UDF can do this because it doesn't want to allocate blocks from ->writepages callbacks. It allocates blocks on write or page fault but writeback can still spot dirty buffers without underlying blocks allocated e.g. if blocksize < pagesize, the tail page is dirtied (which means all its buffers are dirtied), and truncate extends the file so that some buffer starts to be within i_size. Link: https://lkml.kernel.org/r/20230126085155.26395-1-jack@suse.cz Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Christoph Hellwig <hch@lst.de> Cc: Matthew Wilcox <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/spelling.txt')
0 files changed, 0 insertions, 0 deletions