From: Toshiro Viera <tviera@arnaldocastro.com.uy>
To: lartc@vger.kernel.org
Subject: [LARTC] kernel panic when using imq/htb
Date: Thu, 28 Aug 2003 18:56:36 +0000 [thread overview]
Message-ID: <marc-lartc-106209701218115@msgid-missing> (raw)
I'm trying to configure a linux server that shapes both incoming and
outgoing traffic. The problem is that I get a kernel panic ("Unable to
handle kernel NULL pointer dereference at virtual address 0000003c...")
everytime I load the traffic shaping rules and then try to edit a file
with vim (!!??) via a remote connection using ssh.
I configured the server (RedHat 9) as follows:
1. Downloaded from www.kernel.org the 2.4.21 kernel sources and from
www.netfilter.org the iptables 1.2.8 sources
2. Patched both kernel and iptables sources with IMQ patches, build and
install both of them
3. Defined the following script:
#!/bin/sh
modprobe imq numdevs=1
tc qdisc add dev imq0 root handle 1: htb default 20 r2q 1
tc class add dev imq0 parent 1: classid 1:1 htb rate 256kbit ceil
256kbit
tc class add dev imq0 parent 1:1 classid 1:10 htb rate 25kbit ceil
256kbit
tc class add dev imq0 parent 1:1 classid 1:20 htb rate 231kbit ceil
256kbit
tc filter add dev imq0 protocol ip parent 1:0 prio 1 u32 match ip src
10.5.1.150 flowid 1:10
tc filter add dev imq0 protocol ip parent 1:0 prio 2 u32 match ip dst
10.5.1.150 flowid 1:10
iptables -t mangle -A POSTROUTING -o eth0 -j IMQ --todev 0
iptables -t mangle -A POSTROUTING -o eth1 -j IMQ --todev 0
iptables -t mangle -A PREROUTING -i eth0 -j IMQ --todev 0
ip link set imq0 up
4. The server's eth0 ip address is 10.5.220.220/16; I logon on to it
(using ssh) from 10.5.1.150, then I try to edit (using vim) the script
described in 3) and I get the kernel panic.
Anybody know what could be the cause of this strange behaviour? Are the
rules defined above wrong?
Any hint/suggestion/etc will be welcome :)
Best wishes,
Toshiro.
--
Toshiro Viera <tviera@arnaldocastro.com.uy>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2003-08-28 18:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-28 18:56 Toshiro Viera [this message]
2003-08-28 23:39 ` [LARTC] kernel panic when using imq/htb Damion de Soto
2003-09-01 13:43 ` Toshiro Viera
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-106209701218115@msgid-missing \
--to=tviera@arnaldocastro.com.uy \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.