On Sun, Jul 02, 2023 at 10:58:50PM -0700, Sidhartha Kumar wrote: > +++ b/mm/memory.c > @@ -4528,6 +4528,7 @@ static inline bool should_fault_around(struct vm_fault *vmf) > static vm_fault_t do_read_fault(struct vm_fault *vmf) > { > vm_fault_t ret = 0; > + struct folio *folio = page_folio(vmf->page); Similarly, vmf->page is not initialised until after __do_fault().