[OE-core] ltp: vma03 fix the alginment of page size

cdong chuang.dong at windriver.com
Wed Jun 3 08:06:00 UTC 2015


Hi,
     This patch fix a vma03 bug,the info below detail it:

     the offset which is parameter of mmap2() function doesn't align the
     page size,but,this parameter is allowed multiple of the page size
     as returned by sysconf(_SC_PAGE_SIZE),meanwhile offset * 4096 must be
     a multiple of the system page size,so modify the input parameter
     pgoff = (ULONG_MAX - 1)&(~((pgsz-1)>>12));

     Regards
     Chuang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ltp-vma03-fix-the-alginment-of-page-size.patch
Type: text/x-patch
Size: 2972 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150603/72974aa8/attachment-0002.bin>


More information about the Openembedded-core mailing list