<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://sourceware.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="4.4+"
          urlbase="http://sourceware.org/bugzilla/"
          
          maintainer="overseers@sourceware.org"
>

    <bug>
          <bug_id>12518</bug_id>
          
          <creation_ts>2011-02-25 02:26:00 +0000</creation_ts>
          <short_desc>memcpy acts randomly (and differently) with overlapping areas</short_desc>
          <delta_ts>2011-06-07 03:06:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>glibc</product>
          <component>libc</component>
          <version>2.13</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Linus Torvalds">torvalds</reporter>
          <assigned_to name="Ulrich Drepper">drepper.fsp</assigned_to>
          <cc>alexander.hunt2005</cc>
    
    <cc>bvasselle</cc>
    
    <cc>felipe.contreras</cc>
    
    <cc>hjl.tools</cc>
    
    <cc>jakub</cc>
    
    <cc>jvillalo</cc>
    
    <cc>kenyon</cc>
    
    <cc>ml-bz-dale</cc>
    
    <cc>oliver.henshaw</cc>
    
    <cc>shaforostoff</cc>
    
    <cc>smconvey</cc>
    
    <cc>thierry.vignaud</cc>
    
    <cc>tmoody</cc>
    
    <cc>tmraz</cc>
    
    <cc>tolzmann</cc>
    
    <cc>vincent-srcware</cc>
    
    <cc>y.pronenko</cc>
          <cf_gcchost></cf_gcchost>
          <cf_gcctarget></cf_gcctarget>
          <cf_gccbuild></cf_gccbuild>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47199</commentid>
    <comment_count>0</comment_count>
      <attachid>5264</attachid>
    <who name="Linus Torvalds">torvalds</who>
    <bug_when>2011-02-25 02:26:20 +0000</bug_when>
    <thetext>Created attachment 5264
Example patch to give the basic idea

I realize that it&apos;s technically &quot;undefined&quot;, but the behavior has changed, and in the process broken existing binaries. It&apos;s a common bug to use memcpy() instead of memmove(), and the traditional behavior of &quot;copy upwards&quot; means that that bug can go unnoticed for a *long* time if the memory move moves things downwards.

The change was introduced in commit 6fb8cbcb58a29fff73eb2101b34caa19a7f88eba (&quot;Improve 64bit memcpy/memmove for Atom, Core 2 and Core i7&quot;), which was part of the 2.13 release.

As a result, upgrading from Fedora-13 to Fedora-14 caused applications like flash to fail. But it&apos;s a bug that has been reported for other applications too (and it&apos;s a bug that I&apos;ve personally introduced in &apos;git&apos; too - happily, people had run things like valgrind, so I don&apos;t know of any _current_ cases of it).

And there is absolutely _zero_ reason to not handle overlapping areas correctly. The &quot;undefined behavior&quot; is due to historical implementation issues, not because it&apos;s better than just doing the right thing. 

And now applications will randomly do different things depending on the phase of the moon (technically, depending on which CPU they have and what particular version of memcpy() glibc happens to choose).

So from a pure Quality-of-Implementation standpoint, just make glibc implement memcpy() as memmove(), if you don&apos;t want to re-instate the traditional behavior that binaries have at least been tested with. Don&apos;t break random existing binaries just because the glibc version changed, and they had never been tested with the new random behavior!

I&apos;m attaching an EXAMPLE patch against the current glibc git tree: it just tries to get rid of the unnecessary differences between memcpy and memmove for the normal ssse3 case. The approach is simple:

 - small copies (less than 80 bytes) have hand-coded optimized code that gets called through a jump table. Those cases already handle overlapping areas correctly (simply because they do all loads up-front, and stores at the end), and they are used for memmove() as-is. 

   So change the memcpy() function to test for the small case first, since that&apos;s the one that can be latency critical.

 - once we&apos;re talking about bigger memcpy() cases, the extra couple of cycles to check &quot;which direction should I copy&quot; are totally immaterial, and having two different versions of basically the same code is just silly and is quite likely to cost more than (in I$ and page fault overhead) than just doing it in the same code. So just remove all the USE_AS_MEMMOVE games.

