netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unaligned accesses in AVR32 kernel
@ 2010-11-03 15:32 Ralf Baechle
  0 siblings, 0 replies; only message in thread
From: Ralf Baechle @ 2010-11-03 15:32 UTC (permalink / raw)
  To: Hans-Christian Egtvedt; +Cc: linux-kernel, netdev, linux-hams, Simon Eatough

Hans-Christian,

I received a bug report for some networking code from which it seems as
if the AVR32 kernel doesn't fixup exceptions caused by missaligned kernel
accesses either in software or hardware.  This is a problem as there in
the networking stack there is no general guarantee that all multi-byte
header fields such as ARP or IP headers will aligned.  Networking drivers
are supposed to make a decent attempt to place packets at a suitable
address but there is no guarantee.  The mkiss.c driver gets that wrong
which I'm fixing but fundamentally you want to add automated fixing of
unaligned exception to the AVR32 kernel.  See arch/mips/kernel/unaligned.c.

Cheers,

  Ralf

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-03 15:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-03 15:32 Unaligned accesses in AVR32 kernel Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).