Commit 3e48cb3
authored
test(uffd): unregister UFFD range before fd close in cross-process cleanup (#2476)
Add an unregister() helper around UFFDIO_UNREGISTER and call it from the
late cmd.Wait() cleanup in configureCrossProcessTest, before the early
uffdFd.close() cleanup runs (cleanups are LIFO).
Today this is a no-op: no test enables UFFD_FEATURE_EVENT_REMOVE, so the
kernel never queues REMOVE events that could keep munmap blocked on
un-acked events against a registered range. Pulling this out as its own
small change so the upcoming PR that does enable REMOVE events doesn't
silently bring along a behavioural test-cleanup change too.1 parent 9af47c0 commit 3e48cb3
2 files changed
Lines changed: 23 additions & 0 deletions
File tree
- packages/orchestrator/pkg/sandbox/uffd/userfaultfd
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
190 | 198 | | |
191 | 199 | | |
192 | 200 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
44 | 59 | | |
45 | 60 | | |
46 | 61 | | |
| |||
0 commit comments