Subject: kern/23203: sysctl_rtable can deplete the kmem_map
To: None <email@example.com>
From: None <firstname.lastname@example.org>
Date: 10/19/2003 20:50:18
>Synopsis: sysctl_rtable can deplete the kmem_map
>Arrival-Date: Mon Oct 20 03:51:00 UTC 2003
>Originator: Jason R Thorpe
>Release: NetBSD 1.6ZC
-- Jason R. Thorpe <email@example.com>
System: NetBSD gw-wlan.shagadelic.org 1.6ZC NetBSD 1.6ZC (SHAG-NET4501) #85: Sat Sep 27 13:26:06 PDT 2003 firstname.lastname@example.org:/u1/netbsd/src/sys/arch/i386/compile/SHAG-NET4501 i386
I have experienced several crashes of my NetBSD-based 802.11 AP
today. All of them were "out of space in kmem_map" panics, and
all of them had sysctl_rtable() in the stack trace.
Upon looking at the code for sysctl_rtable() it does appear as
though it will loop, allocating memory effectively without bound,
as a temporary buffer.
Sorry, I don't have a precise set of steps for preproducing the
problem. This AP has been running fine for quite some time, but
started acting up just today.