In the Linux kernel, the following vulnerability has been resolved: netfs: don't hang a read whose retry is abandoned When ->prepare_read() fails while retrying a read, or a subrequest can't be allocated, netfs_retry_read_subrequests() marks the remaining subrequests failed without reissuing them. If none was reissued in that pass, nothing is in progress any more to wake the collector, which returned after the retry, so an offloaded read (readahead, async direct I/O) never completes and its folios stay locked. Wake the collector after abandoning, so it collects the failed subrequests and completes the request.
https://git.kernel.org/stable/c/d1bb754ab9e775b0fbb2743d3df425c25a561114
https://git.kernel.org/stable/c/cf8b4ac1598dc8d598d41193086ecc398402de9f
https://git.kernel.org/stable/c/98fe784a273bf2ae56522b73588deadace2d92af