Bug 469611 - endless loop in mkinitrd
Summary: endless loop in mkinitrd
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: mkinitrd
Version: 10
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 465542
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-11-03 06:21 UTC by Alexandre Oliva
Modified: 2008-12-05 04:02 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-12-05 04:02:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch that avoids searches in the wrong dirs and mismatched qpops, and thus the endless loop (846 bytes, patch)
2008-11-03 06:21 UTC, Alexandre Oliva
no flags Details | Diff

Description Alexandre Oliva 2008-11-03 06:21:13 UTC
Created attachment 322261 [details]
Patch that avoids searches in the wrong dirs and mismatched qpops, and thus the endless loop

Description of problem:
When qpushd fails because the named directory does not exist, we go happily ahead searching for stuff in the wrong directory, and then qpop what the caller had pushed.  Enough of these pops and we end up back in /tmp, and entering an endless loop because $PWD will never end up matching /sys, no matter how many times we cd .. in findstoragedriverinsys.

I ran into this after a couple of USB bus resets left me with two failed slaves for the RAID device holding the root filesystem (in an encrypted physical volume), later re-added as the disk came back up:

md3 : active raid1 sde3[1] sdd3[3](F) sda3[0] sdb3[2] sdc3[4](F)
      77650112 blocks [3/3] [UUU]
      bitmap: 0/149 pages [0KB], 256KB chunk

It didn't matter that bug 465542 wasn't fixed yet, it still tried to descend into the components of md3, and failed at that.

The attached patch, along with the patch for bug 465542 (strictly speaking, probably not needed to fix the bug, but what the heck :-) fixes it.


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

Comment 1 Peter Jones 2008-11-03 22:31:07 UTC
Should be fixed in 6.0.70-1 .

Comment 2 Bug Zapper 2008-11-26 04:40:24 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Alexandre Oliva 2008-12-05 04:02:17 UTC
Confirmed fixed in F-10 GOLD, thanks.


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