Re: [PATCH v3 11/19] x86, boot: Add checking for memcpy

2016-03-07 Thread Baoquan He
On 03/07/16 at 03:36pm, Kees Cook wrote: > On Fri, Mar 4, 2016 at 8:25 AM, Baoquan He wrote: > > From: Yinghai Lu > > > > parse_elf is using local memcpy to move section to running position. > > That memcpy actually only support no overlapping case or when dest < src. > > > > Add checking in memc

Re: [PATCH v3 11/19] x86, boot: Add checking for memcpy

2016-03-07 Thread Kees Cook
On Fri, Mar 4, 2016 at 8:25 AM, Baoquan He wrote: > From: Yinghai Lu > > parse_elf is using local memcpy to move section to running position. > That memcpy actually only support no overlapping case or when dest < src. > > Add checking in memcpy to find out the wrong case for future use, at > that

[PATCH v3 11/19] x86, boot: Add checking for memcpy

2016-03-04 Thread Baoquan He
From: Yinghai Lu parse_elf is using local memcpy to move section to running position. That memcpy actually only support no overlapping case or when dest < src. Add checking in memcpy to find out the wrong case for future use, at that time we will need to have backward memcpy for it. Also add co