Re: PATCH : ppp + big-endian = kernel crash

From: Andrew Morton
Date: Sun May 29 2005 - 21:54:55 EST


"David S. Miller" <davem@xxxxxxxxxxxxx> wrote:
>
> From: "Philippe De Muyter" <phdm@xxxxxxxxx>
> Date: Sun, 29 May 2005 23:38:53 +0200 (CEST)
>
> > Do you mean that ip_rcv may not assume that packets are properly aligned ?
> >
> > And some non-mmu m68k (Coldfires) do not provide enough information in
> > exception frames to restart instructions on an address error in the general
> > case.
>
> So many variants of tunneling and protocol encapsulation can result in
> unaligned packet headers, and as a result platforms really must
> provide proper unaligned memory access handling in kernel mode in
> order to use the networking fully.

As Philippe mentioned, old 68k's simply cannot do this.

> All these patches to PPP and friends are merely papering over the
> larger problem.

It's not a thing we want to do in the general case, sure. But it's
reasonable to identify those bits of net code which the nommu people care
about and look to see if there's some sane workaround to get them going.

Otherwise, things like PPP will simply unavailable to some architectures...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/