I haven&apos;t actually tested the patch, since building glibc is black magic and the  simple &quot;just alias __memmove_ssse3 to __memcpy_sse3&quot; thing didn&apos;t work for me and resulted in linker errors. There&apos;s probably some simple (but subtle) magic reason for that, that I simply don&apos;t know about.

So take the patch as a &quot;hey, doing it this way should be simpler and avoid the problem&quot; rather than &quot;apply this patch as-is&quot;. The ssse3-back case (which prefers backwards copies) needs similar treatment, I&apos;ll happily do that and test it if people just let me know that it&apos;s worth my time (and tell me what the black magic incantation is).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47200</commentid>
    <comment_count>1</comment_count>
    <who name="Linus Torvalds">torvalds</who>
    <bug_when>2011-02-25 02:29:37 +0000</bug_when>
    <thetext>Btw, this has hit quite a lot of people. It&apos;s Fedora

  https://bugzilla.redhat.com/show_bug.cgi?id=638477

and there are examples of having other things than just flash break (like old gstreamer plugins etc)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47202</commentid>
    <comment_count>2</comment_count>
    <who name="H.J. Lu">hjl.tools</who>
    <bug_when>2011-02-25 03:57:42 +0000</bug_when>
    <thetext>Although the current memcpy in glibc follows the spec,
some applications call memcpy with overlapping destination
and source.

I think we should help those applications without punishing
the correctly written applications.  We can check an environment
variable for IFUNC, like LD_BIND_IFUNC_MEMCPY_TO_MEMMOVE.
If it is set, IFUNC memcpy will return memmove instead
of memcpy. I can prepare a patch to implement it if we
should do it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47203</commentid>
    <comment_count>3</comment_count>
    <who name="Linus Torvalds">torvalds</who>
    <bug_when>2011-02-25 04:14:39 +0000</bug_when>
    <thetext>So is there any real reason to believe that memmove() can&apos;t just be as fast as memcpy?

Seriously. That&apos;s what it all boils down to. Why have a separate memcpy() at all, when it clearly is correct - and nice to people - to always just implement it as a memmove(). And I really don&apos;t see the downside. It&apos;s not like it&apos;s going to be slower.

People who want to check whether their application is portable can use valgrind, the same way you have to check for portability issues in other areas (eg the extra glibc specific printf formats etc - they just &quot;work&quot;, but they certainly aren&apos;t portable).

So why not just be nice.

If anything, from a &quot;be nice&quot; standpoint, it would perhaps be good to have a &quot;debug mode&quot;, that would actually _warn_ - or even assert - about overlapping memcpy(). That obviously shouldn&apos;t be the default (since that only helps developers), but it would be along the same lines of the nice malloc debugging help that glibc can give.

IOW, I think this is an area where glibc can be _better_ than what is required of it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47208</commentid>
    <comment_count>4</comment_count>
    <who name="Ulrich Drepper">drepper.fsp</who>
    <bug_when>2011-02-25 09:59:18 +0000</bug_when>
    <thetext>The existence of code written by people who should never have been allowed to touch a keyboard cannot be allowed to prevent a correct implementation.  If there is a large bod of code out there we can work around the issue for that.

We can have the existing memcpy@GLIBC_2.2.5 implementation work around the issue by avoiding the backward copying code.  A new memcpy@GLIBC_2.14 could use the code currently in use.

Whether the current, new memcpy is only slightly faster than one mimicking memmove is really not that important.  There are going to be more and different implementations in the future and they shouldn&apos;t be prevented from being used because of buggy programs.  We should be happy to have this code here and now.

With this proposed implementation old code remains in working order until those lousy programmers use a newer platform and then they will experience the problems themselves and will fix them before releasing their code.

