summaryrefslogtreecommitdiff
path: root/integrationtests/pidfd_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-29 22:51:12 +0300
committerPaul Buetow <paul@buetow.org>2026-05-29 22:51:12 +0300
commit9789578fe1363ec2f183cffb48f22bd6b656fd1a (patch)
treec13d72743255b34908b47348f6ff80ee94514839 /integrationtests/pidfd_test.go
parent34821a6dd28ee4bd6282abdca07306605e8f6b1c (diff)
test(migrate_pages): lock in UNCLASSIFIED return classification
Audit of migrate_pages(2) confirmed its tracing classification matches the man page and its NUMA siblings: - KindNull (null_event): args are pid (a pid, NOT an fd), maxnode, and two userspace bitmask pointers; the BPF handler emits a null_event and never reads args[0] as an fd. - FamilyMemory: consistent with set_mempolicy/mbind/move_pages/ set_mempolicy_home_node (the lone get_mempolicy->Security inconsistency is tracked separately and out of scope here). - exit UNCLASSIFIED (ret_event): the return is the count of pages that could NOT be moved (>=0) or -1, a page tally rather than a transferred byte count. Add explicit lock-in assertions for migrate_pages and its sibling move_pages to TestClassifyRetUnclassified so a future stray read/write/transfer reclassification trips the test. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'integrationtests/pidfd_test.go')
0 files changed, 0 insertions, 0 deletions