You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/06/17 15:38:03 UTC

[GitHub] [incubator-nuttx] patacongo opened a new issue #1265: C++ constructors have too many priveleges (PROTECTED MODE)

patacongo opened a new issue #1265:
URL: https://github.com/apache/incubator-nuttx/issues/1265


   C++ CONSTRUCTORS HAVE TOO MANY PRIVILEGES (PROTECTED MODE)
   
   When a C++ ELF module is loaded, its C++ constructors are called via sched/task_starthook.c logic.  This logic runs in protected mode.  The is a security hole because the user code runs with kernel-privileges when the constructor executes.
   
   Destructors likely have the opposite problem.  The probably try to execute some kernel logic in user mode?  Obviously this needs to be investigated further.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org