The patch titled hugetlbfs: add NULL check in hugetlb_zero_setup() has been added to the -mm tree. Its filename is hugetlbfs-add-null-check-in-hugetlb_zero_setup.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: hugetlbfs: add NULL check in hugetlb_zero_setup() From: Akinobu Mita <akinobu.mita@xxxxxxxxx> If hugetlbfs module_init() fails, hugetlbfs_vfsmount is not initialized and shmget() with SHM_HUGETLB flag will cause NULL pointer dereference. Signed-off-by: Akinobu Mita <akinobu.mita@xxxxxxxxx> Acked-by: William Irwin <wli@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/hugetlbfs/inode.c | 3 +++ 1 files changed, 3 insertions(+) diff -puN fs/hugetlbfs/inode.c~hugetlbfs-add-null-check-in-hugetlb_zero_setup fs/hugetlbfs/inode.c --- a/fs/hugetlbfs/inode.c~hugetlbfs-add-null-check-in-hugetlb_zero_setup +++ a/fs/hugetlbfs/inode.c @@ -746,6 +746,9 @@ struct file *hugetlb_zero_setup(size_t s char buf[16]; static atomic_t counter; + if (!hugetlbfs_vfsmount) + return ERR_PTR(-ENOENT); + if (!can_do_hugetlb_shm()) return ERR_PTR(-EPERM); _ Patches currently in -mm which might be from akinobu.mita@xxxxxxxxx are origin.patch git-alsa.patch git-dvb.patch auth_gss-unregister-gss_domain-when-unloading-module.patch fault-injection-disable-stacktrace-filter-for-x86-64.patch fault-injection-enable-stacktrace-with-dwarf2-unwinder.patch slob-handle-slab_panic-flag.patch use-slab_panic-flag-cleanup.patch fault-injection-fix-failslab-with-config_numa.patch hugetlbfs-add-null-check-in-hugetlb_zero_setup.patch simplify-the-stacktrace-code.patch dtlk-fix-error-checks-in-module_init.patch sunrpc-fix-error-path-in-module_init.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