[lkml]   [2017]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectmemcpy without considering the get_zeroed_page() size returned

/* kuser helpers */
memcpy((void *)vpage + 0x1000 - kuser_sz, __kuser_helper_start,
/* sigreturn code */
memcpy((void *)vpage + AARCH32_KERN_SIGRET_CODE_OFFSET,
__aarch32_sigret_code_start, sigret_sz);

I am just curious: depending on the configuration, will it ever
happened that get_zeroed_page() ever produce less amount of memory for
the above memcpy() operation to be successful? Ie, why the offset of
0x1000 is done without ever considering the actual amount of memory

Please email me direct (no on LKML mailing list).

 \ /
  Last update: 2017-03-21 03:36    [W:0.022 / U:1.060 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site