You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
CFE_TBL_DUMP_CC can overwrite a .so file inside /cf/. If the currently running APP overwrites the .so file that it is using by some App with the TABLE_DUMP content, a Bus Error occurs.
To Reproduce
Steps to reproduce the behavior:
CFE_ES_QUERY_ALL_CC with parameter
a. query_all
check loaded Table in the cFS (check /dev/shm/osal:RAM/query_all)
send CFE_TBL_DUMP_CC Command with parameter
a.1
b.SAMPLE_APP.ExampleTable (or Any Table in the cFS Process that can check at 2.)
c./cf/ci_lab.so (or Any .so file name in /cf/)
Bus error
Expected behavior
When performing a Table Dump using the CFE_TBL_DUMP_CC command, it should be prevented from overwriting .so files inside /cf/ that are currently being used by the App.
Code snips
I can check below log at the every .so case (SAMPLE_APP / to_lab / ci_lab)
Thread 13 "CI_LAB_APP" received signal SIGBUS, Bus error.
[Switching to Thread 0x7ffff7b42700 (LWP 118401)]
BFD: error: ./cf/ci_lab.so(.eh_frame) section size (0x284 bytes) is larger than file size (0x78 bytes)
warning: Can't read data for section '.eh_frame' in file './cf/ci_lab.so'
0x00007ffff7b4568f in CI_LAB_AppMain ()
at /home/jun/jun/cFS/apps/ci_lab/fsw/src/ci_lab_app.c:68
Describe the bug
CFE_TBL_DUMP_CC can overwrite a .so file inside /cf/. If the currently running APP overwrites the .so file that it is using by some App with the TABLE_DUMP content, a Bus Error occurs.
To Reproduce
Steps to reproduce the behavior:
a. query_all
a.1
b.SAMPLE_APP.ExampleTable (or Any Table in the cFS Process that can check at 2.)
c./cf/ci_lab.so (or Any .so file name in /cf/)
Expected behavior
When performing a Table Dump using the CFE_TBL_DUMP_CC command, it should be prevented from overwriting .so files inside /cf/ that are currently being used by the App.
Code snips
I can check below log at the every .so case (SAMPLE_APP / to_lab / ci_lab)
System observed on:
cfe : Merge pull request cFE Integration candidate: Equuleus-rc1+dev25 #2636 from nasa/integration-candidate
(4b3fedd)
cfs : Merge pull request CFE_ES_FindCDSInRegistry() infinte loop if registry size is zero #823 from nasa/integration-candidate(nasa/cFS@9af1288)
Additional context
You can check the POC video here :
https://youtu.be/xA_9MAgPUAM
Reporter Info
Junhak Lee(juntheworld) - KAIST
The text was updated successfully, but these errors were encountered: