[#6575] munmap error while trying to unmap unaligned end addr
Submitted By: Bob Liu
2011-05-03 23:14:04 Close Date
Closed Fixed In Release:
Found In Release:
ALL Silicon Revision:
Is this bug repeatable?:
Uboot version or rev.:
Toolchain version or rev.:
cc version 4.3.5
App binary format:
Summary: munmap error while trying to unmap unaligned end addr
There are some issues about munmap error during unmap frame buffer.
The problem maybe caused by unaligned end addr.
--- Bob Liu 2011-05-26 22:38:21
1. the root cause is do_munmap() in mm/nommu.c can't find the exact vma to
2. in bfin-lq035q1-fb frame buffer driver, the get_fb_unmapped_area() will get
the screen_base addr and pass to fb_mmap() in drivers/video/fbmem.c.
But screen_base addr is not page_aligned, so fb_mmap() will align it, and call
io_remap_pfn_range() which is remap_pfn_range() on bfin arch.
3. remap_pfn_range() only change the start_addr of vma, so during munmap()
there is no vma can be matched.
File Name File Type File Size Posted By
No Files Were Found