Your message dated Sat, 25 Aug 2007 21:09:16 -0600
with message-id <[EMAIL PROTECTED]>
and subject line Bug#305765: umount - segfault on not permitted actions
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: mount
Version: 2.12p-4
Severity: normal
Hello,
when I try to umount a partition mounted by the same user before, the
operation fails and I get a segmentation fault. On partitions mounted by
root, there is a proper message:
$ umount /mnt/c
umount: only root can unmount /dev/hda1 from /mnt/c
$ umount /mnt/d
Segmentation fault
$ mount
...
/dev/hda1 /mnt/c vfat
rw,nodiratime,nosuid,nodev,noexec,fmask=0000,dmask=0000,codepage=cp437,iocharset=utf8,utf8
0 0
/dev/sda1 /mnt/d vfat
rw,nodiratime,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0000,dmask=0000,codepage=cp437,iocharset=utf8,utf8
0 0
$ cat /etc/fstab
...
/dev/hda1 /mnt/c vfat auto,user,umask=000,utf8 0 0
UUID="41EB-F193" /mnt/d vfat auto,user,umask=000,utf8
0 0
This looks odd, I cannot see the reasons for a) not allowing the umount and b)
the segmentation fault.
strace says:
...
readlink("/mnt", 0xbfffd820, 4096) = -1 EINVAL (Invalid argument)
readlink("/mnt/d", 0xbfffd820, 4096) = -1 EINVAL (Invalid argument)
umask(077) = 022
open("/etc/mtab", O_RDONLY|O_LARGEFILE) = 3
umask(022) = 077
fstat64(3, {st_mode=S_IFREG|0644, st_size=998, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7fe8000
read(3, "/dev/ide/host0/bus0/target0/lun0"..., 4096) = 998
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7fe8000, 4096) = 0
stat64("/sbin/umount.vfat", 0xbffff6f0) = -1 ENOENT (No such file or directory)
oldumount("/mnt/d") = -1 EPERM (Operation not permitted)
oldumount("/dev/scsi/host3/bus0/target1/lun0/part1") = -1 ENOENT (No such file
or directory)
lstat64("/etc/mtab", {st_mode=S_IFREG|0644, st_size=998, ...}) = 0
open("/etc/mtab", O_RDWR|O_CREAT|O_LARGEFILE, 0644) = -1 EACCES (Permission
denied)
write(2, "umount: /dev/scsi/host3/bus0/tar"..., 59umount:
/dev/scsi/host3/bus0/target1/lun0/part1: not found
) = 59
write(2, "umount: /mnt/d: must be superuse"..., 44umount: /mnt/d: must be
superuser to umount
) = 44
stat64("/sbin/umount.vfat", 0xbffff6f0) = -1 ENOENT (No such file or directory)
oldumount("/mnt/d") = -1 EPERM (Operation not permitted)
oldumount("/dev/scsi/host3/bus0/target1/lun0/part1") = -1 ENOENT (No such file
or directory)
write(2, "umount: /dev/scsi/host3/bus0/tar"..., 59umount:
/dev/scsi/host3/bus0/target1/lun0/part1: not found
) = 59
write(2, "umount: /mnt/d: must be superuse"..., 44umount: /mnt/d: must be
superuser to umount
) = 44
exit_group(1) = ?
Regards,
Eduard.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11.7
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Versions of packages mount depends on:
ii libblkid1 1.37-2 block device id library
ii libc6 2.3.2.ds1-21 GNU C Library: Shared libraries an
ii libuuid1 1.37-2 universally unique id library
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 2.13~rc1-0
--
Fixed in 2.13.
lamont
--- End Message ---