]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
security: Round 5.5 posix_spawn PID fix (A13)
authorTulio A M Mendes <[email protected]>
Mon, 25 May 2026 19:16:48 +0000 (16:16 -0300)
committerTulio A M Mendes <[email protected]>
Mon, 25 May 2026 19:16:48 +0000 (16:16 -0300)
commitedcd741cd8b8a8b2e9a91ef4333c21615a8cf72e
treebe2294d36651273489f652abe89e64437b5785e5
parent7a65be564a35035f21a8e0b56701bc8d051718ab
security: Round 5.5 posix_spawn PID fix (A13)

A13: Fix posix_spawn wrapper to preserve child PID
- Kernel copies child PID to *pid via copy_to_user
- Wrapper was overwriting *pid with return value (0 on success)
- Removed the line that overwrote *pid, kernel already filled it in

Tests: 119/119 PASS (smoke test, SMP=4)
user/ulibc/src/spawn.c