Bug 445787

Summary: debugfs: file/directory creation error
Product: Red Hat Enterprise Linux 5 Reporter: Tao Ma <tao.ma>
Component: kernelAssignee: Josef Bacik <jbacik>
Status: CLOSED ERRATA QA Contact: Martin Jenner <mjenner>
Severity: high Docs Contact:
Priority: low    
Version: 5.1CC: dzickus, esandeen, sunil.mushran
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-20 20:23:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
[PATCH]DebugFS : more file/directory creation error handling
none
[PATCH] DebugFS : file/directory creation error handling
none
proposed fix. none

Description Tao Ma 2008-05-09 06:07:16 UTC
Description of problem:
In debugfs, we call debugfs_create_by_name to create a file/dir. But if we call
it twice with the same name, the dentry reference count is added wrongly. This
lead to the problem that debugfs_remove can't remove this file.

This issue was addressed in 2.6.19 in mainline.
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=65c333367b1aea57d58168ad3dc1df27b0227401

The patch has also been attached.

This is a request for adding this patch to RHEL5 U2.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Tao Ma 2008-05-09 06:07:16 UTC
Created attachment 304923 [details]
[PATCH]DebugFS : more file/directory creation error handling

Comment 2 Tao Ma 2008-05-09 06:09:38 UTC
Created attachment 304924 [details]
[PATCH] DebugFS : file/directory creation error handling

Another minor patch which is related to this bug.

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=63223a0654c2a473ae64835819b87826cb7415ee

Comment 3 Tao Ma 2008-05-16 09:35:06 UTC
Hi, are there any update for this bug?
We want this fix into RHEL5 because OCFS2 may be corrupted by this bug.
When an OCFS2 volume is mounted, a dir with the name of the volume's uuid will
be created in debugfs. If the user mirror the OCFS2 volume and mount the 2
volumes  simultaneously, the 2nd one will not be mounted. This is acceptable.
But the bad thing is that if he/she umount the 1st mounted volume, none of these
2 volumes can be mounted(since the dir in debugfs can't be created any more)
until the machine is restarted. This is definitely unendurable for a production
environment.
Thanks.

Comment 4 Josef Bacik 2008-05-16 13:04:24 UTC
This fix is slated for 5.3.

Comment 5 Josef Bacik 2008-05-16 13:44:20 UTC
Created attachment 305682 [details]
proposed fix.

Please test this patch and verify that it resolves your problem.

Comment 6 Tao Ma 2008-05-22 06:38:15 UTC
It resolved my problem. Thanks.

Comment 8 RHEL Program Management 2008-06-06 15:44:42 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 9 Don Zickus 2008-07-23 18:55:43 UTC
in kernel-2.6.18-99.el5
You can download this test kernel from http://people.redhat.com/dzickus/el5

Comment 10 Tao Ma 2008-07-30 02:19:41 UTC
I have downloaded and tested kernel-2.6.18-100.el5.x86_64.rpm. It works. Thanks.

Comment 14 Chris Ward 2008-11-14 13:23:37 UTC
Oracle, a fix for this bug should be available for testing in the RHEL 5.3 Beta release. You can download these bits from RHN.

Please take a moment to verify that the fix is present and functioning as expected and report back your test results as soon as  possible. Thanks! Please ping your Red Hat Partner Manager with any additional questions.

Comment 15 Tao Ma 2008-11-17 05:11:40 UTC
Hi, I have downloaded and tested x86_64 version of RHEL5.3 Beta(2.6.18-120.el5). The bug is fixed. Thanks.

Comment 17 errata-xmlrpc 2009-01-20 20:23:22 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2009-0225.html