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:
Created attachment 304923 [details] [PATCH]DebugFS : more file/directory creation error handling
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
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.
This fix is slated for 5.3.
Created attachment 305682 [details] proposed fix. Please test this patch and verify that it resolves your problem.
It resolved my problem. Thanks.
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.
in kernel-2.6.18-99.el5 You can download this test kernel from http://people.redhat.com/dzickus/el5
I have downloaded and tested kernel-2.6.18-100.el5.x86_64.rpm. It works. Thanks.
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.
Hi, I have downloaded and tested x86_64 version of RHEL5.3 Beta(2.6.18-120.el5). The bug is fixed. Thanks.
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