* - hugetlbfs-add-null-check-in-hugetlb_zero_setup.patch removed from -mm tree
@ 2007-05-08 0:04 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2007-05-08 0:04 UTC (permalink / raw)
To: akinobu.mita, wli, mm-commits
The patch titled
hugetlbfs: add NULL check in hugetlb_zero_setup()
has been removed from the -mm tree. Its filename was
hugetlbfs-add-null-check-in-hugetlb_zero_setup.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
Subject: hugetlbfs: add NULL check in hugetlb_zero_setup()
From: Akinobu Mita <akinobu.mita@gmail.com>
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@gmail.com>
Acked-by: William Irwin <wli@holomorphy.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/hugetlbfs/inode.c | 3 +++
1 file 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
@@ -747,6 +747,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@gmail.com are
origin.patch
git-alsa.patch
auth_gss-unregister-gss_domain-when-unloading-module.patch
fault-injection-disable-stacktrace-filter-for-x86-64.patch
use-slab_panic-flag-cleanup.patch
simplify-the-stacktrace-code.patch
dtlk-fix-error-checks-in-module_init.patch
procfs-use-simple_read_from_buffer.patch
cm4000_cs-fix-error-paths.patch
cm4000_cs-use-bitrev.patch
use-simple_read_from_buffer-in-fs.patch
use-simple_read_from_buffer-in-kernel.patch
sunrpc-fix-error-path-in-module_init.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-08 0:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-08 0:04 - hugetlbfs-add-null-check-in-hugetlb_zero_setup.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.