New: EV6 version of csum_ipv6_magic causing unaligned access errors
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]/
Quoted 52 lines · On Fri, 15 Jun 2007 13:47:33 -0700 (PDT) [email protected] wrote:
http://bugzilla.kernel.org/show_bug.cgi?id=8635
Summary: EV6 version of csum_ipv6_magic causing unaligned access errors Product: Networking Version: 2.5 KernelVersion: 2.6.18 & 2.6.22-rc4-mm2 Platform: All OS/Version: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: IPV6 AssignedTo: [email protected] ReportedBy: [email protected]Most recent kernel where this bug did not occur: Unknown (Sorry!)
Distribution: Debian/testing (lenny)
Hardware Environment: API Networks CS20 (2 x 833Mhz 21264B Alpha CPUs) Software Environment:
Linux sky 2.6.22-rc4-mm2 #1 SMP Tue Jun 12 23:00:10 CDT 2007 alpha GNU/LinuxGnu C 4.2.1 Gnu make 3.81 binutils Binutils util-linux 2.12r mount 2.12r module-init-tools 3.3-pre11 e2fsprogs 1.40-WIP xfsprogs 2.8.18 Linux C Library > libc.2.5 Dynamic linker (ldd) 2.5 Procps 3.2.7 Net-tools 1.60 Console-tools 0.2.3 Sh-utils 5.97 udev 105 Modules Loaded nfnetlink ip_tables x_tables adm9240 hwmon_vid loop
i2c_ali1535i2c_ali15x3i2c_coreide_cdcdrom genericsd_modalim15x3 sym53c8xxide_coree100scsi_transport_spimiiscsi_modProblem Description:
jailbird@sky:~$ grep 'kernel unaligned' /proc/cpuinfo kernel unaligned acc : 34 (pc=fffffc00004bbf58,va=fffffc000394811c)
fffffc00004bbdb0T__copy_userfffffc00004bbf50Tcsum_ipv6_magicfffffc00004bc020T memchr
Quoted 6 lines
Seems to be associated w/
arch/alpha/lib/ev6-csum_ipv6_magic.SSteps to reproduce:
Use IPv6 on an Alpha EV6 or higher CPU.
I assume that networking passed the arch an unaligned pointer and the arch didn't expect that.
I further assume that this is an alpha shortcoming, and that this behaviour of networking is expected?
Quoted 10 lines · Andrew Morton
Quoted 10 lines
kernel unaligned acc : 34 (pc=fffffc00004bbf58,va=fffffc000394811c)
fffffc00004bbdb0T__copy_userfffffc00004bbf50Tcsum_ipv6_magicfffffc00004bc020T memchrSeems to be associated w/
arch/alpha/lib/ev6-csum_ipv6_magic.SSteps to reproduce:
Quoted 8 lines
Quoted 2 lines
Use IPv6 on an Alpha EV6 or higher CPU.
I assume that networking passed the arch an unaligned pointer and the arch didn't expect that.
I further assume that this is an alpha shortcoming, and that this behaviour of networking is expected?
Indeed, it's alpha bug. The struct in6_addr passed to this routine has 4 byte alignment, so we cannot use normal 64 bit loads.
Hopefully I'll have a fix shortly. BTW, it's not only ev6, ev5 variant is broken as well.
Ivan.