On Thu, 2005-08-18 at 11:53 +0300, Valentin Rabinovich wrote:
> Bug in mmap_kmem(), drivers/char/mem.c.
> When mapping the kmem, page alingning seems to mess the address:
>
> unsigned long long val;
> val = (u64)vma->vm_pgoff << PAGE_SHIFT;
> vma->vm_pgoff = ((unsigned long)val >> PAGE_SHIFT) - PAGE_OFFSET;
> vma->vm_pgoff = __pa(val) >> PAGE_SHIFT;
>
> Subtracting 0xc0000000 and shifting is made in wrong order.
> Kernel: 2.6.12.3, 2.6.12.4
This is already fixed in 2.6.13-rc6-git9, so you need to wait for it in
the 2.6.13 release, or better yet, download and test the git release.
-- Steve
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
|
|