The patch titled Subject: mm-thp-proc-report-thp-eligibility-for-each-vma-fix has been added to the -mm tree. Its filename is mm-thp-proc-report-thp-eligibility-for-each-vma-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-thp-proc-report-thp-eligibility-for-each-vma-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-thp-proc-report-thp-eligibility-for-each-vma-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Michal Hocko <mhocko@xxxxxxxxxx> Subject: mm-thp-proc-report-thp-eligibility-for-each-vma-fix fix oops with NULL ->f_mapping Link: http://lkml.kernel.org/r/20181224185106.GC16738@xxxxxxxxxxxxxx Reported-by: Paul Oppenheimer <bepvte@xxxxxxxxx> Cc: Vlastimil Babka <vbabka@xxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Cc: Jan Kara <jack@xxxxxxx> Cc: Mike Rapoport <rppt@xxxxxxxxxxxxx> Cc: William Kucharski <william.kucharski@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- --- a/mm/huge_memory.c~mm-thp-proc-report-thp-eligibility-for-each-vma-fix +++ a/mm/huge_memory.c @@ -66,7 +66,7 @@ bool transparent_hugepage_enabled(struct { if (vma_is_anonymous(vma)) return __transparent_hugepage_enabled(vma); - if (shmem_mapping(vma->vm_file->f_mapping) && shmem_huge_enabled(vma)) + if (vma_is_shmem(vma) && shmem_huge_enabled(vma)) return __transparent_hugepage_enabled(vma); return false; _ Patches currently in -mm which might be from mhocko@xxxxxxxxxx are mm-print-more-information-about-mapping-in-__dump_page-fix-2.patch mm-lower-the-printk-loglevel-for-__dump_page-messages-fix.patch mm-thp-proc-report-thp-eligibility-for-each-vma-fix.patch