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 af73e4d9506d ("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
..
2013-04-01 19:08:06 -07:00
2012-12-11 17:22:26 -08:00
2013-01-29 19:32:59 -08:00
2013-05-08 10:13:35 -07:00
2013-04-30 17:04:01 -07:00
2013-02-23 17:50:20 -08:00
2011-12-06 09:24:07 +01:00
2012-12-11 17:22:24 -08:00
2013-03-03 22:46:22 -05:00
2012-01-03 22:54:56 -05:00
2013-04-09 14:12:56 -04:00
2013-05-01 17:51:54 -07:00
2013-03-28 17:45:51 -07:00
2013-04-30 17:04:00 -07:00
2012-12-20 08:37:05 -08:00
2013-04-29 15:54:39 -07:00
2012-12-18 15:02:15 -08:00
2013-04-30 09:36:50 -07:00
2012-07-31 18:42:43 -07:00
2011-07-26 16:49:47 -07:00
2013-02-27 19:10:09 -08:00
2012-10-09 16:22:42 +09:00
2013-04-29 15:54:40 -07:00
2012-01-10 16:30:42 -08:00
2010-03-30 22:02:32 +09:00
2011-01-27 18:31:51 +00:00
2013-02-27 19:10:24 -08:00
2013-03-08 15:05:34 -08:00
2011-10-31 09:20:12 -04:00
2013-04-29 15:54:37 -07:00
2013-04-29 15:54:38 -07:00
2013-04-29 15:54:38 -07:00
2013-05-07 18:38:26 -07:00
2013-04-29 15:54:39 -07:00
2013-04-29 15:54:28 -07:00
2013-04-30 09:36:50 -07:00
2013-03-08 15:05:34 -08:00
2012-06-25 11:53:47 +02:00
2013-04-29 15:54:37 -07:00
2013-02-23 17:50:17 -08:00
2013-03-28 17:45:51 -07:00
2013-02-23 17:50:18 -08:00
2013-05-09 14:22:47 -07:00
2013-05-07 18:38:27 -07:00
2013-02-27 19:10:24 -08:00
2013-02-23 17:50:18 -08:00
2012-12-18 15:02:15 -08:00
2013-02-23 17:50:17 -08:00
2010-05-21 18:31:21 -04:00
2013-04-29 15:54:39 -07:00
2013-05-01 07:21:43 -07:00
2013-02-23 17:50:08 -08:00
2013-04-29 15:54:36 -07:00
2012-12-12 17:38:32 -08:00
2013-05-08 10:13:35 -07:00
2013-01-04 16:11:46 -08:00
2013-04-29 15:54:33 -07:00
2012-12-12 17:38:31 -08:00
2010-10-02 10:28:42 +03:00
2012-06-20 14:39:36 -07:00
2012-12-02 06:23:04 -08:00
2012-12-11 14:28:34 +00:00
2013-03-12 11:05:45 -07:00
2011-10-31 09:20:11 -04:00
2013-03-03 22:46:22 -05:00
2013-04-29 15:54:28 -07:00
2013-05-07 20:16:25 -07:00
2013-05-08 15:02:33 -07:00
2013-05-07 08:42:20 -07:00
2013-02-01 12:32:09 +02:00
2013-02-23 17:50:18 -08:00
2013-05-07 08:42:20 -07:00
2013-04-29 15:54:35 -07:00
2013-04-29 15:54:37 -07:00
2013-04-29 15:54:38 -07:00
2013-05-07 20:16:25 -07:00
2013-04-30 17:04:00 -07:00
2012-12-20 18:46:29 -05:00
2013-02-23 17:50:17 -08:00
2013-05-07 18:38:27 -07:00
2013-04-29 15:54:38 -07:00
2013-04-29 15:54:38 -07:00
2013-04-29 15:54:38 -07:00