This is the mail archive of the
mailing list for the glibc project.
Re: Potential issue with strstr on x86 with sse4.2 in glibc-2.18
- From: Alexander Monakov <amonakov at ispras dot ru>
- To: Rich Felker <dalias at aerifal dot cx>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 19 Aug 2013 20:49:27 +0400 (MSK)
- Subject: Re: Potential issue with strstr on x86 with sse4.2 in glibc-2.18
- References: <520E181D dot 2040308 at archlinux dot org> <alpine dot LNX dot 2 dot 00 dot 1308191628370 dot 2626 at monopod dot intra dot ispras dot ru> <20130819144648 dot GF20515 at brightrain dot aerifal dot cx> <alpine dot LNX dot 2 dot 00 dot 1308191924490 dot 2626 at monopod dot intra dot ispras dot ru> <20130819163712 dot GG20515 at brightrain dot aerifal dot cx>
On Mon, 19 Aug 2013, Rich Felker wrote:
> As far as I can tell, adding the inline keywords back is not a fix,
> it's just a perturbation of gcc's behavior that happens to re-mask the
> bug. It could really come back at any time depending on compiler
> version, CFLAGS, etc.
Do you mean a bug in glibc? Or a psABI bug? :) Do you assume 16-byte stack
alignment in musl, or do you compile with options that prevent GCC from
touching SSE registers on 32-bit x86?