littlekernel / lk

LK embedded kernel
MIT License
3.12k stars 613 forks source link

port_create race test and fix #215

Open redpig opened 6 years ago

redpig commented 6 years ago

port_create() has a known race condition in name reservation because of the separation of name uniqueness validation and name addition. This pull request adds a test that verifies the race is reachable, fixes the race, and updates the test with slight changes to support it.