Li Zefan
091d0d55b2
shm: fix null pointer deref when userspace specifies invalid hugepage size
Dave reported an oops triggered by trinity:
BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
IP: newseg+0x10d/0x390
PGD cf8c1067 PUD cf8c2067 PMD 0
Oops: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC
CPU: 2 PID: 7636 Comm: trinity-child2 Not tainted 3.9.0+#67
...
Call Trace:
ipcget+0x182/0x380
SyS_shmget+0x5a/0x60
tracesys+0xdd/0xe2
This bug was introduced by commit af73e4d950 ("hugetlbfs: fix mmap
failure in unaligned size request").
Reported-by: Dave Jones <davej@redhat.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Li Zefan <lizfan@huawei.com>
Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|
2013-05-09 14:22:47 -07:00 |
| .. |
|
compat.c
|
|
|
|
compat_mq.c
|
|
|
|
ipc_sysctl.c
|
|
|
|
ipcns_notifier.c
|
|
|
|
Makefile
|
|
|
|
mq_sysctl.c
|
|
|
|
mqueue.c
|
|
|
|
msg.c
|
ipc/msg.c: use list_for_each_entry_[safe] for list traversing
|
2013-05-01 08:12:58 -07:00 |
|
msgutil.c
|
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
|
2013-05-01 17:51:54 -07:00 |
|
namespace.c
|
proc: Split the namespace stuff out into linux/proc_ns.h
|
2013-05-01 17:29:39 -04:00 |
|
sem.c
|
ipc,sem: fix semctl(..., GETNCNT)
|
2013-05-09 14:17:47 -07:00 |
|
shm.c
|
shm: fix null pointer deref when userspace specifies invalid hugepage size
|
2013-05-09 14:22:47 -07:00 |
|
syscall.c
|
|
|
|
util.c
|
ipc_schedule_free() can do vfree() directly now
|
2013-05-02 08:03:33 -07:00 |
|
util.h
|
ipc,sem: fine grained locking for semtimedop
|
2013-05-01 08:12:58 -07:00 |