Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42682 - iptables target ULOG doesn't work on sparc
Summary: iptables target ULOG doesn't work on sparc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc All
: High normal
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-23 18:15 UTC by Jason Wever (RETIRED)
Modified: 2004-08-31 17:52 UTC (History)
2 users (show)

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


Attachments
patch to allow -j ULOG rules to not return invalid argument (sparc64_ulog_fix.patch,605 bytes, patch)
2004-03-11 16:12 UTC, Jason Wever (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Wever (RETIRED) gentoo-dev 2004-02-23 18:15:46 UTC
Any attempt to use ULOG as a target in an iptables command (i.e. -j ULOG) results in the following error message;

iptables: Invalid argument

Kernel module support for ULOG is enabled.
Comment 1 Christian Birchinger (RETIRED) gentoo-dev 2004-02-24 02:49:22 UTC
Looks a bit like the limit problem we had on sparc64.
The netfilter people were able to give me a patch back then.
Maybe reporting the bug to that ML would help. Or some C guy
could check the current sparc64_limit_fix.patch.bz2 fix and
find out if the ULOG problem is a similar problem.

(The fact that the limit patch is still needed after a year
shows that sparc issues don't have high priority on netfilter)
Comment 2 Jason Wever (RETIRED) gentoo-dev 2004-03-02 17:47:10 UTC
Yeah, seems to be a sparc64 thing.  sparc works ok with -j ULOG, though ulogd bus errors as soon as it gets data.
Comment 3 Jason Wever (RETIRED) gentoo-dev 2004-03-11 16:11:31 UTC
Based on this post to the ulogd ml <http://lists.gnumonks.org/pipermail/ulogd/2003-December/000458.html>, I created a patch for this fix.  However, the kernel does panic with the following message after a rule with -j ULOG is applied;

Unable to handle kernel NULL pointer dereference
tsk->{mm,active_mm}->context = 00000000000007b6
tsk->{mm,active_mm}->pgd = fffff8003f4e9000
Kernel panic: Aiee, killing interrupt handler!
In interrupt handler - not syncing

I posted to the ulogd ml with this info, waiting to see if i get a response.
Comment 4 Jason Wever (RETIRED) gentoo-dev 2004-03-11 16:12:14 UTC
Created attachment 27222 [details, diff]
patch to allow -j ULOG rules to not return invalid argument
Comment 5 Jason Wever (RETIRED) gentoo-dev 2004-08-31 17:52:55 UTC
iptables support for ULOG was fixed in 1.2.11
ulogd still has issues, but that is for another bug.