Repository navigation
Commit 9da7715
committed
Fix memcheck fork-child endpoint leaks
Free the inherited POSIX daemon endpoint in the three fork tests before their children call _exit. These losses were test artifacts, not product ownership bugs.
Re-exec the user namespace probe using the runner path recorded from argv[0]. Under Valgrind, /proc/self/exe can resolve to the instrumentation executable, so the probe did not reliably start a fresh test-runner process to derive the namespace overflow uid. Re-executing the runner preserves the fresh-process check while allowing Valgrind to report the test result.
Create build/ before allocating the temporary memory-analysis build directory so the script works on a fresh checkout.1 parent f701caf commit 9da7715
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
3262 | 3264 | | |
3263 | 3265 | | |
3264 | 3266 | | |
| 3267 | + | |
3265 | 3268 | | |
3266 | 3269 | | |
3267 | 3270 | | |
| |||
3352 | 3355 | | |
3353 | 3356 | | |
3354 | 3357 | | |
| 3358 | + | |
3355 | 3359 | | |
3356 | 3360 | | |
3357 | 3361 | | |
| |||
3447 | 3451 | | |
3448 | 3452 | | |
3449 | 3453 | | |
| 3454 | + | |
3450 | 3455 | | |
3451 | 3456 | | |
3452 | 3457 | | |
| |||
5581 | 5586 | | |
5582 | 5587 | | |
5583 | 5588 | | |
5584 | | - | |
| 5589 | + | |
| 5590 | + | |
| 5591 | + | |
| 5592 | + | |
5585 | 5593 | | |
5586 | 5594 | | |
5587 | 5595 | | |
| |||
0 commit comments