Bug 17808 - infinite pppd loop using plugin or per-user options
Summary: infinite pppd loop using plugin or per-user options
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: ppp
Version: 1.0
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-09-24 09:54 UTC by Michael Tokarev
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2000-10-02 05:55:09 UTC
Embargoed:


Attachments (Terms of Use)
patch to prevent infinite loop in options_from_list() routine (342 bytes, patch)
2000-09-24 09:56 UTC, Michael Tokarev
no flags Details | Diff

Description Michael Tokarev 2000-09-24 09:54:54 UTC
2.3.11 (or earlier?) introduced 'plugin' option, and one of hooks
plugins can define is 'pap_auth_hook' that can return a wordlist of
additional options for this particular user.  This is relly very
good and useful feature, as there is at least some demand on having
separate options for each (group of) user.  But if that hook sets up
option list, pppd will loop forever eating 100% cpu and ignoring signals
(except -9), and sitting "on line" with tty opened, preventing this line
to be dialed in.  I quickly made my dial-in server unusable when all
16 modem lines was locked by looped pppd, thus preventing any dial-in...
Ok, fix is trivial, it is in `options_from_list()' routine -- it checks
the first option again and again wihout jumping to next one...
As such, this routine was _never_ checked/executed by author/testers/users!

I'll not forward this report/fix to pppd author, as it is useless.
He just ignores any letters sent to him (as I can guess) -- I sent many,
many bugreports to him without any responce...

BTW, does anybody knows where is a current home for pppd?
I saw 2.4.0 pre/beta somewhere, but it is not in usual location...

P.S.  I see that RedHat also isn't very "responsible" for ppp package... :(

Comment 1 Michael Tokarev 2000-09-24 09:56:04 UTC
Created attachment 3523 [details]
patch to prevent infinite loop in options_from_list() routine

Comment 2 Michael Tokarev 2000-09-24 09:59:46 UTC
Changed severity to high (may be wrong) -- that bad situation I had with my
dial-in server shouldn't be repeated...

Comment 3 Nalin Dahyabhai 2000-10-02 05:55:07 UTC
The current home for pppd is ftp://linuxcare.com.au/pub/ppp/.

Comment 4 Michael Tokarev 2001-08-06 19:36:40 UTC
Fixed in mainstream (probably in 2.4.0 version or so)


Note You need to log in before you can comment on or make changes to this bug.