[PATCH] Don't write beyond destination in __mempcpy_avx512_no_vzeroupper (bug 23196)

H.J. Lu hjl.tools@gmail.com
Tue May 22 16:33:00 GMT 2018


On Tue, May 22, 2018 at 8:38 AM, Andreas Schwab <schwab@suse.de> wrote:
> On Mai 22 2018, Florian Weimer <fweimer@redhat.com> wrote:
>
>> On 05/22/2018 05:06 PM, Andreas Schwab wrote:
>>> On Mai 22 2018, Florian Weimer<fweimer@redhat.com>  wrote:
>>>
>>>> And with the original reproducer, we wouldn't hit preloop_large, where the
>>>> bug is.
>>> Worksforme.
>>>
>>> $ string/test-mempcpy
>>
>> I don't doubt that.  Our CPUs probably have different cache sizes,
>
> Same cache size.

Here is the testcase.   Since both memcpy and memcpy share the
the same body of code, we can't use RAX to refer the beginning of
destination.  Please update your patch with this info together this
tesrcase.

Thanks.

-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-test-case-for-BZ-23196.patch
Type: text/x-patch
Size: 1762 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20180522/a7ea224f/attachment.bin>


More information about the Libc-alpha mailing list