Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42010 - Kernel unaligned access in iptables on Alpha processor with alpha-sources kernel
Summary: Kernel unaligned access in iptables on Alpha processor with alpha-sources kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: Alpha Linux
: High normal (vote)
Assignee: Alpha Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: unaligned-access
  Show dependency tree
 
Reported: 2004-02-18 01:25 UTC by Bert Smith
Modified: 2023-05-08 17:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!