bp: ARM64 breakpoint driver (HWBP/PTEBP/STEPBP) with stable ioctl ABI - #8
Closed
MoonBypass wants to merge 5 commits into
Closed
bp: ARM64 breakpoint driver (HWBP/PTEBP/STEPBP) with stable ioctl ABI#8MoonBypass wants to merge 5 commits into
MoonBypass wants to merge 5 commits into
Conversation
MoonBypass
force-pushed
the
codex/bp-driver
branch
from
August 8, 2026 02:46
2cc5ac9 to
206420f
Compare
… STEP via TIF_NOTIFY_RESUME
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds �p/, an ARM64 breakpoint driver (module �p, device /dev/bp) derived from this repository's lsdriver breakpoint subsystems (HWBP / PTEBP / STEPBP), rebuilt around a stable char-device ioctl ABI, lifecycle-safe sessions, full unload support and mapping-invalidation fail-closed.
ABI
include/bp_uapi.h (kernel mirror kernel/abi/bp_uapi.h), BP_ABI_VERSION 1.0, 11 ioctls (INFO, PTE/HWBP/STEP arm/status/stop, HWBP record). See �p/docs/BREAKPOINT_ABI.md.
Test results (7 QEMU, serial and parallel)
QEMU suite covers: ABI/error paths (500-iteration ioctl fuzz), PTE S0 write-back + persistence + cookie + stop restore, mapping-invalidation fail-closed, HWBP x0 write-back + watchpoint + record, exec auto-clean, 4x500 concurrent arm/status/stop, hit storm (300k+ hits), 50x fork/arm/exit, unload/reload, dmesg cleanliness (0 panic/Oops/CFI/RCU/warning signatures).
Known limitations
Rollback
Remove the �p/ directory and rebuild; the driver is fully unloadable (
mmod bp) and keeps no residual state.