[Bug 1902] New: failure to copy node_access contents in sup_fs_get_start_loc.c

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue Aug 23 22:27:46 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1902

           Summary: failure to copy node_access contents in
                    sup_fs_get_start_loc.c
           Product: RTEMS
           Version: 4.10
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: cpukit
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: clionberger at gmail.com


Created attachment 1311
  --> https://www.rtems.org/bugzilla/attachment.cgi?id=1311
what would fix this if node_access was always a string

This problem discovered while troubleshooting loss of current working directory
info in successive file opens using tftpfs.  In rtems_fs_get_start_loc() the
line 
*loc = rtems_filesystem_current;
does not copy the contents referred to by the node_access pointer.  This causes
the node_access contents of both loc and rtems_filesystem_current to be free'd
when the loc node info is free'd.  I am attaching the diff that fixes this for
tftpfs although I've heard other file systems store other types of objects
here.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list