Re: [PATCH 6.1.y] fs/ntfs3: fix null-ptr-deref in ntfs_lock_new_page()

From: Sasha Levin

Date: Thu Oct 29 2026 - 14:50:51 EST


> Commit 95b917a14b15 ("ntfs: Do not overwrite uptodate pages") added an
> IS_ERR() check on the folio returned by __filemap_get_folio(). However,
> __filemap_get_folio() only started returning ERR_PTR() in v6.4 with
> commit 66dabbb65d67 ("mm: return an ERR_PTR from __filemap_get_folio").
> In 6.1.y, it returns NULL when the folio cannot be allocated.

Thanks Carlos. There is no upstream commit for this, so I'd like an ack or
review from the ntfs3 maintainer before I queue it for 6.1.

Konstantin, could you take a look?

--
Thanks,
Sasha