RE: [PATCH] Fix unaligned handler for floating point instructions with base update

From: Luck, Tony <>
Date: 2008-01-15 10:34:05
> This sounds like a case of the kernel corrupting user data.  Are you
> pushing this into the distro kernels?  Do you have bugzilla numbers?

Yes, the kernel is corrupting user data.  I'm not aware of bugzilla
entries for this at the distros (I only became aware of the issue on
Thursday afternoon).  I agree that it needs to go to the distros.
My bugzilla searching skills are bad (I usually can't find bugs that
I know are in there, for which I have all the right keywords :-( )
So if anyone knows of existing bugs that might be caused by this
problem ... let me know.  Otherwise I can open new entries when
I send this patch to Linus.

I'm a little puzzled that this hasn't been found before.  The code
in unaligned.c has been essentially the same since the dawn of ia64
time ... very early 2.4.x releases just used a "? :" rather than
an "if ... else", so the patch would need some massaging before
it could be applied to 2.4.3 or earlier.  I'm assuming that we haven't
hit this before because either (or both) of these are true:
1) Most FP access to memory is aligned.
2) Compilers are not generating the "ldf fX = [rY], off" (and other
   mis-decoded variations) very often.

Meanwhile ... if you could stare at the code and pages 3:302 - 3:306
of the SDM for a while to check my patch for stupidity, that would
be extremely helpful.

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Tue Jan 15 10:38:37 2008

This archive was generated by hypermail 2.1.8 : 2008-01-15 10:39:02 EST