Re: [PATCH] mm/filemap: fix NULL pointer dereference in do_read_cache_folio()

From: Christoph Hellwig
Date: Tue Nov 18 2025 - 07:56:28 EST


On Tue, Nov 18, 2025 at 12:51:50PM +0000, Matthew Wilcox wrote:
> Please read the rest of the thread; this code can be called in contexts
> that can't block. That was why I proposed the kiocb_read() refactoring
> that I would expect you to have an opinion on.

Doing file reads from context that can't block is just broken. Let's
just kill the code before it causes more harm.