netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pppoe handles MOD_DEC_USE_COUNT incorrectly
@ 2003-05-11 20:27 Olaf Hering
  2003-05-12  1:57 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2003-05-11 20:27 UTC (permalink / raw)
  To: netdev

Hi,

it seems pppoe does increase its usage count with each reconnect, but it
never releases it when the ppp connection dies.

Linux version 2.4.20-ibook (builds@ibook) (gcc version 3.2.1 20021026 (prerelease)) #1 Sam Dez 7 19:52:20 CET 2002
Module                  Size  Used by    Not tainted
nfsd                   71364   4  (autoclean)
keyspan                96308   1 
usbserial              20736   0  [keyspan]
ipt_REJECT              3280   2  (autoclean)
ipt_LOG                 3312   1  (autoclean)
ipt_state                752   4  (autoclean)
ipt_TCPMSS              2512   1  (autoclean)
iptable_filter          1904   1  (autoclean)
ipt_MASQUERADE          1664   3  (autoclean)
ip_conntrack_irc        3072   1  (autoclean)
ip_nat_irc              2512   0  (unused)
ip_conntrack_ftp        4096   1  (autoclean)
ip_nat_ftp              3264   0  (unused)
iptable_nat            17140   3  [ipt_MASQUERADE ip_nat_irc ip_nat_ftp]
ip_tables              13936   9  [ipt_REJECT ipt_LOG ipt_state ipt_TCPMSS iptable_filter ipt_MASQUERADE iptable_nat]
ip_conntrack           20604   4  [ipt_state ipt_MASQUERADE ip_conntrack_irc ip_nat_irc ip_conntrack_ftp ip_nat_ftp iptable_nat]
sbp2                   17696   0  (unused)
pppoe                   9168   3 
pppox                   1464   1  [pppoe]
ppp_async               8336   0  (unused)
ppp_generic            24780   3  [pppoe pppox ppp_async]
slhc                    4272   0  [ppp_generic]
ide-scsi                9760   0 
sungem                 27348   1 
ohci1394               27984   0  (unused)
ieee1394               44792   0  [sbp2 ohci1394]


My DSL connection is terminated after 24h, now, after the reconnect:

--- /tmp/1      Sun May 11 21:21:04 2003
+++ /tmp/11     Sun May 11 21:41:00 2003
@@ -7,7 +7,7 @@
 ipt_state                752   4  (autoclean)
 ipt_TCPMSS              2512   1  (autoclean)
 iptable_filter          1904   1  (autoclean)
-ipt_MASQUERADE          1664   3  (autoclean)
+ipt_MASQUERADE          1664   4  (autoclean)
 ip_conntrack_irc        3072   1  (autoclean)
 ip_nat_irc              2512   0  (unused)
 ip_conntrack_ftp        4096   1  (autoclean)
@@ -16,7 +16,7 @@
 ip_tables              13936   9  [ipt_REJECT ipt_LOG ipt_state ipt_TCPMSS iptable_filter ipt_MASQUERADE iptable_nat]
 ip_conntrack           20604   4  [ipt_state ipt_MASQUERADE ip_conntrack_irc ip_nat_irc ip_conntrack_ftp ip_nat_ftp iptable_nat]
 sbp2                   17696   0  (unused)
-pppoe                   9168   3 
+pppoe                   9168   4 
 pppox                   1464   1  [pppoe]
 ppp_async               8336   0  (unused)
 ppp_generic            24780   3  [pppoe pppox ppp_async]

I tried to fix it myself, but its not obvious to me where to place the
MOD_DEC_USE_COUNT. I believe the socket is still active when the
connection terminates, and pppoe_sock_destruct() is not called.


Gruss Olaf

-- 
USB is for mice, FireWire is for men!

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pppoe handles MOD_DEC_USE_COUNT incorrectly
  2003-05-11 20:27 pppoe handles MOD_DEC_USE_COUNT incorrectly Olaf Hering
@ 2003-05-12  1:57 ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 2+ messages in thread
From: Arnaldo Carvalho de Melo @ 2003-05-12  1:57 UTC (permalink / raw)
  To: Olaf Hering; +Cc: netdev

Em Sun, May 11, 2003 at 10:27:28PM +0200, Olaf Hering escreveu:
> Hi,
> 
> it seems pppoe does increase its usage count with each reconnect, but it
> never releases it when the ppp connection dies.

I'm looking at this right now, thanks for reporting.

- Arnaldo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-12  1:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-11 20:27 pppoe handles MOD_DEC_USE_COUNT incorrectly Olaf Hering
2003-05-12  1:57 ` Arnaldo Carvalho de Melo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).