aboutsummaryrefslogtreecommitdiff
path: root/source/Target/ThreadPlanPython.cpp
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2026-08-25 18:55:23 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2026-08-27 14:02:39 +0000
commit17fca802ded118102d04a7a0bbc0c076de18c4d8 (patch)
treec4f8e718c0044a888d8179a6335f62a1575e7e18 /source/Target/ThreadPlanPython.cpp
parent068957e040f40eb7f484b2530481f3eae02f9d44 (diff)
hwpmc: add tests for handle validation and the privilege boundaries
A pmc_id_t is a packed integer that the driver hands to userland and accepts back on eleven operations, and nothing tested what happens when one comes back forged, stale, or belonging to another process. Neither was there a test that an unprivileged caller is refused the operations that need a privilege. The cases use a SOFT-class PMC wherever the counter itself does not matter, so they run on a machine with no PMU. MFC after: 1 month MFC to: stable/15 MFC to: stable/14 Assisted-by: Claude Code (Opus 5)
Diffstat (limited to 'source/Target/ThreadPlanPython.cpp')
0 files changed, 0 insertions, 0 deletions