Skip to contentSkip to conversation

documented Oops running big-endian reiserfs on parisc architecture

parisc-linux Andi Kleen 5 participants 6 messages Sep 3, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20010903002514.X5126@parcelfarce.linux.theplanet.co.uk.suse.lists.linux.kernel

Andi Kleen

author
#1 lore raw
Quoted 10 lines · Alan Cox
Quoted 5 lines
Quoted 2 lines

Is it impossible to handle unaligned access traps properly on parisc? If so, well you have some problems...

No, we just haven't bothered to implement it yet. Not many people use IPX these days.

You also need unaligned trap fixups for

AX.25, NetROM, LAPB, X.25, Appletalk, PPP, Anything over 802.2LLC, Linus NFS code for some NFS mount options (although not the -ac NFS code)

And also everybody connected to the internet needs them, because you can create arbitarily unaligned TCP/UDP/ICMP headers using IP option byte sized NOPs.

-Andi

#2 lore raw

From: Andi Kleen <[email protected]>
Date: 03 Sep 2001 09:29:12 +0200

And also everybody connected to the internet needs them, because you can create arbitarily unaligned TCP/UDP/ICMP headers using IP option byte sized NOPs.

IP header length is measured in octets, so how is this possible? :-)

Later,
David S. Miller
[email protected]

#3 lore raw
Quoted 2 lines · David S. Miller

IP header length is measured in octets, so how is this possible? :-)

1 octet == 8 bits in RFC-speak. "Byte" is the name given to character units. There were machines around with non-8-bit bytes. AFAIR, DEC PDP-10 had the options of 6, 7, or 8 bits/byte in 36 bit words. Purely historical now, since (AFAIK) everybody has agreed with IBM (S/360?) that 1 byte == 8 bits. As Brian Reid (IIRC) used to say: "It is spelled 'o-c-t-e-t' and pronounced 'byte'"

Signature · 2 lines
Horst von Brand                             [email protected]
Casilla 9G, Vin~a del Mar, Chile                               +56 32 672616
author
#4 lore raw
In reply to a message not in the archive
Quoted 9 lines · David S. Miller

From: Andi Kleen <[email protected]>
Date: 03 Sep 2001 09:29:12 +0200

And also everybody connected to the internet needs them, because you can create arbitarily unaligned TCP/UDP/ICMP headers using IP option byte sized NOPs.

IP header length is measured in octets, so how is this possible? :-)

Sorry that came out wrong. You can in theory generate unaligned IP options this way, but the kernel handles this correctly using memcpy. What it doesn't handle is unaligned TCP options (e.g. timestamps); which you can create using TCP option byte fillers.

Also the 4 byte alignment of the header doesn't help much when the driver didn't cooperate.

-Andi

#5 lore raw
In reply to a message not in the archive

Ok, so the sum of this is that Jeff's patches work on the platforms he wrote them for, and we need one more fix for PA-RISC.

So, we can reasonably send Jeff's patches to Linus, and test and then put the PA-RISC patch into the AC tree, any disagreement?

Hans

#6 lore raw
In reply to a message not in the archive
Quoted 5 lines · Hans Reiser

Ok, so the sum of this is that Jeff's patches work on the platforms he wrote them for, and we need one more fix for PA-RISC.

So, we can reasonably send Jeff's patches to Linus, and test and then put the PA-RISC patch into the AC tree, any disagreement?

If you don't align on sparc, alpha, et al, then it will be slower than it could be; don't you want to fix that first?

Signature · 1 line
Revolutions do not require corporate support.