threadx icon indicating copy to clipboard operation
threadx copied to clipboard

cleaning block/byte pool region upon release

Open amgross opened this issue 4 years ago • 4 comments

Hi As far as I see there is no built in option to clean the region of block/byte pool upon release.

I think it is very important compile option. especially when using memory protection so it is data leak source (also, in threadx module the modules manager is releasing the pools including the thread struct, so it is problematic to clean it from the module).

I don't think it is a lot of effort to add this option. I understand it will take a runtime when releasing so I suggest to add it just if some compilation flag is on.

amgross avatar Feb 24 '21 07:02 amgross

Hi @amgross - we're discussing internally. I think this is a good idea.

goldscott avatar Feb 27 '21 01:02 goldscott

Hi @goldscott, What is the status of this issue?

amgross avatar Apr 04 '21 09:04 amgross

Hi @amgross - some higher priority bug fixes were ahead of this feature request, so this did not make it into the 6.1.6 release.

goldscott avatar Apr 06 '21 17:04 goldscott

For now, we've updated the ThreadX manual with notes in the tx_byte_release and tx_block_release APIs suggesting that users may want to clear this memory to prevent data leaks.

goldscott avatar Sep 29 '21 22:09 goldscott