bug-hurd
[Top][All Lists]
Advanced

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

Filesystem corruption bug in libdiskfs


From: Abstract
Subject: Filesystem corruption bug in libdiskfs
Date: Sun, 8 Dec 2002 14:29:14 +0000 (GMT)

Hi.

In diskfs_rename_dir, filesystem corruption can result if a directory is
moved that by a user who cannot write to the parent directory. For
example:

$ sudo chown -R tla.tla /src/hurd
$ mv /src/hurd /home/tla
ext2fs.static: ..../libdiskfs/dir-renamed.c:202: diskfs_rename_dir:
Assertion `tmpnp == fnp' failed.

The cause of this is that the filesystem is modified (the source
directory's .. node is changed, and a reference is added to the target dir
to point to the source dir) before any check is made for writability to
the parent node.

-- 
Richard Smith




reply via email to

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