]> 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]>
Wed, 3 Jun 2026 04:02:35 +0000 (01:02 -0300)
commitdf20f869142156576e4c14ae957b1a441859f9a2
tree91a4308ad982928698ae064b57a237c1bfb913c0
parent02d3a2eabf98faabbd5a0d3e20a50816fb4d1671
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