I&apos;m happy to entertain a patch to this effect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47210</commentid>
    <comment_count>5</comment_count>
    <who name="Jakub Jelinek">jakub</who>
    <bug_when>2011-02-25 12:07:14 +0000</bug_when>
    <thetext>If we go that route (symbol versioning memcpy), then wouldn&apos;t it be better to just alias the old memcpy@GLIBC_2.2.5 to memmove and have the new memcpy@@GLIBC_2.14 be the only memcpy implementation? Having two sets of memcpy implementations (especially when we have many memcpy implementations on x86_64 and i?86 selectable via STT_GNU_IFUNC), even if the workaroundish one is placed in compat .text subsections, would waste too much code section in libc.so.6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47217</commentid>
    <comment_count>6</comment_count>
    <who name="H.J. Lu">hjl.tools</who>
    <bug_when>2011-02-25 15:19:47 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; If we go that route (symbol versioning memcpy), then wouldn&apos;t it be better to
&gt; just alias the old memcpy@GLIBC_2.2.5 to memmove and have the new
&gt; memcpy@@GLIBC_2.14 be the only memcpy implementation? Having two sets of memcpy

I like this idea.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47227</commentid>
    <comment_count>7</comment_count>
    <who name="Ulrich Drepper">drepper.fsp</who>
    <bug_when>2011-02-26 01:56:18 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; If we go that route (symbol versioning memcpy), then wouldn&apos;t it be better to
&gt; just alias the old memcpy@GLIBC_2.2.5 to memmove and have the new
&gt; memcpy@@GLIBC_2.14 be the only memcpy implementation?

That&apos;s what I have in mind.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47315</commentid>
    <comment_count>8</comment_count>
    <who name="Felipe Contreras">felipe.contreras</who>
    <bug_when>2011-03-03 23:27:33 +0000</bug_when>
    <thetext>&quot;Buggy&quot; code can be linked to the new memcpy@@GLIBC_2.14 by just recompiling, no? That doesn&apos;t really solve anything.

Sure, code should use memcpy correctly, and if glibc has a compelling reason to break these programs, it should. As Ulrich mentions in comment #4 &quot;There are going to be more and different implementations in the future and they shouldn&apos;t be prevented from being used because of buggy programs.&quot;

But _today_ that&apos;s not the case. Today, the regression can be fixed easily with a patch like what Linus is proposing, and there will be no *downside* whatsoever.

How about glibc breaks the behavior _only_ when there&apos;s an *upside* to breaking it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47329</commentid>
    <comment_count>9</comment_count>
    <who name="Ulrich Drepper">drepper.fsp</who>
    <bug_when>2011-03-04 23:41:41 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt; &quot;Buggy&quot; code can be linked to the new memcpy@@GLIBC_2.14 by just recompiling,
&gt; no? That doesn&apos;t really solve anything.

It solves everything.  If you just relink without retesting you&apos;re an idiot and acting irresponsible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47330</commentid>
    <comment_count>10</comment_count>
    <who name="Linus Torvalds">torvalds</who>
    <bug_when>2011-03-04 23:53:36 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; 
&gt; It solves everything.  If you just relink without retesting you&apos;re an idiot and
&gt; acting irresponsible.

It does solve a lot, and at least fixes the &quot;you broke stuff that used to work&quot; issue.

However, I still don&apos;t understand why you guys can&apos;t just admit that you might as well just do memmove() and be done with it. It&apos;s not slower. And the excuse that &quot;you&apos;ll have more implementations in the future&quot; is just an even stronger reason to do that.

To make this very clear: your new &quot;and improved&quot; memcpy() ACTS DIFFERENTLY ON DIFFERENT MACHINES. That means that all that testing that was done by the developer at link-time is ALMOST TOTALLY WORTHLESS, because what was tested wasn&apos;t necessarily at all what the user sees.

I really don&apos;t understand why you can&apos;t admit that random behavior like that by a very fundamental core library routine is actually a real problem. 

