Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 42010

Summary: Kernel unaligned access in iptables on Alpha processor with alpha-sources kernel
Product: Gentoo Linux Reporter: Bert Smith <bert>
Component: [OLD] Core systemAssignee: Alpha Porters <alpha>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: Alpha   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 371525    

Description Bert Smith 2004-02-18 01:25:53 UTC
The alpha-sources kernel running on Miata (untested on other hardware) causes unaligned access in iptables whenever a packet is recieved, the problem lies in net/ipv4/netfilter/ip_tables.c line 262:
      static const char nulldevname[IFNAMSIZ] = { 0 };
Forcing nulldevname to be aligned along an 8 byte boundary corrects this problem with the following change:
      static const char nulldevname[IFNAMSIZ] __attribute__ ((aligned (8))) = { 0 };

Other people don`t seem to have this problem, so perhaps it is dependant on kernel configuration and/or hardware

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Thomas Cort (RETIRED) gentoo-dev 2005-10-27 12:30:07 UTC
The alpha-sources package is no longer in portage and there have been many
kernel revisions since February 2004. I'm not sure in which kernel revision this
was fixed, but I when looked at version 2.6.5 the bug appears to be fixed. The
bug also appears to be fixed in 2.4.28.

http://lxr.linux.no/source/net/ipv4/netfilter/ip_tables.c?v=2.4.28#L259
http://glide.stanford.edu/lxr/source/net/ipv4/netfilter/ip_tables.c?v=linux-2.6.5#L267

Maybe this bug should be closed?
Comment 2 Jose Luis Rivero (yoswink) (RETIRED) gentoo-dev 2005-10-27 15:12:25 UTC
Agree with Thomas. I suppose the problem is solved.
Please, reopen if need something more.

Thanks Thomas!