Re: [PATCH] xfs: handle NULL b_addr in xfs_buf_free
Christoph Hellwig <[email protected]>
| Newsgroups | org.kernel.vger.linux-xfs,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Jul 19, 2026 at 11:11:24PM +0800, Yun Zhou wrote: > When xfs_buf_alloc_backing_mem() fails, xfs_buf_free() is called with > bp->b_addr still NULL. The code falls through to the folio_put path > which calls virt_to_folio(NULL), dereferencing an invalid address and > causing a kernel crash. Looks good: Reviewed-by: Christoph Hellwig <[email protected]>