[kernel] bug#109: patch from maintainer
None
X-PA-RISC Linux-PR-Message: report 109
X-PA-RISC Linux-PR-Package: kernel
X-Loop: daniel_frazier@hp.com
Received: via spool by 109-bugs@bugs.parisc-linux.org id=B109.98783722116730
(code B ref 109); Sat, 21 Apr 2001 07:18:02 GMT
Message-Id: <200104210707.BAA01361@puffin.external.hp.com>
To: 109@bugs.parisc-linux.org
Date: Sat, 21 Apr 2001 01:07:25 -0600
From: Grant Grundler <grundler@puffin.external.hp.com>
I've built a new iptables binary and the a500 still crashes.
Does the Makefile assume the binary produced will be 64-bit?
Maybe I botched and ran the wrong iptables binary...will try
again later.
/etc/init.d/firewall: line 3: 5969 Segmentation fault iptables -A $*
iptables[5969]: Protection Id Trap 27
YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00001000000011000000000000001111
r0-3 0000000000000000 0000000000000000 00000000102a316c 000000000008da58
r4-7 0000000010373600 0000000000000070 000000000008d9e8 000000000008d000
r8-11 0000000010373600 0000000000000a58 0000000010373600 000000000008f000
r12-15 0000000000000000 00000000ffffffff 00000000000aee70 0000000000000000
r16-19 0000000000000000 0000000000007514 0000000000005000 000000000000003b
r20-23 0000000000000033 0000000000000032 0000000000000001 00000000000e8000
r24-27 00000000000000ff 000000000008f001 0001798000014a3c 0000000010373600
r28-31 000000000000001d 00000000565b4e30 00000000565b5180 0000000000000000
sr0-3 0000000000000180 0000000000000180 0000000000000000 0000000000000180
sr4-7 0000000000000000 0000000000000000 0000000000000000 0000000000000000
IASQ: 0000000000000000 0000000000000000 IAOQ: 00000000102c43a8 00000000102c43a0
IIR: 0f415222 ISR: 0000000000017980 IOR: 0000000000014a3c
ORIG_R28: 0000000010150e14
------- Forwarded Message
From: Rusty Russell <rusty@rustcorp.com.au>
To: grundler@puffin.external.hp.com
Subject: [PATCH] HPPA fix for iptables
Date: Sat, 21 Apr 2001 14:38:42 +1000
This should work against 1.2.1a. Yeah, it's a hack...
Index: Makefile
===================================================================
RCS file: /data/cvs/netfilter/userspace/Makefile,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
- --- Makefile 2001/04/12 16:06:53 1.35
+++ Makefile 2001/04/21 04:25:09 1.36
@@ -48,6 +48,12 @@
CFLAGS+=-DIPT_MIN_ALIGN=8 -DKERNEL_64_USERSPACE_32
endif
+# HPPA hack
+ifeq ($(shell uname -m),parisc64)
+# The kernel is 64-bit, even though userspace is 32.
+CFLAGS+=-DIPT_MIN_ALIGN=8 -DKERNEL_64_USERSPACE_32
+endif
+
ifndef IPT_LIBDIR
IPT_LIBDIR:=$(LIBDIR)/iptables
endif
- --
Premature optmztion is rt of all evl. --DK
------- End of Forwarded Message