Bug 155629 - hotplug installes pendrive readonly
hotplug installes pendrive readonly
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Pete Zaitcev
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2005-04-21 20:02 EDT by Kostadin Koruchev
Modified: 2012-06-20 09:31 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-06-20 09:31:01 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kostadin Koruchev 2005-04-21 20:02:20 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):
kernel 2.6.4

How reproducible:

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.

Additional info:

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).
Comment 1 Kostadin Koruchev 2005-04-21 20:11:43 EDT
kudzu tells:

class: HD
bus: SCSI
detached: 0
device: sdb
driver: ignore
desc: "Usb Flash Disk"
host: 1
id: 0
channel: 0
lun: 0
generic: sg1

It is possible that the bug is in the kernel or the driver,
but I can't set 2 modules.

Comment 2 Bill Nottingham 2005-04-21 23:51:34 EDT
What's the output of dmesg while this happens? Any errors?
Comment 3 Dave Jones 2005-04-21 23:59:44 EDT
what manufacturer/module is your pendrive ?
Comment 4 Jiri Pallich 2012-06-20 09:31:01 EDT
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.

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