Re: alignment faults in 3.6
flat view
From: Eric Dumazet <hidden>
Date: 2012-10-12 12:08:12
Also in:
linux-arm-kernel
On Fri, 2012-10-12 at 12:44 +0100, Russell King - ARM Linux wrote:
- You were demanding that the ipv4 header structure should be packed. I said that wasn't going to happen because the networking people wouldn't allow it, and it seems that's been proven correct. - You were demanding that the ipv4 code used the unaligned accessors. I said that networking people wouldn't allow it either, and that's also been proven correct. Both these points have been proven correct because Eric has said that the core networking code is _not_ going to be changed to suit this. What Eric _has_ said is that networking people consider packets supplied to the networking layer where the IPv4 header is not aligned on architectures where misaligned accesses are a problem to be a bug in the network driver, not the network code, and proposed a solution. That's entirely different from all your claims that the core networking code needs fixing to avoid these misaligned accesses.
It seems we agree then, but your words were a bit misleading (at least for me) So yes, we built network stack with the prereq that IP headers are aligned, but unfortunately many developers use x86 which doesnt care, so its possible some bugs are added. But its not by intent, only by accident. Thanks