This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001491] New: jffs2_iput() called with NULL inode unlinkinggarbage file path


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001491

           Summary: jffs2_iput() called with NULL inode unlinking garbage
                    file path
           Product: eCos
           Version: CVS
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: low
         Component: Filesystem support
        AssignedTo: unassigned@bugs.ecos.sourceware.org
        ReportedBy: stano@meduna.org
                CC: ecos-bugs@ecos.sourceware.org
             Class: Advice Request


If unlink() is called with a bogus path (pure garbage in my case) on a JFFS2
filesystem, the jffs2_ops_unlink does a init_dirsearch followed by jffs2_find.
This of course fails and the jffs2_iput is called with a null inode.

I am not quite sure whether this is a filesystem bug or whether the
cyg_mtab_lookup should not have found the mount table entry in the first place.

#0  jffs2_iput (i=0x0)
    at
/cygdrive/d/eCos/Repository/eCosPublic/packages/fs/jffs2/current/src/fs-ecos.c:1930
#1  0x6008c61e in jffs2_ops_unlink (mte=<value optimized out>,
    dir=<value optimized out>, name=<value optimized out>)
    at
/cygdrive/d/eCos/Repository/eCosPublic/packages/fs/jffs2/current/src/fs-ecos.c:791
#2  0x600ad1ba in unlink (
    path=0x602dd43e
"5\016`Ã5\016`T/\016`O/\016`Â5\016`ÂÃ\r`|Ã\r`Ã5\016`Ã5\016`")
    at
/cygdrive/d/eCos/Repository/eCosPublic/packages/io/fileio/current/src/file.cxx:276

(the line numbers in the fs-ecos.c do not necessarily match, as I have changes
in the file).

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]