Bug 6602 - ebtables 64 bit kernel + 32 bit userland alignment error - fix included
Summary: ebtables 64 bit kernel + 32 bit userland alignment error - fix included
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2013.08
Hardware: Other Linux
: P5 critical
Target Milestone: ---
Assignee: Gustavo Zacarias
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-24 13:08 UTC by Cassiano Martin
Modified: 2013-10-30 22:00 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cassiano Martin 2013-10-24 13:08:42 UTC
ebtables fails add or list any kernel rules. it prints the following message:

"The kernel doesn't support the ebtables filter table."


I've had to add the following cflags to the build process: -DEBT_MIN_ALIGN=8 -DKERNEL_64_USERSPACE_32

This fixes when building a 32 bit userland and a 64 bit kernel on mips64 platform. 

Thanks
Comment 1 Gustavo Zacarias 2013-10-24 17:18:31 UTC
Can you test if -DKERNEL64_USERSPACE_32 is enough?
-DEBT_MIN_ALIGN=8 is used/meant for sparc64 which doesn't handle unaligned memory accesses.
Regards.
Comment 2 Cassiano Martin 2013-10-25 12:28:31 UTC
Yes, you are right. -DKERNEL_64_USERSPACE_32 is enough. Tested on my board and it worked.

Thanks
Comment 3 Thomas Petazzoni 2013-10-30 22:00:40 UTC
Fix applied to for-peter-2013.11.