lkml.org 
[lkml]   [1999]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject2.2.9 Kernel Panic with Traffic Shaper
Dearest Kernel Hackers,

We discovered the following bug when bringing up a new Linux router
today.

We're running a stock Debian potato dist with Traffic Shaper installed
to choke off outbound traffic, using shaper-0.15 (latest). A minor
config-file error in our /etc/init.d/network script produced a nasty
kernel panic (kernel: 2.2.9 -- latest stable).

Here's how we produed the kernel panic: (stuff from our network script)

1. ifconfig eth0 [ipaddr0] netmak [mask0] broadcast [bcast0]
2. route add default gw [gw] metric 1
3. shapecfg attach shaper0 eth1
4. shapecfg speed shaper0 [speed]
5. ifconfig shaper0 [ipaddr1] netmak [mask1] broadcast [bcast1]
6. route add -net [network0] netmask [mask0] dev shaper0

Everything works fine so far, but as soon as we typed "route" or tried
to send packets over the interface, it panicked, coughed, bled and
died.

Replacing step #6 with:

if [ -e /proc/net/ip_input ]; then
route add -net [network1] netmask [mask1] dev shaper0
fi

avoided the problem. While it was a stupid config error on our part,
it should not be bringing down the stable kernel (which is supposed to
be bulletproof... :)

Note: We are not currently subscribed to the list, so if anyone would
like to send us a reply please use one (or both) of the email
addresses at the end of this post.

Warmest regards,

Mark & Erik

markw@enol.com
andersee@debian.org

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:1.018 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site