Red Hat Bugzilla – Bug 155629
hotplug installes pendrive readonly
Last modified: 2012-06-20 09:31:01 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050416 Red Hat/1.0.3-1.4.1 Firefox/1.0.3
Description of problem:
The USB pendrive is installed read-only.
After (1) unmount (by selecting the screen icon) and
(2) mounting it as a root
(3) writing some file
The directory and the data on the pendrive are destroyed
and the directory listing shows arbitrary names.
Other directories are destroyed too.
The capacity of the pendrive is 512MB,
The filesystem is vfat (correctly detected according to mtab /fstab).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. unmount the RO FS mounted by hotplug
2. mount the pendrive mount /dev/sdb1 /mnt/pendirve
3. mkdir /mnt/pendirve
4. echo "aa" > /mnt/pendirve/mydir/aaa
5. umount /mnt/pendirve
Actual Results: After step 4 :
the directory .... mydir/* is destroyed.
Other directories too.
The pendrive is totally functional on other system after fsck.
Expected Results: file /mnt/pendirve/aaa with contents aa.
File system integrity of the pendrive.
The action of hotplug is very annoying and
probably can cause security problems
(files and probably executable appear from nothing in the system),
without any permition (by default).
desc: "Usb Flash Disk"
It is possible that the bug is in the kernel or the driver,
but I can't set 2 modules.
What's the output of dmesg while this happens? Any errors?
what manufacturer/module is your pendrive ?
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life.
Please See https://access.redhat.com/support/policy/updates/errata/
If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.