Bug 746705 - Remounting tmpfs read-write hangs
Summary: Remounting tmpfs read-write hangs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-17 15:12 UTC by Petr Pisar
Modified: 2011-10-25 03:45 UTC (History)
2 users (show)

Fixed In Version: util-linux-2.20.1-1.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-25 03:45:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2011-10-17 15:12:05 UTC
# mount -o ro -t tmpfs none /usr/local
# mount -o remount,rw /usr/local

Here the remount hangs. I have Linux 3.1.0-0.rc9.git0.0.fc17.x86_64 and util-linux-2.20-1.fc17.x86_64.

The hang is in user-space, mount consumes all available CPU time, no syscalls are performed by mount in that time. Debugger shows it cycles on remove_context_options(). Once calling try_mount_one(), debug does not return and I need to SIGINT to get debugger again and the PC pop ups in remove_context_options() again.

Also debugger struggles `Source file is more recent than executable' even if I have up-to-date debuginfo packags.

I'm not sure what happens. I don't get any new denials by SElinux or messages from kernel.

Comment 1 Karel Zak 2011-10-17 15:35:44 UTC
Please, 

 grep /usr/local /proc/self/mountinfo

before the remount. Thanks.

Comment 2 Petr Pisar 2011-10-17 15:42:07 UTC
# grep /usr/local /proc/self/mountinfo 
44 22 0:31 / /usr/local ro,relatime - tmpfs none ro,rootcontext=system_u:object_r:usr_t:s0,seclabel

Comment 3 Karel Zak 2011-10-17 17:01:02 UTC
Fixed by upstream commit 918e4271252ac49cf2d9f8ab56a55ba4dd74b583. Fedora package will be fixed ASAP.

Comment 4 Fedora Update System 2011-10-20 11:48:33 UTC
util-linux-2.20.1-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/util-linux-2.20.1-1.fc16

Comment 5 Fedora Update System 2011-10-20 22:15:51 UTC
Package util-linux-2.20.1-1.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing util-linux-2.20.1-1.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-14685
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2011-10-25 03:45:38 UTC
util-linux-2.20.1-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


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