This also fixes a bug where p_osrel and p_fctl0 were obliterated by failed execve(2) attempt, to be committed separately.
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/kern/kern_exec.c | ||
---|---|---|
398 ↗ | (On Diff #64363) | I do not think so, it would cause spurious failures from the sysctl. Would NOTINEXEC was implemented as a wait for transition to non-execing state, then perhaps. But I think it is fine to see transient move of p_osrel during failing exec. |
sys/kern/kern_exec.c | ||
---|---|---|
410 ↗ | (On Diff #64398) | We can use p here too. |
sys/kern/kern_exec.c | ||
---|---|---|
398 ↗ | (On Diff #64363) | I was thinking that since the sysctl can update the p_osrel, its update may be clobbered when we roll back after a failed exec. But of course this race is possible even when the exec is successful. |