Avi Kivity
27aba76615
KVM: MMU: Fix host memory corruption on i386 with >= 4GB ram
...
PAGE_MASK is an unsigned long, so using it to mask physical addresses on
i386 (which are 64-bit wide) leads to truncation. This can result in
page->private of unrelated memory pages being modified, with disasterous
results.
Fix by not using PAGE_MASK for physical addresses; instead calculate
the correct value directly from PAGE_SIZE. Also fix a similar BUG_ON().
Acked-by: Ingo Molnar <mingo@elte.hu >
Signed-off-by: Avi Kivity <avi@qumranet.com >
2007-03-18 10:49:09 +02:00
..
2007-03-04 20:40:50 +00:00
2007-03-14 15:27:49 -07:00
2007-03-14 15:27:50 -07:00
2007-03-14 15:27:49 -07:00
2007-02-20 17:10:14 -08:00
2007-03-15 15:29:26 -07:00
2007-03-14 15:27:50 -07:00
2007-02-26 11:42:42 -08:00
2007-03-05 07:57:51 -08:00
2007-03-16 19:28:15 -07:00
2007-03-05 07:57:53 -08:00
2007-03-07 16:08:08 -08:00
2007-02-26 14:55:48 -08:00
2007-03-06 09:30:25 -08:00
2007-03-16 19:25:03 -07:00
2007-02-12 09:48:32 -08:00
2007-02-14 08:09:54 -08:00
2007-02-11 10:51:32 -08:00
2007-03-15 10:50:54 -07:00
2007-03-16 19:25:06 -07:00
2007-03-04 20:40:50 +00:00
2007-03-17 21:57:41 +01:00
2007-02-19 13:29:02 -08:00
2007-03-14 15:27:49 -07:00
2007-03-08 07:28:30 -08:00
2007-03-01 14:53:39 -08:00
2007-03-18 10:49:09 +02:00
2007-02-15 21:37:29 +00:00
2007-02-20 09:26:53 +00:00
2007-03-16 19:25:03 -07:00
2007-03-14 15:27:49 -07:00
2007-02-14 08:09:54 -08:00
2007-02-26 12:35:47 -08:00
2007-03-09 21:06:40 -05:00
2007-03-12 16:49:37 +00:00
2007-03-09 08:08:09 +00:00
2007-03-15 10:59:54 -04:00
2007-02-12 09:48:45 -08:00
2007-02-26 12:48:06 -08:00
2007-02-20 17:10:16 -08:00
2007-03-12 16:31:50 -07:00
2007-02-23 14:52:09 -08:00
2007-03-16 19:25:02 -07:00
2007-03-14 15:27:50 -07:00
2007-02-14 08:09:54 -08:00
2007-03-04 20:33:07 +00:00
2007-03-15 15:29:26 -07:00
2007-02-26 11:35:51 -08:00
2007-03-15 15:29:26 -07:00
2007-03-08 07:39:15 -08:00
2007-02-11 10:51:25 -08:00
2007-03-16 19:25:06 -07:00
2007-02-14 08:09:54 -08:00
2007-02-14 08:09:54 -08:00
2007-03-10 14:22:07 -08:00
2007-03-16 19:25:05 -07:00
2007-02-12 09:48:28 -08:00
2007-02-12 09:48:45 -08:00
2007-02-11 10:51:24 -08:00
2007-02-11 10:51:24 -08:00