[RTEMS Project] #4639: Error in imfs memfile when device is full

RTEMS trac trac at rtems.org
Mon Apr 4 13:31:12 UTC 2022


#4639: Error in imfs memfile when device is full
----------------------------+--------------------------------
  Reporter:  Joel Sherrill  |      Owner:  Christian Mauderer
      Type:  defect         |     Status:  assigned
  Priority:  normal         |  Milestone:  6.1
 Component:  fs             |    Version:  6
  Severity:  normal         |   Keywords:
Blocked By:                 |   Blocking:
----------------------------+--------------------------------
 Cloned from #4638:
 ----
 The problem from #2353 still exists in 5 and 6:

 Original description:
 ----
 From the reporter (Круглов Сергей <skruglov at nm.ru>):

 * First bug I detect with attempt write file to full device (zero empty
 blocks).
 * And after I send too many files, disk overflow and system not responding
 (receive and write to disk have high priority). A test, and found block=0,
 after -- = too big value.
 * In imfs_memfile.c
 function IMFS_memfile_extend
 block declared: unsigned int   block, and after block— work incorrect (if
 block = 0).
 for ( ; block>=old_blocks ; block-- ) {
   IMFS_memfile_remove_block( memfile, block );
 }

 Must be declare int block;

--
Ticket URL: <http://devel.rtems.org/ticket/4639>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list