Bug 762077 (GLUSTER-345) - booster segfault due to NULL inode
Summary: booster segfault due to NULL inode
Keywords:
Status: CLOSED DUPLICATE of bug 762080
Alias: GLUSTER-345
Product: GlusterFS
Classification: Community
Component: core
Version: mainline
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Shehjar Tikoo
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-29 11:27 UTC by Shehjar Tikoo
Modified: 2009-10-30 08:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTNR
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Shehjar Tikoo 2009-10-29 11:27:42 UTC
The segfault was observed because there is no NULL check in inode.c in the following function:

__dentry_search_arbit (inode_t *inode)
{
        dentry_t *dentry = NULL;
        dentry_t *trav = NULL;

        list_for_each_entry (trav, &inode->dentry_list, inode_list) {
                if (__is_dentry_hashed (trav)) {
                        dentry = trav;
                        break;
                }
        }

        if (!dentry) {
                list_for_each_entry (trav, &inode->dentry_list, inode_list) {
                        dentry = trav;
                        break;
                }
        }

        return dentry;
}

Comment 1 Shehjar Tikoo 2009-10-30 05:36:10 UTC
348 is duplicate of this. Lets just use the latest report.

*** This bug has been marked as a duplicate of bug 348 ***


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