bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

id-utils 3.2d: mkdir creates corrupted ID file


From: nn
Subject: id-utils 3.2d: mkdir creates corrupted ID file
Date: Fri, 7 Sep 2001 10:50:13 -0700

Does anyone know of a fix for this?  I really miss MKID/GID.. :-(

thanks.

neal nuckolls
address@hidden
-------

>From nn Fri Mar  9 15:35:53 2001
To: address@hidden
Subject: id-utils 3.2d: mkdir creates corrupted ID file



The mkid in id-utils-3.2d when compiled and run on Linux Redhat 6.1
generates corrupted file list index entries.
It looks like serialize_file_links(), when traversing the file link table,
assumes that the parent flink is visited before the child.
When this is not true, a garbage (huge) flink->fl_index value is written out
to ID which will cause lid/gid/etc to Segmentation fault.
Very reproducable on my Intel desktop.  I browsed around but
could not find any mail references to this problem.

Example:
Here's the first few lines of "od -c ID"
of the command "mkid crc.c enet.c" when executed
in my /home/nn directory on Solaris:  (good file)

0000000   E   A  \0 004 001  \0 005  \0  \0  \0 002  \0  \0  \0   ` 004
0000020  \0  \0 032  \0  \0  \0 002  \0  \0  \0   W  \0  \0  \0   *  \0
0000040  \0  \0   AE   8  \0  \0  \a  \0  \0  \0   /  \0   "  \0  \0  \0
0000060   h   o   m   e  \0   "  \0  \0  \0   n   n  \0   " 001  \0  \0
0000100   c   r   c   .   c  \0   F 002  \0  \0   e   n   e   t   .   c

Here's the same when executed on Linux (x86): (bad file)

0000000   E   A  \0 004 001  \0 005  \0  \0  \0 002  \0  \0  \0   ` 004
0000020  \0  \0 032  \0  \0  \0 002  \0  \0  \0   W  \0  \0  \0   *  \0
0000040  \0  \0   AE   8  \0  \0  \a  \0  \0  \0   /  \0   "  \0  \0  \0
0000060   n   n  \0   "   O   k 005   c   r   c   .   c  \0   F 001  \0
0000100  \0   e   n   e   t   .   c  \0   F 001  \0  \0   h   o   m   e

Note how the "nn" link has been generated before the "home" link
and the garbage (huge) 3 byte value of the fl_index for the "nn" entry
which causes gid to segfault.

Is there a fix for this bug?

thanks.

neal nuckolls
address@hidden


Subject: Re: id-utils 3.2d: mkdir creates corrupted ID file
From: "Greg McGary" <address@hidden>
Date: 09 Mar 2001 16:45:53 -0700

address@hidden writes:

> The mkid in id-utils-3.2d when compiled and run on Linux Redhat 6.1
> generates corrupted file list index entries.
> It looks like serialize_file_links(), when traversing the file link table,
> assumes that the parent flink is visited before the child.
> When this is not true, a garbage (huge) flink->fl_index value is written out
> to ID which will cause lid/gid/etc to Segmentation fault.
> Very reproducable on my Intel desktop.  I browsed around but
> could not find any mail references to this problem.

That's a new one to me.  Thanks for the report.

> Is there a fix for this bug?

Nope.  First I have heard of it.

Greg





reply via email to

[Prev in Thread] Current Thread [Next in Thread]