Re: Kernel panic when setting up queues via IPFW

From: Max Laier <max_at_love2party.net>
Date: Wed, 3 Mar 2004 01:58:06 +0100
On Tuesday 02 March 2004 23:33, Simon Coggins wrote:
> Hi,
>
> I've just started playing with queues and pipes and I created the
> config attached. The problem is when ever I reconfigure queue 6 (I was
> doing my numbering wrong to start with hence i found it) the kernel
> panics. I can reproduce it everytime on my machine.

it was reproducible and attached patch fixed it for me. There were some 
missing unlocks on the dummynet mutex for error cases. Can you check, 
please?

Am just lucky that it doesn't seem to be  MT_TAG related this time.

> The machine is:
> FreeBSD router 5.2-CURRENT FreeBSD 5.2-CURRENT #10: Tue Mar  2 04:31:42
> EST 2004    
> root_at_chaotic.chaos.oz.org:/usr/world/obj/usr/world/src/sys/Router  i386
>
> When the 2nd "queue 6 config pipe 1 ...." command
> is issued (the last line), a kernel panic occurs.
>
> I don't have the debugger currently compiled into the kernel so I
> couldn't get usful info. Hopefully someone else can reproduce this.
>
> The config is:
> ------8<------8<-------8<------
> # Default Traffic
> add queue 1 ip from any to any in recv tun10
> queue 1 config pipe 1 weight 30 queue 15kb
> pipe 1 config bw 512kb/s queue 25kb
>
> add queue 2 ip from any to any out xmit tun10
> queue 2 config pipe 2 weight 30 queue 15kb
> pipe 2 config bw 128kb/s queue 25kb
>
> # DNS/ntp etc
> add queue 3 udp from any to any src-port 53 in recv tun10
> add queue 3 tcp from any to any src-port 54 in recv tun10
> add queue 3 udp from any to any src-port 123 in recv tun10
> queue 3 config pipe 1 weight 100 queue 15kb
>
> add queue 4 udp from any to any dst-port 53 out xmit tun10
> add queue 4 tcp from any to any dst-port 53 out xmit tun10
> add queue 4 udp from any to any dst-port 123 out xmit tun10
> queue 4 config pipe 2 weight 100 queue 15kb
>
> # SSH / IRC traffic
> add queue 5 tcp from any to any dst-port 22,6667,6666 in recv tun10
> add queue 5 tcp from any to any src-port 22,6667,6666 in recv tun10
> add queue 5 tcp from 130.130.69.5 to any src-port 1 in recv tun10
> queue 5 config pipe 1 weight 90 queue 15kb
>
> add queue 6 tcp from any to any dst-port 22,6667,6666 out xmit tun10
> add queue 6 tcp from any to any src-port 22,6667,6666 out xmit tun10
> add queue 6 tcp from any to 130.130.69.5 dst-port 1 out xmit tun10
> queue 6 config pipe 2 weight 90 queue 10kb
>
> # Web Traffic
> add queue 5 tcp from any to any src-port 80 in recv tun10
> add queue 5 tcp from any to any dst-port 80 in recv tun10
> queue 5 config pipe 1 weight 40 queue 10kb
>
> add queue 6 tcp from any to any dst-port 80 out xmit tun10
> add queue 6 tcp from any to any src-port 80 out xmit tun10
> queue 6 config pipe 1 weight 40 queue 10kb
> ------8<------8<------8<-------

-- 
Best regards,				| mlaier_at_freebsd.org
Max Laier				| ICQ #67774661
http://pf4freebsd.love2party.net/	| mlaier_at_EFnet

Received on Tue Mar 02 2004 - 15:58:13 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:45 UTC