From: Greg Stark <gsstark@mit.edu>
To: linux-ppp@vger.kernel.org
Subject: Kernel memory leak with PPPoE
Date: Fri, 10 Dec 2004 06:30:22 +0000 [thread overview]
Message-ID: <87d5xi7ji9.fsf@stark.xeocode.com> (raw)
I'm not sure if this is the right list or perhaps linux-kernel. But I figure
people here will at least be interested even if it's not strictly in your
bailiwick.
The other day my ISP went down for a few days (They hadn't paid their bills to
the ILEC, doh). I discovered that there's a kernel memory leak in the pppoe
module somewhere.
Since there was no config option I have my pppd patched to keep retrying PPPoE
forever rather than giving up after a few iterations. (Why do people write
code with hard coded limitations like that anyways? argh!).
After a few hours of PPPoE interface creation and teardown on PAP
authentication failures my router box (a poor 486 with 24M of memory) started
swapping. By the end of the first day it was swapping madly and eventually
became totally unresponsive.
The same thing happened later after I rebooted it, except I stopped pppd
completely. The problem did not go away. I'm pretty convinced it's a kernel
memory leak by the fact that the machine kept swapping after pppd died. I've
seen the same symptoms in the past too in the same circumstances (it's not a
very reliable ISP).
This isn't totally up to date source code, but I'm pretty sure the PPPoE
kernel module hasn't undergone much work in the past year or so has it?
This is Linux 2.4.21 with the ppp_generic, pppox, pppoe modules. pppd version
2.4.2b2 which I believe I actually built from CVS sources.
I know it's suboptimal to report a bug report without reproducing it with a
clean unpatched, preferably recent, version. However this is my router box and
I upgrading it to linux 2.6 would be a major project (and I believe 2.4 suits
the 486 better). And with the unpatched pppd I would have to script restarting
pppd repeatedly (and deal with the consequences of the interface disappearing
and reappearing) since the pppoe module has a hard coded constant number of
retries before it aborts.
--
greg
next reply other threads:[~2004-12-10 6:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-10 6:30 Greg Stark [this message]
2004-12-10 13:38 ` Kernel memory leak with PPPoE Michal Ostrowski
2004-12-10 19:12 ` Greg Stark
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=87d5xi7ji9.fsf@stark.xeocode.com \
--to=gsstark@mit.edu \
--cc=linux-ppp@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.