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 2021/01/03 15:55:27 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 opened a new pull request #2643: fs: Fix the race condition in file_dup

xiaoxiang781216 opened a new pull request #2643:
URL: https://github.com/apache/incubator-nuttx/pull/2643


   ## Summary
   NULL inode passed to files_allocate doesn't mark file struct in the allocated state, so other threads which invovle in file allocation(e.g. open or dup) may allocate the same file struct again.
   Let's use a temp file struct to avoid the NULL inode case.
   
   ## Impact
   Fix the race condition
   
   ## Testing
   
   


----------------------------------------------------------------
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



[GitHub] [incubator-nuttx] anchao merged pull request #2643: fs: Fix the race condition in file_dup

Posted by GitBox <gi...@apache.org>.
anchao merged pull request #2643:
URL: https://github.com/apache/incubator-nuttx/pull/2643


   


----------------------------------------------------------------
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