The patch titled Subject: hfsplus: fix NULL dereference in hfsplus_lookup() has been added to the -mm tree. Its filename is hfsplus-fix-null-dereference-in-hfsplus_lookup.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/hfsplus-fix-null-dereference-in-hfsplus_lookup.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/hfsplus-fix-null-dereference-in-hfsplus_lookup.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 ------------------------------------------------------ Binary file patches/hfsplus-fix-null-dereference-in-hfsplus_lookup.patch matches Subject: hfsplus: fix NULL dereference in hfsplus_lookup() Check that the hidden directory is not NULL before using it, instead of after. Link: http://lkml.kernel.org/r/20180712215344.q44dyrhymm4ajkao@eaf Signed-off-by: Ernesto A. Fern�ez <ernesto.mnd.fernandez@xxxxxxxxx> Reported-by: Wen Xu <wen.xu@xxxxxxxxxx> Cc: Viacheslav Dubeyko <slava@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- diff -puN fs/hfsplus/dir.c~hfsplus-fix-null-dereference-in-hfsplus_lookup fs/hfsplus/dir.c --- a/fs/hfsplus/dir.c~hfsplus-fix-null-dereference-in-hfsplus_lookup +++ a/fs/hfsplus/dir.c @@ -78,13 +78,13 @@ again: cpu_to_be32(HFSP_HARDLINK_TYPE) && entry.file.user_info.fdCreator == cpu_to_be32(HFSP_HFSPLUS_CREATOR) && + HFSPLUS_SB(sb)->hidden_dir && (entry.file.create_date == HFSPLUS_I(HFSPLUS_SB(sb)->hidden_dir)-> create_date || entry.file.create_date == HFSPLUS_I(d_inode(sb->s_root))-> - create_date) && - HFSPLUS_SB(sb)->hidden_dir) { + create_date)) { struct qstr str; char name[32]; _ Patches currently in -mm which might be from ernesto.mnd.fernandez@xxxxxxxxx are hfsplus-prevent-crash-on-exit-from-failed-search.patch hfs-prevent-crash-on-exit-from-failed-search.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html