Bug 168177 - nash uses uninitialised memory.
Summary: nash uses uninitialised memory.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mkinitrd
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Jones
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-09-13 08:57 UTC by Dave Jones
Modified: 2015-01-04 22:22 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-25 20:45:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dave Jones 2005-09-13 08:57:06 UTC
export MALLOC_PERTURB_=204 
install a kernel, and you'll see this..

ls:
/dev/mapper/VolGroup00-LogVol003333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333:
File name too long

It happens here, in mkinitrd (line 487 or so)

rootdev=$(echo "readlink $rootdev" | /sbin/nash --quiet)

filling in the blanks, and getting a command line that proves this..

(04:51:23:root@nwo:~)# echo "readlink /dev/VolGroup00/LogVol00" | /sbin/nash --quiet
/dev/mapper/VolGroup00-LogVol003333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333


I've not looked at the nash code yet, but this is likely a malloc that needs to
be a calloc someplace.

Comment 1 Peter Jones 2005-09-25 20:45:12 UTC
Fixed, thanks.


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