trussed-dev/trussed

Race condition in read_dir_*/read_files_*

robin-nitrokey opened this issue · 0 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.