Re: [PATCH v6.13 v2] fs/netfs/read_collect: fix crash due to uninitialized `prev` variable

From: David Howells
Date: Fri Feb 14 2025 - 08:22:16 EST


Max Kellermann <max.kellermann@xxxxxxxxx> wrote:

> When checking whether the edges of adjacent subrequests touch, the
> `prev` variable is deferenced, but it might not have been initialized.
> This causes crashes like this one:
>
> BUG: unable to handle page fault for address: 0000000181343843
> ...
>
> Fixes: ee4cdf7ba857 ("netfs: Speed up buffered reading")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Max Kellermann <max.kellermann@xxxxxxxxx>

Signed-off-by: David Howells <dhowells@xxxxxxxxxx>