Bug 71800 - infinite loop in ifdown on removed device
Summary: infinite loop in ifdown on removed device
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: initscripts
Version: limbo
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
: 72253 (view as bug list)
Depends On:
Blocks: 67217
TreeView+ depends on / blocked
 
Reported: 2002-08-19 14:13 UTC by David L. Parsley
Modified: 2014-03-17 02:30 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-08-27 22:10:30 UTC
Embargoed:


Attachments (Terms of Use)

Description David L. Parsley 2002-08-19 14:13:34 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020724

Description of problem:
In the 'ifdown' script, starting at line 51, it checks to see if the device mac
addr is the same as 'HWADDR' in the ifcfg-xxx file; failing that, it looks for
another ifcfg-xxx file with that HWADDR, then ifdown's it.  With a removed
ethernet device, this results in an infinite loop; worse, since this was a
PCMCIA device, it hung during PCMCIA initiallization on startup.

For more info, check w/ Matt Wilson, who nailed down this bug at LinuxWorld.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Configure a removable ethernet device with 'neat' (this tool sets HWADDR, not
sure about other tools)
2. Remove the device
3. 'ifdown (devicename)'
	

Actual Results:  infinite loop with 'Device XXX does not exist' (or something
similar)

Expected Results:  One iteration of 'Device XXX does not exist' with clean exit.

Additional info:

On the off chance it matters, this was for a Cisco Aironet 350, where I used
'neat' to make it so users could activate/deactivate the device.

Comment 1 Bill Nottingham 2002-08-27 22:10:23 UTC
Should be fixed in 6.92-1.

Comment 2 Jay Turner 2002-09-03 16:13:44 UTC
Fix confirmed with initscripts-6.93-1.

Comment 3 Jay Turner 2002-09-03 16:14:40 UTC
*** Bug 72253 has been marked as a duplicate of this bug. ***


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