And there really isn&apos;t any upside. The optimized routines up to 80 bytes are the same (in fact, my patch should speed them up by a few cycles), and anything bigger than that will not notice the extra couple of cycles to check for overlap.

So while I agree that it&apos;s a fix to the immediate problem to just say &quot;don&apos;t screw up for existing binaries&quot;, I do NOT understand why the glibc people then apparently think it&apos;s fine to be stupid for new binaries.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47332</commentid>
    <comment_count>11</comment_count>
    <who name="Felipe Contreras">felipe.contreras</who>
    <bug_when>2011-03-05 00:28:38 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #8)
&gt; &gt; &quot;Buggy&quot; code can be linked to the new memcpy@@GLIBC_2.14 by just recompiling,
&gt; &gt; no? That doesn&apos;t really solve anything.
&gt; 
&gt; It solves everything.  If you just relink without retesting you&apos;re an idiot and
&gt; acting irresponsible.

You cannot test every possible code-path.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47335</commentid>
    <comment_count>12</comment_count>
    <who name="Oliver Henshaw">oliver.henshaw</who>
    <bug_when>2011-03-05 13:28:28 +0000</bug_when>
    <thetext>The thread starting at http://lwn.net/Articles/414496/ may be instructive on how this can cause problems despite the good(-ish) intentions of the developer. In short, squashfs used memcpy with data that was known not to overlap but later changes invalidated this assumption.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47610</commentid>
    <comment_count>13</comment_count>
    <who name="Bruno Vasselle">bvasselle</who>
    <bug_when>2011-03-24 21:03:57 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #8)
&gt; &gt; &quot;Buggy&quot; code can be linked to the new memcpy@@GLIBC_2.14 by just recompiling,
&gt; &gt; no? That doesn&apos;t really solve anything.
&gt; 
&gt; It solves everything.  If you just relink without retesting you&apos;re an idiot and
&gt; acting irresponsible.

Nobody is interested in an optimization in lib C that would at best gain less than the simple fact of calling the function.

Everybody is interested in using the code that idiots may produce.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47612</commentid>
    <comment_count>14</comment_count>
      <attachid>5323</attachid>
    <who name="H.J. Lu">hjl.tools</who>
    <bug_when>2011-03-25 04:37:07 +0000</bug_when>
    <thetext>Created attachment 5323
A patch

This works for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47614</commentid>
    <comment_count>15</comment_count>
    <who name="Jakub Jelinek">jakub</who>
    <bug_when>2011-03-25 06:45:50 +0000</bug_when>
    <thetext>This is not correct:
1) glibc 2.13 has been released already, so new symbol versions must be GLIBC_2.14
2) you do it only on x86_64, therefore you should add it into sysdeps/x86_64/Versions (though, you will need to add GLIBC_2.14 to toplevel Versions.def too)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47633</commentid>
    <comment_count>16</comment_count>
    <who name="Felipe Contreras">felipe.contreras</who>
    <bug_when>2011-03-28 11:53:48 +0000</bug_when>
    <thetext>So we have two solutions:

1) The solution proposed by Linus Torvalds, attachment #5264

Advantages: everything works the same as before
Disadvantages: a few extra cycles in certain memcpy&apos;s

2) The solution proposed by Ulrich Drepper, attachment #5323

Advantages: old binaries keep working
Disadvantages: newly compiled code remains affected

Clearly 1) is the most sensible solution as the only advantage of 2) is a few cycles, and has drastic disadvantages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47658</commentid>
    <comment_count>17</comment_count>
    <who name="Felipe Contreras">felipe.contreras</who>
    <bug_when>2011-03-29 14:43:31 +0000</bug_when>
    <thetext>Actually, why not have both? I think this plan would fit everyone:

1) Apply Linus&apos; patch

Both to 2.13 and 2.14, this would not introduce any issues and would restore back the previous behavior, so applications would still work. As I mentioned before, the disadvantages are minimal.

2) Apply H.J. Lu&apos;s patch

