Alexander
Building low-level Linux tooling and binary analysis utilities in Rust and C++20.
Projects
isa-audit
Static x86-64 ELF64 instruction auditor written in safe Rust with zero dependencies. It scans executable ELF sections, decodes legacy, REX, VEX, and EVEX instructions, diffs builds for ISA regressions (isa-audit diff --fail-on-regression), and fails CI with exact addresses and symbol offsets when forbidden instructions slip into a binary.
427 KB stripped binary. Decodes /usr/bin/objdump at 281.6 MiB/s (~70M instructions/sec) single-threaded with 0 recovery steps, verified against live g++ compilations across x86-64 ISA flags (SSE, AVX, FMA3, AVX2, BMI, AES, SHA-NI, VAES, VPCLMULQDQ).
Try the x86-64 instruction decoder
Pick a real machine-code sequence or type hex bytes to test how isa-audit classifies prefixes and checks the avx-no-fma target policy.
- Required ISA
- Encoding
- Length
- Policy check
Writing
-
How live
g++object files andobjdumpdisassembly exposed anET_RELsymbol offset bug and 26 false positives from baselinetzcnt(rep bsf).
Open-source contributions
-
R0Y00/Xbox2Windows #840: extend int16 ternary matrix for all orderings, ties and
Merged Nov 2026med3chainExtended the
draw-int16-ternarytest matrix and reference intests/pixel_aot_check.pyfrom 6 to 12 word sets with explicit assertions covering all 6 strict signed/unsigned orderings and all 4 tie patterns, plus a chainedlow16v_sub_nc_u16 -> v_med3_u16 -> v_med3_i16 -> v_min3_i16fixture, draw mutations, andv_med3_u16high-half refusal checks. -
R0Y00/Xbox2Windows #838: lower gfx1013
Merged Nov 2026v_cvt_flr_i32_f32andv_cvt_rpi_i32_f32inpixel_aotDecoded VOP1 opcodes
0x0c/0x0d(and VOP30x18c/0x18d) intools/disasm_rdna2.pyand lowered 4 floor/round-to-nearest-up float-to-int forms intools/pixel_aot.pywith SSA-keyed range provenance checks restricting lowering to finite inputs proven in[-2^31, 2^31)after optional bitwiseabs/negmodifiers, backed by LLVMgfx1013round-trips, refusal controls, and D3D12 draw checks. -
R0Y00/Xbox2Windows #540: lower gfx1013
Merged Nov 2026v_cvt_u32_f32_e64andv_cvt_i32_f32_e64inpixel_aotLowered VOP3 truncating float-to-integer conversions with optional bitwise IEEE-754
abs/negsource modifiers on VGPR, SGPR, and hex literal inputs into the sharedsrc/ffx_float_to_int.hlslihelpers, verified bit-for-bit across 18 edge words on RTX 5070, RTX 3060 Ti, WARP, and 14 negative controls. -
Lowered all 8
v_mul_{i32_i24,u32_u24,hi_i32_i24,hi_u32_u24}(_e32/_e64) forms in pure 32-bit SM 6.0 HLSL via lazy helpers without requiring 64-bit integer shader ops, verified across 1,000,529 fuzz pairs, LLVM binary round-trips, and batched D3D12 WARP draw checks with 6 wrong-mode and mutated-shader controls. -
Replaced repeated regex tokenization and redundant filesystem walks in
package_headers.py(#25577, 3.51x),check_test_registration.py(#25578, 4.60x),shader_scan.py(#25579, 5.20x),test_public_headers.py(#25580, 2.33x), andprogress.py(#25581, 2.02x), all verified byte-identical by SHA-256 and differential fuzzing. -
R0Y00/Xbox2Windows #539: support multi-store and constant-SGPR compute kernels in
Merged Nov 2026compute_store_aotExtended
tools/compute_store_aot.pyto lower non-overlapping multi-store raw UAV compute kernels, general 32-bits_mov_b32/ sign-extendeds_movk_i32constant SGPRs,s_clausehints, andvmcnt(0)waits, verified withMULTI_FIXED/MULTI_INDEXEDfixtures and 7 negative controls on Linux LLVM and Windows D3D12 CI. -
R0Y00/Xbox2Windows #538: track lowered scalar, VOP3P, SDWA and conversion ops in
Merged Nov 2026scan_unsupported_shadersStripped
_sdwasuffixes and syncedKNOWN_RDNA2_BASE_OPCODESandSUPPORTED_INSTRUCTIONS_REGEXwithtools/pixel_aot.py, dropping 111 unrecognized and 723 falsely unsupported instructions across 73 shader fixtures to 0 sopso_readiness.pyno longer misblocks accepted shaders. -
R0Y00/Xbox2Windows #521: add
Merged Nov 2026dxil_retarget_probe_hardwareGPU signing and dispatch testExtended
tests/dxil_retarget_check.pyandCMakeLists.txtwith a hardware-adapter CTest (SKIP_RETURN_CODE 77) verifying re-signeddxil-ms-xb2CreateComputePipelineStateand live compute dispatch on physical GPUs, verified 10/10 on an NVIDIA RTX 3070 with unsigned and 1-bit-tampered negative controls. -
Implemented
src/d3d12_xs_shim.cppexportingD3D12SerializeVersionedRootSignature(clearing only the observed0x03000000console bits while keeping unobserved flags rejected) andD3D12CreateRootSignatureDeserializer, resolving the remaining pre-executable DLL imports and passing 4 CTest scenarios including live WARPCreateRootSignatureandCreateComputePipelineState. -
R0Y00/Xbox2Windows #346: re-sign retargeted DXIL containers and verify compute PSO creation
Merged Nov 2026Added in-place
dxil.dllsigning (root_probe --sign),root_device_probe --compute-pso, and live compute dispatch checks (offscreen_check --compute-root-file) so retargeteddxil-ms-xb2shaders pass desktopCreateComputePipelineStateand execute on WARP and NVIDIA GPUs with 0 readback mismatches. -
R0Y00/Xbox2Windows #306, #308, #310: lower 49 gfx1013 RDNA 2 instructions in
Merged Nov 2026pixel_aotAdded HLSL lowering and D3D12 hardware + WARP readback coverage in
tools/pixel_aot.pyfor all 32 32-bit integer comparisons (#306), 14 integer min/max/med3 forms (#308), and bit-exact IEEE-754v_frexp_mant_f32/v_ldexp_f32(#310). -
Eliminated redundant reads and repeated labeling passes in
tools/debt_report.py, cutting runtime by 2.66x on Linux and 2.27x on Windows 11 NTFS (5.889s to 2.592s) with byte-identical text and JSON output across 19 tests. -
Maintained section line spans incrementally during fragment folding in
tools/debt_fold.pyinstead of re-parsing full files on each splice, cutting runtime from 2.873s to 0.508s (5.66x faster) across 1,138 fragments in 163 files with byte-identical output. -
boykopovar/AnyPS5 #25162: skip unneeded env scans and fast-scan C++ tokens in
Merged Nov 2026check_conventionsSkipped unrelated repository-wide environment scans and replaced per-token regex scanning in
tools/check_conventions.py, cutting runtime by 7.67x onHEAD~1(0.620s to 0.081s) and 2.71x onHEAD~20across 278 unit tests and 50,000 fuzz cases. -
R0Y00/Xbox2Windows #227: ignore MASM macros/prefixes and inspect JUnit children in
Merged Nov 2026form_coverageFiltered MASM
LOCALdirectives and user-defined macros, stripped leading x64 prefixes (lock,rep*), and checked JUnit<failure>/<error>/<skipped>child elements intools/form_coverage.py. -
Updated
scene_records()intools/resource_inventory.pyto advance its scan cursor bystored - len(stream.unused_data)instead of the full declared span, preventing oversized records from skipping subsequent shaders while preserving trailing-byte accounting, verified with synthetic DXContainer tests. -
R0Y00/Xbox2Windows #231: fix VOPC classification and inline comments in
Merged Nov 2026scan_unsupported_shadersReordered
v_cmp*checks intools/scan_unsupported_shaders.pyso typed RDNA 2 compare instructions classify asVOPCinstead of generic FP/integer groups, stripped inline//comments consistently, and excluded blank and comment-only lines from instruction totals. -
R0Y00/Xbox2Windows #192: validate shader records and output stems in
Merged Nov 2026extract_shadersHardened RPF shader record scanning in
tools/extract_shaders.pyby bounding raw-DEFLATE andXBCHinflation, advancing the scan cursor strictly by consumed DEFLATE bytes so oversized spans and false headers cannot skip subsequent shaders, guarding empty archives, and tracking case-insensitive output stems across 5 new synthetic tests. -
R0Y00/Xbox2Windows #131: validate DXContainers and mapped PE section bounds in
Merged Nov 2026call_evidenceReused
resource_inventory.parts()insidetools/call_evidence.pyso unordered DXContainer part tables are indexed while overlapping parts and duplicate FourCC tags are rejected, and added_mapped_rva()bounds checks to avoidTypeErrorcrashes and bogus RVAs on unmapped PE overlays, backed by synthetic PE32+ fixtures. -
Replaced 8,064 per-parameter regex compiles and 4.86M token callbacks in
tools/guest_pointer_audit.pywith module-level scanners and a non-code trigger scanner, cutting runtime from 3.79s to 0.54s (7.0x faster) across 1,801 C++ files with identical SHA-256 output and 0/50,000 fuzz mismatches. -
Eliminated O(N^2) path re-indexing and triple tokenization across 7,766 C++ source files in
tools/env_reference.py, cutting--checkruntime from 50.56s to 3.92s (~13x speedup) with byte-identical SHA-256 output and all 114 tests passing.
In progress
-
Static ELF64 scanner in safe Rust (549 KB stripped, zero dependencies) that parses
PT_GNU_RELRO,PT_GNU_STACK,SHT_DYNAMIC,SHT_DYNSYM,SHT_GNU_VERSYM, andSHT_GNU_VERNEEDto pinpoint offendingGLIBC/GLIBCXXsymbols,GLIBC_ABI_DT_RELRtags, and binary hardening flags (PIE,RELRO,NX, stack canaries). Ships 8 Linux distro baselines (--target), build-to-builddiffregression gating, and--format text|json|markdown|sarif(SARIF 2.1.0), verified against GNUreadelfand livegcc/g++builds on Linux, macOS, and Windows CI. -
convto
Zero-dependency safe Rust (685 KB) Linux file-manager context menu ("Convert to" and "Shrink / Optimize...") and parallel CLI for KDE Dolphin, GNOME Files, Nemo, and Thunar. Supports magic-byte format sniffing, binary-search image size targeting, two-pass exact-bitrate video shrinking, Ghostscript PDF shrinking, built-in JSON/YAML/TOML/CSV/TSV conversion, and zip-slip-checked archive repacking, plus a native GTK4 interactive shrink dialog.
-
Upstream tooling
Contributing shader, runtime, performance, and static-analysis fixes to R0Y00/Xbox2Windows, boykopovar/AnyPS5, m4b/goblin, and oxc-project/oxc.