trussed-dev / trussed

Modern Cryptographic Firmware

Home Page:https://trussed.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Race condition in read_dir_*/read_files_*

robin-nitrokey opened this issue · comments

As read_dir_files_state and read_dir_state are stored in ServiceResources, they are shared between clients and can cause race conditions if multiple clients call the read_files_* or read_dir_* syscalls. Would be fixed by moving the variables into ClientContext as implemented in #41.