Naoya Horiguchi
7a71932d56
kpageflags: fix wrong KPF_THP on non-huge compound pages
...
KPF_THP can be set on non-huge compound pages (like slab pages or pages
allocated by drivers with __GFP_COMP) because PageTransCompound only
checks PG_head and PG_tail. Obviously this is a bug and breaks user space
applications which look for thp via /proc/kpageflags.
This patch rules out setting KPF_THP wrongly by additionally checking
PageLRU on the head pages.
Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Acked-by: David Rientjes <rientjes@google.com>
Reviewed-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-10-09 16:23:00 +09:00
..
2012-10-09 16:22:17 +09:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-09-26 21:10:25 -04:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-10-09 16:22:17 +09:00
2012-10-09 16:22:17 +09:00
2012-10-09 16:22:17 +09:00
2012-10-02 21:35:55 -04:00
2012-09-18 01:01:37 -07:00
2012-09-21 03:13:08 -07:00
2012-10-02 11:11:09 -07:00
2012-10-02 13:38:27 -07:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-10-04 09:14:01 -07:00
2012-10-09 16:22:17 +09:00
2012-10-06 03:05:12 +09:00
2012-10-02 20:25:04 -07:00
2012-10-09 16:22:17 +09:00
2012-10-09 16:22:17 +09:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-09-21 03:13:23 -07:00
2012-10-06 03:05:08 +09:00
2012-10-09 16:22:39 +09:00
2012-10-02 20:25:04 -07:00
2012-09-12 15:52:03 +02:00
2012-10-08 06:36:39 +09:00
2012-10-09 16:22:32 +09:00
2012-10-03 08:48:21 -07:00
2012-09-22 20:48:20 -04:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-10-09 16:22:17 +09:00
2012-10-02 20:25:04 -07:00
2012-10-09 16:22:17 +09:00
2012-09-26 22:20:08 -04:00
2012-10-02 20:25:04 -07:00
2012-10-09 16:22:17 +09:00
2012-10-06 03:05:31 +09:00
2012-10-02 21:35:55 -04:00
2012-10-09 16:23:00 +09:00
2012-09-20 17:04:50 -07:00
2012-10-02 20:25:04 -07:00
2012-10-02 20:25:04 -07:00
2012-10-02 11:11:09 -07:00
2012-10-04 09:14:01 -07:00
2012-10-02 21:35:55 -04:00
2012-10-02 20:25:04 -07:00
2012-09-04 16:11:31 -07:00
2012-10-02 20:25:04 -07:00
2012-10-09 16:22:17 +09:00
2012-10-04 09:14:01 -07:00
2012-10-02 20:25:04 -07:00
2012-10-09 16:22:17 +09:00
2012-09-07 14:57:46 -04:00
2012-10-06 03:05:16 +09:00
2012-10-09 16:22:19 +09:00
2012-10-09 16:22:19 +09:00
2012-10-06 03:05:16 +09:00
2012-08-25 11:36:43 -07:00
2012-10-08 06:36:39 +09:00
2012-10-06 03:05:17 +09:00
2012-10-02 20:25:04 -07:00
2012-10-02 21:35:55 -04:00
2012-10-06 03:05:16 +09:00
2012-10-06 03:05:15 +09:00
2012-10-02 20:25:04 -07:00
2012-10-06 03:05:00 +09:00
2012-10-09 16:22:42 +09:00
2012-09-26 22:20:20 -04:00
2012-09-26 22:20:08 -04:00
2012-10-02 21:38:48 -07:00
2012-09-26 21:10:06 -04:00
2012-10-09 16:23:00 +09:00
2012-09-18 01:01:35 -07:00
2012-10-09 16:22:39 +09:00
2012-09-26 22:20:08 -04:00
2012-10-06 03:05:15 +09:00
2012-09-05 10:59:30 +02:00
2012-09-26 22:20:08 -04:00
2012-10-06 03:05:15 +09:00
2012-10-02 20:25:04 -07:00
2012-09-22 20:48:18 -04:00
2012-10-02 20:25:04 -07:00
2012-09-26 21:08:52 -04:00
2012-09-18 01:01:35 -07:00
2012-10-02 21:35:55 -04:00
2012-10-02 21:35:55 -04:00
2012-09-26 22:20:08 -04:00
2012-09-26 22:20:08 -04:00
2012-09-26 22:20:08 -04:00
2012-09-26 22:20:08 -04:00
2012-10-02 20:25:04 -07:00
2012-09-26 22:20:08 -04:00
2012-10-06 03:04:56 +09:00
2012-09-26 22:20:08 -04:00
2012-09-26 22:20:08 -04:00
2012-09-26 22:20:08 -04:00
2012-09-18 01:01:35 -07:00
2012-10-02 21:38:48 -07:00