Re: [PATCH v3] Fixes: null pointer dereference in pfnmap_lockdep_assert

From: Manas
Date: Fri Oct 04 2024 - 09:47:56 EST


On 04.10.2024 19:15, Manas via B4 Relay wrote:
From: Manas <manas18244@xxxxxxxxxxx>

syzbot has pointed to a possible null pointer dereference in
pfnmap_lockdep_assert. vm_file member of vm_area_struct is being
dereferenced without any checks.

This fix assigns mapping only if vm_file is not NULL.
I also edited the commit message (and cover letter) slightly to tell about the
newer fix, instead of the v1 fix of returning.

I hope this is okay.

--
Manas