summaryrefslogtreecommitdiff
path: root/internal/export
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-30 22:02:43 +0300
committerPaul Buetow <paul@buetow.org>2026-05-30 22:02:43 +0300
commit9d5d1138df447a29da1ca7c733aa09ffabce703b (patch)
treeb6d19c5d8715e261fc6d9fc2ba7f3cd8c82324d4 /internal/export
parentfa7ab433b424d68e62612961d0128fbdaea3d64d (diff)
test(mlockall): lock in KindNull/FamilyMemory classification
Audit of mlockall(2) (task 6w). mlockall(int flags) locks ALL process memory and takes a single flags bitmask (MCL_CURRENT/MCL_FUTURE/ MCL_ONFAULT) with NO address range, unlike its KindMem siblings mlock/mlock2/munlock (which take addr+len). It is therefore correctly classified KindNull in FamilyMemory, matching its sibling munlockall(2). All existing classification (classify.go, family.go, generated artifacts, docs plan) already match; no fixes needed. Add two lock-in tests documenting the reasoning: TestGenerateNullHandlerMlockall asserts the enter handler emits a null_event and never captures the flags int as an addr/fd/path, and TestClassifyRetMlockallUnclassified asserts the 0/-1 return is UNCLASSIFIED (not a byte count). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'internal/export')
0 files changed, 0 insertions, 0 deletions