Re: Memory corruption due to word sharing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: matz@xxxxxxx
- Subject: Re: Memory corruption due to word sharing
- From: David Miller <davem@xxxxxxxxxxxxx>
- Date: Wed, 01 Feb 2012 13:09:05 -0500 (EST)
- Cc: jkosina@xxxxxxx, torvalds@xxxxxxxxxxxxxxxxxxxx, walters@xxxxxxxxxx, jack@xxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, dsterba@xxxxxxx, ptesarik@xxxxxxx, rguenther@xxxxxxx, gcc@xxxxxxxxxxx
- In-reply-to: <Pine.LNX.4.64.1202011818570.25409@wotan.suse.de>
- List-id: <linux-ia64.vger.kernel.org>
- References: <CA+55aFxmdskUXX1iBaPx7rUGD95UqNJxhe1BLeVtZjqHjBpsPA@mail.gmail.com> <alpine.LRH.2.00.1202011808240.22725@twin.jikos.cz> <Pine.LNX.4.64.1202011818570.25409@wotan.suse.de>
From: Michael Matz <matz@xxxxxxx>
Date: Wed, 1 Feb 2012 18:41:05 +0100 (CET)
> One problem is that it's not a new problem, GCC emitted similar code since
> about forever, and still they turned up only now (well, probably because
> ia64 is dead, but sparc64 should have similar problems).
Indeed, on sparc64 it does do the silly 64-bit access too:
wrong:
ldx [%o0+8], %g2
sethi %hi(2147483648), %g1
or %g2, %g1, %g1
jmp %o7+8
stx %g1, [%o0+8]
Personally I've avoided C bitfields like the plague in any code I've
written.
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]