This would go to 2.14, but not only to x86 but all architectures, and add an overlap check, and when triggered issue a crash.

This would allow old binaries to keep working on 2.14, but newly compiled ones would crash if they are doing something wrong. This would allow all the users of glibc to fix their code for the impending changes.

3) Remove overlap checks

On 2.15, after a transition period, the overlap checks can be removed, and thus save the few extra cycles.

This has all the advantages of all the proposals, and makes it easy to fix the applications that are using memcpy wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47667</commentid>
    <comment_count>18</comment_count>
    <who name="Bruno Vasselle">bvasselle</who>
    <bug_when>2011-03-29 22:27:52 +0000</bug_when>
    <thetext>(In reply to comment #17)
&gt; Actually, why not have both? I think this plan would fit everyone:

No, it does not. It certainly does not.

It is not only the problem of recompiling the existing code, it&apos;s also the problem of fixing it and re-qualifying it. This plan has a huge cost... and it&apos;s vain.

The contract C programmers have with C and the C library is clear: we accept a fair amount of inefficency, but we don&apos;t have to program in assembly nor care about the system&apos;s internals. How many people still use the C library when it comes to be important to gain an addition plus a comparison?

The problem we&apos;re facing just made this fact plain: there is no reason why memcpy should not be memmove.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47670</commentid>
    <comment_count>19</comment_count>
    <who name="Felipe Contreras">felipe.contreras</who>
    <bug_when>2011-03-30 05:14:25 +0000</bug_when>
    <thetext>(In reply to comment #18)
&gt; (In reply to comment #17)
&gt; &gt; Actually, why not have both? I think this plan would fit everyone:
&gt; 
&gt; No, it does not. It certainly does not.
&gt; 
&gt; It is not only the problem of recompiling the existing code, it&apos;s also the
&gt; problem of fixing it and re-qualifying it. This plan has a huge cost... and
&gt; it&apos;s vain.

I understand that, but it&apos;s better than the current alternative that Ulrich is more likely to merge, which is basically to do nothing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47671</commentid>
    <comment_count>20</comment_count>
      <attachid>5341</attachid>
    <who name="Felipe Contreras">felipe.contreras</who>
    <bug_when>2011-03-30 07:21:26 +0000</bug_when>
    <thetext>Created attachment 5341
Patch to check for overlaps

I&apos;m trying this patch to find out how many things in the system use overlapping memcpy, however, it doesn&apos;t seem to cause any crashes... Can anyone spot something wrong?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47696</commentid>
    <comment_count>21</comment_count>
    <who name="">shaforostoff</who>
    <bug_when>2011-03-31 08:36:56 +0000</bug_when>
    <thetext>i&apos;d like to vote for having memcpy and memmove identical.

(unless there are benchmarks that are showing that perf difference is high)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48080</commentid>
    <comment_count>22</comment_count>
    <who name="Ulrich Drepper">drepper.fsp</who>
    <bug_when>2011-04-01 23:41:31 +0000</bug_when>
    <thetext>HJ&apos;s patch which implements what I proposed is in git.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48083</commentid>
    <comment_count>23</comment_count>
    <who name="H.J. Lu">hjl.tools</who>
    <bug_when>2011-04-02 02:57:19 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt;
&gt; If anything, from a &quot;be nice&quot; standpoint, it would perhaps be good to have a
&gt; &quot;debug mode&quot;, that would actually _warn_ - or even assert - about overlapping
&gt; memcpy(). That obviously shouldn&apos;t be the default (since that only helps

You can use LD_AUDIT to do it today.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48187</commentid>
    <comment_count>24</comment_count>
    <who name="Bruno Vasselle">bvasselle</who>
    <bug_when>2011-04-10 15:39:30 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; The existence of code written by people who should never have been allowed to
&gt; touch a keyboard cannot be allowed to prevent a correct implementation.  If
&gt; there is a large bod of code out there we can work around the issue for that.
&gt; 
Don&apos;t you see it is just NOT a correct implementation?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48188</commentid>
    <comment_count>25</comment_count>
      <attachid>5660</attachid>
    <who name="Felipe Contreras">felipe.contreras</who>
    <bug_when>2011-04-10 15:49:59 +0000</bug_when>
    <thetext>Created attachment 5660
Patch to check for overlaps

Actually the code from Linus had a bug in the &apos;cmp&apos; checks, here&apos;s the updated version.

I just started to run my Fedora system with this, and I already see crashes in pulseaudio and readahead-collector. I will continue running this for a bit, but I think it&apos;s pretty clear that we should not assume that all applications in a typical system have been using memcpy properly.

So, again, I think we need at least a transition period so that people can detect and fix the issues.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48514</commentid>
    <comment_count>26</comment_count>
    <who name="Vincent Lefèvre">vincent-srcware</who>
    <bug_when>2011-05-04 13:29:06 +0000</bug_when>
    <thetext>(In reply to comment #18)
&gt; The problem we&apos;re facing just made this fact plain: there is no reason why
&gt; memcpy should not be memmove.

If these two functions should behave in the same way, then why not all programmers use memmove (which has fewer requirements)?

If memcpy is called while the objects overlap, the bug is not necessarily that memmove should have been used instead. The cause may be an incorrect size. So, with this point of view, it should be safer to abort than letting the program behave in an uncontrolled way.

(In reply to comment #25)
&gt; So, again, I think we need at least a transition period so that people can
&gt; detect and fix the issues.

But it may be difficult to detect the issues. For instance, zsh was affected by a similar problem (now fixed in CVS only) with the optimized strcpy, but to detect the problem, it involves keyboard input:

  http://www.zsh.org/mla/workers/2011/msg00533.html
  http://www.zsh.org/mla/workers/2011/msg00544.html

For strcpy, this is even worse, as there is no strmove function, so that either programmers have to write non-portable code or they have to reimplement a naive version of strcpy or find some other workaround, such as memmove + strlen:

  http://www.zsh.org/mla/workers/2011/msg00542.html

I suppose that if this has been done for memcpy, then strcpy should also be patched in some way...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48515</commentid>
    <comment_count>27</comment_count>
    <who name="Felipe Contreras">felipe.contreras</who>
    <bug_when>2011-05-04 15:01:05 +0000</bug_when>
    <thetext>(In reply to comment #26)
&gt; (In reply to comment #25)
&gt; &gt; So, again, I think we need at least a transition period so that people can
&gt; &gt; detect and fix the issues.
&gt; 
&gt; But it may be difficult to detect the issues. For instance, zsh was affected by
&gt; a similar problem (now fixed in CVS only) with the optimized strcpy, but to
&gt; detect the problem, it involves keyboard input:

Yes, it is difficult, that&apos;s why I think it should be enabled globally.

BTW. Here&apos;s another issue on zsh I found while enabling the memcpy checks:
https://bugzilla.redhat.com/show_bug.cgi?id=698439</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>5264</attachid>
            <date>2011-02-25 02:26:00 +0000</date>
            <delta_ts>2011-03-25 04:37:07 +0000</delta_ts>
            <desc>Example patch to give the basic idea</desc>
            <filename>patch.diff</filename>
            <type>text/plain</type>
            <size>3870</size>
            <attacher name="Linus Torvalds">torvalds</attacher>
            
              <data encoding="base64">IHN5c2RlcHMveDg2XzY0L211bHRpYXJjaC9tZW1jcHktc3NzZTMuUyAgfCAgIDQ4ICsrKysrKysr
KysrKysrKy0tLS0tLS0tLS0tLS0tLQogc3lzZGVwcy94ODZfNjQvbXVsdGlhcmNoL21lbW1vdmUt
c3NzZTMuUyB8ICAgIDggKystLQogMiBmaWxlcyBjaGFuZ2VkLCAyOCBpbnNlcnRpb25zKCspLCAy
OCBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9zeXNkZXBzL3g4Nl82NC9tdWx0aWFyY2gvbWVt
Y3B5LXNzc2UzLlMgYi9zeXNkZXBzL3g4Nl82NC9tdWx0aWFyY2gvbWVtY3B5LXNzc2UzLlMKaW5k
ZXggOWE4NzhkMy4uNzQ3ZDJlZiAxMDA2NDQKLS0tIGEvc3lzZGVwcy94ODZfNjQvbXVsdGlhcmNo
L21lbWNweS1zc3NlMy5TCisrKyBiL3N5c2RlcHMveDg2XzY0L211bHRpYXJjaC9tZW1jcHktc3Nz
ZTMuU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5c2RlcHMveDg2XzY0L211bHRpYXJjaC9tZW1t
b3ZlLXNzc2UzLlMKQEAgLTEsNCArMSw0IEBACi0jZGVmaW5lIFVTRV9BU19NRU1NT1ZFCi0jZGVm
aW5lIE1FTUNQWQkJX19tZW1tb3ZlX3Nzc2UzCi0jZGVmaW5lIE1FTUNQWV9DSEsJX19tZW1tb3Zl
X2Noa19zc3NlMwotI2luY2x1ZGUgIm1lbWNweS1zc3NlMy5TIgorI2luY2x1ZGUgPHN5c2RlcC5o
PgorCitzdHJvbmdfYWxpYXMoX19tZW1tb3ZlX3Nzc2UzLCBfX21lbWNweV9zc3NlMyk7CitzdHJv
bmdfYWxpYXMoX19tZW1tb3ZlX2Noa19zc3NlMywgX19tZW1jcHlfY2hrX3Nzc2UzKTsK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>5323</attachid>
            <date>2011-03-25 04:37:00 +0000</date>
            <delta_ts>2011-03-25 04:37:07 +0000</delta_ts>
            <desc>A patch</desc>
            <filename>libc-pr12518-1.patch</filename>
            <type>text/plain</type>
            <size>2282</size>
            <attacher name="H.J. Lu">hjl.tools</attacher>
            
              <data encoding="base64">MjAxMS0wMy0yNCAgSC5KLiBMdSAgPGhvbmdqaXUubHVAaW50ZWwuY29tPgoKCVBSIGxpYmMvMTI1
MTgKCSogc3RyaW5nL1ZlcnNpb25zOiBBZGQgbWVtY3B5IHRvIEdMSUJDXzIuMTMuCgoJKiBzeXNk
ZXBzL3g4Nl82NC9tdWx0aWFyY2gvbWVtY3B5LlM6IEluY2x1ZGUgPHNobGliLWNvbXBhdC5oPi4K
CShtZW1jcHkpOiBSZW5hbWVkIHRvIC4uLgoJKF9fbmV3X21lbWNweSk6IFRoaXMuCgkobWVtY3B5
KTogUHJvdmlkZSBHTElCQ18yXzEzIG1lbWNweS4KCgkqIHN5c2RlcHMveDg2XzY0L211bHRpYXJj
aC9tZW1tb3ZlLmM6IEluY2x1ZGUgPHNobGliLW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mg+CiAKICNpZm5kZWYgTk9UX0lOX2xpYmMKKyNpbmNsdWRl
IDxzaGxpYi1jb21wYXQuaD4KICNpbmNsdWRlICJpbml0LWFyY2guaCIKIAogI2RlZmluZSBNRU1N
T1ZFIF9fbWVtbW92ZV9zc2UyCkBAIC00Miw0ICs0Myw4IEBAIGxpYmNfaWZ1bmMgKG1lbW1vdmUs
CiAJICAgID8gKEhBU19GQVNUX0NPUFlfQkFDS1dBUkQKIAkgICAgICAgPyBfX21lbW1vdmVfc3Nz
ZTNfYmFjayA6IF9fbWVtbW92ZV9zc3NlMykKIAkgICAgOiBfX21lbW1vdmVfc3NlMik7CisKKyNp
ZiBTSExJQl9DT01QQVQgKGxpYmMsIEdMSUJDXzJfMl81LCBHTElCQ18yXzEzKQorY29tcGF0X3N5
bWJvbCAobGliYywgbWVtbW92ZSwgbWVtY3B5LCBHTElCQ18yXzJfNSk7CisjZW5kaWYKICNlbmRp
Zgo=
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>5341</attachid>
            <date>2011-03-30 07:21:00 +0000</date>
            <delta_ts>2011-04-10 15:49:59 +0000</delta_ts>
            <desc>Patch to check for overlaps</desc>
            <filename>glibc-memcpy-ssse3.patch</filename>
            <type>text/plain</type>
            <size>1226</size>
            <attacher name="Felipe Contreras">felipe.contreras</attacher>
            
              <data encoding="base64">LS0tIGdsaWJjLTIuMTMvc3lzZGVwcy94ODZfNjQvbXVsdGlhcmNoL21lbWNweS1zc3NlMy5TCTIw
MTEtMDEtMTggMDY6MzQ6MDcuMDAwMDAwMDAwICswMjAwCisrKyBnbGliYy0yLjEzL3N5c2RlcHMv
eDg2XzY0L211bHRpYXJjaC9tZW1jcHktc3NzZTMuUwkyMDExLTAzLTI5IDIwOjA2OjExLjQ0OTA5
MDEzNiArMDMwMApAQCAtODQsNiArODQsMTcgQEAgTChjb3B5X2ZvcndhcmQpOgogCUFMSUdOICg0
KQogTCg4MGJ5dGVzb3J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HBpbmcgKi8KKwljbXAJJXJzaSwlcjExCQkvKiBzb3VyY2Ugc3RhcnQgPj0gZGVz
dGluYXRpb24gZW5kICovCisJamFlCUwobm9ub3ZlcmxhcCkJCS8qICAtPiBub25vdmVybGFwcGlu
ZyAqLworCW1vdmIJJDAsIDAKKwlMKG5vbm92ZXJsYXApOgorI2VuZGlmCiAKICNpZm5kZWYgVVNF
X0FTX01FTU1PVkUKIAljbXAJJWRpbCwgJXNpbAo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>5660</attachid>
            <date>2011-04-10 15:49:00 +0000</date>
            <delta_ts>2011-04-10 15:49:59 +0000</delta_ts>
            <desc>Patch to check for overlaps</desc>
            <filename>0001-memcpy-overlap-test.patch</filename>
            <type>text/plain</type>
            <size>1771</size>
            <attacher name="Felipe Contreras">felipe.contreras</attacher>
            
              <data encoding="base64">RnJvbSAzZDE4OTVlMTcxMzZiNGE1NjVmZmVmZDM3YzAyYTE1OTY2NDAxN2VkIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBGZWxpcGUgQ29udHJlcmFzIDxmZWxpcGUuY29udHJlcmFzQGdt
YWlsLmNvbT4KRGF0ZTogU3VuLCAxMCBBcHIgMjAxMSAxNzoyOTo0NCArMDMwMApTdWJqZWN0OiBb
UEFUQ0hdIG1lbWNweSBvdmVybGFwIHRlc3QKClNpZ25lZC1vZmYtYnk6IEZlbGlwZSBDb250cmVy
YXMgPGZlbGlwZS5jb250cmVyYXNAZ21haWwuY29tPgotLS0KIHN5c2RlcHMveDg2XzY0L211bHRp
YXJjaC9tZW1jcHktc3NzZTMtYmFjay5TIHwgICAxMSArKysrKysrKysrKwogc3lzZGVwcy94ODZf
NjQvbXVsdGlhcmNoL21lbWNweS1zc3NlMy5TICAgICAgfCAgIDExICsrKysrKysrKysrCiAyIGZp
bGVzIGNoYW5nZWQsIDIyIGluc2VydGlvbnMoKyksIDAgZGVsZXRpb25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