* [PATCH] fix remap_pte_range BUG
@ 2005-06-22 13:02 Hugh Dickins
2005-06-22 15:52 ` [stable] " Chris Wright
0 siblings, 1 reply; 2+ messages in thread
From: Hugh Dickins @ 2005-06-22 13:02 UTC (permalink / raw)
To: Andrew Morton; +Cc: Richard B. Johnson, stable, linux-kernel
Out-of-tree user of remap_pfn_range hit kernel BUG at mm/memory.c:1112!
It passes an unrounded size to remap_pfn_range, which was okay before
2.6.12, but misses remap_pte_range's new end condition. An audit of
all the other ptwalks confirms that this is the only one so exposed.
Signed-off-by: Hugh Dickins <hugh@veritas.com>
--- 2.6.12/mm/memory.c 2005-06-17 20:48:29.000000000 +0100
+++ linux/mm/memory.c 2005-06-21 20:31:42.000000000 +0100
@@ -1164,7 +1164,7 @@ int remap_pfn_range(struct vm_area_struc
{
pgd_t *pgd;
unsigned long next;
- unsigned long end = addr + size;
+ unsigned long end = addr + PAGE_ALIGN(size);
struct mm_struct *mm = vma->vm_mm;
int err;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [stable] [PATCH] fix remap_pte_range BUG
2005-06-22 13:02 [PATCH] fix remap_pte_range BUG Hugh Dickins
@ 2005-06-22 15:52 ` Chris Wright
0 siblings, 0 replies; 2+ messages in thread
From: Chris Wright @ 2005-06-22 15:52 UTC (permalink / raw)
To: Hugh Dickins; +Cc: Andrew Morton, Richard B. Johnson, stable, linux-kernel
* Hugh Dickins (hugh@veritas.com) wrote:
> Out-of-tree user of remap_pfn_range hit kernel BUG at mm/memory.c:1112!
> It passes an unrounded size to remap_pfn_range, which was okay before
> 2.6.12, but misses remap_pte_range's new end condition. An audit of
> all the other ptwalks confirms that this is the only one so exposed.
Thanks Hugh, queued to -stable.
-chris
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-06-22 15:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-22 13:02 [PATCH] fix remap_pte_range BUG Hugh Dickins
2005-06-22 15:52 ` [stable] " Chris Wright
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®