|
|
Subscribe / Log in / New account

Single threaded

Single threaded

Posted Aug 22, 2024 22:38 UTC (Thu) by viro (subscriber, #7872)
In reply to: Single threaded by daroc
Parent article: A review of file descriptor memory safety in the kernel

Quite. If descriptor table is not shared, it will remain that way until you spawn a child and share descriptors with it (i.e. pass CLONE_FILES to copy_process()). Going the other way is possible without any actions taken by your thread - other threads can terminate and that's all it takes.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds