What it is
A supplier sends you a QNX 8.0 driver: accept or reject? Pathfuzz tells you what one malformed message costs a 1 kHz test client of that driver, hands you a one-file reproducer, and referees the supplier's fix by execution: replay, contract, budget. Your own driver: same loop, live with the SDK; a dry run without it.
What the referee caught, in a prompt A/B. We asked a language model (not named) to patch our planted drivers in 14 recorded sessions. Arm A strips the header's field comments and says nothing about contracts or a budget; arm B keeps both. Same model command, drivers and tool.
| prompt arm | sessions | first patch refused | first patch passed |
|---|---|---|---|
| A: no field comments, no contract sentence | 7 | 4 | 3 |
| B: field comments and the contract sentence | 7 | 0 | 7 |
All four refusals are on sensor_rm (4 of 4 in arm A, 0 of 4 in arm B): the
patch stopped both stored reproducers and never checked the reserved field, and
the contract probe named it, sensor_config.zero must be 0 (reserved), exit
- Probe values are drawn per run and never in a prompt. On the other two
drivers the arms did not differ. Fed its own patch, the verdict and reasons, the second patch
passed in all four; only two count, because in the first two our feedback also
showed the answer (a flaw we fixed and kept on record). Seven sessions per
arm, one model, two prompt changes at once, the last four sessions added on
sensor_rmafter the first ten: an observation, not a rate.
Three more refusals, of candidates we wrote to show each path (regress on
the clean twin: 2 of 2 fixed; on the planted build: 2 of 2 still affected):
- By replay. A cap of 4096 on the length stops the crash and still lets a length larger than the 64-byte buffer through: 1 of 2 stored reproducers still reproduces, exit 1.
- By contract. A patch that bounds the length and never checks the
reserved field.
regressprobes the field contracts the target file declares:CONTRACT BROKEN, exit 1. - By budget. A complete patch that then waits 120 ms:
regressFIXED, exit 0;acceptREJECT, exit 1, "refused: deadline budget". No finding; 106 (99–115) missed deadlines against a budget of 5 (live again on 3 Dec, one take: 122.5, exit 1). The meter charges every period a late reply covers; without the watchdog it cost 132.5, still REJECT.
The fourth passes. Execution decides; a person merges (AGENTS.md).
It is a host tool (SDK in a container; tested on macOS). Coverage and the guard need the header and a build you can compile; a binary-only driver is tested blind.
Why it matters, and who it is for
For a driver engineer, or an integrator taking delivery of someone else's
resource manager. One common way to test today is hand-written negative tests,
one devctl at a time: they check the reply, not what the message costs a
client with a deadline.
QNX's System Security Guide names length and permission checking as the two
main sources of resource-manager vulnerabilities. CVE-2026-54436 (QNX SDP 8.0,
io-char devctl handler, 10 Nov 2026) is a heap buffer overflow; our planted
case is a trusted-length overflow of a static buffer — the same family, not the
same CWE, cited and not reproduced. In QNX's own developer survey (21 Oct
2026), debugging and testing is the top challenge, named by 44 % of developers
(+8 points).
What the committed runs found
QEMU TCG, emulated; budget 5 missed deadlines per message; 10 runs per row; six packs, 27 Nov 2026.
| one message | bystander missed 1 ms deadlines, median (range) | quiet baseline | after the guard |
|---|---|---|---|
sensor_rm: driver stops serving, watchdog restarts it |
42 (38–52) | 4 (0–8) | 3.5 (1–7) |
| same message, no watchdog (reference) | 1972.5 (1964–1980) | 5 (1–10) | n/a |
sensor_rm: driver exits |
11 (7–20) | 3 (0–8) | 3 (1–4) |
logbuf_rm: driver exits |
12.5 (9–16) | 2 (0–6) | 3 (1–7) |
ring_rm: driver goes silent, watchdog restarts it |
118.5 (104–136) | 4 (0–6) | 5 (0–9) |
| same message, no watchdog (reference) | 1973.5 (1944–1980) | 4 (1–13) | n/a |
The two reference rows are the rest of a 3 s run: with no supervisor the driver stays down. Verdict for the three planted drivers: REJECT; the clean twin of each: 0 findings, ACCEPT.
One caveat sits on every timing number. Under emulation our 1 kHz client woke
more than 1 ms late on 15 to 69 % of its ticks (36 to 67 % in the two blind
packs; late_wakeups in every record.json). The delay itself is not charged
(each deadline is timed from when the request is issued), but a late tick still
counts as missed if its request fails or is slow. Cause not isolated. This is our client under the emulator, not a measure of QNX scheduling, so
the result is the contrast, not the absolute numbers.
Blind runs: a headerless binary, and code we did not write
1 Dec 2026: one run each, 300 inputs, no coverage feedback, through launch,
same meter and budget.
- Binary only. Our planted
sensor_rm, stripped, no header: 2 messages of 16 bytes each, one stops it serving (45 (41–56) against 0), one makes it exit (15 (11–23) against 1). REJECT. We wrote the driver and its two seeds, so this shows the path, not an unknown format. - Third party.
devnow, a small read-only example resource manager from a public repository (BSD-2-Clause; provenance inCLAIMS.md), built unmodified: 300 inputs, 0 findings, ACCEPT. Reads only, so the run is shallow.
No service shipped in the SDP was run.
For judges
| Criterion | In the repo |
|---|---|
| What it does, by execution | acceptance/sensor_rm/report.html |
| Real-time cost of one message | drivers/common/rt_client.c |
| The referee and its refusals | SESSIONS.md, sessions/, AGENTS.md, pf_agent.c |
| Every claim tagged; full map | CLAIMS.md, JUDGES.md |
| Film, by record | live: live/accept_20261203-070606Z__sensor_rm/, regress/live_20261201-220024Z__sensor_rm_twin/, live/accept_20261203-090635Z__sensor_rm_patch_3/; ours: sessions/referee_20261201-210810Z/; model: -20261202-010019Z/; music licence: docs/MUSIC_LICENCE.md |
How it uses QNX 8.0
- Resource managers and native message passing. It drives the
devctl,io_writeandio_readpaths over several connections.devctlformats come from the driver's header as delivered (unions, nested structs, the SDP's own typedefs); writes and reads are op sequences. The layout anddevctlcodes are compiled as_Static_asserts withqccin every run. - Real-time scheduling. A nominal 1 kHz SCHED_FIFO client measures missed
deadlines (
drivers/common/rt_client.c). - Crash attribution. For a crash at confirm time, a
dumpercore is read withntox86_64-gdbto a source line; a hang has none. - Timeouts and unblocking.
_NTO_CHF_UNBLOCKandTimerTimeoutfor the silent driver;posix_spawnandsigtimedwaitin the supervisor. - Security policies. A second image built with
mkqnximage --secpoland a fragment generated fromtarget.json; we check what it allows and refuses.
Our ASan build did not start in this setup, so the crash oracle is the exit
signal (docs/ASAN_OPEN_ITEM.md).
Build and run
- Version, target, toolchain: QNX SDP 8.0,
qcc(GCC 12.2); QNX 8.0 on QEMU x86_64 (TCG). - No SDK needed to check the evidence:
make testandbuild/check_quickstart.shrebuild the eight packs from their recorded runs offline and recompute bothregressresults. - Live, with the SDK:
create-container.sh,make image,build/qemu_run.sh start, thenpathfuzz accept --target targets/sensor_rm.json(run live on 3 Dec: REJECT, exit 1, guard proved;live/accept_20261203-070606Z__sensor_rm/).
The QEMU image is not committed (SDP licence). CI has run locally, not on GitHub.
Limits
- Emulator. Every timing number is QEMU TCG, one architecture, one image. No hardware, no KVM. The watchdog is our test fixture.
- Targets. Three drivers we wrote, one planted defect each, their clean twins, and one small third-party read-only example resource manager. No SDP service and no closed supplier binary.
- Your driver, live. It starts on a peripheral-less QEMU guest; a hardware-bound driver needs a loopback or simulation mode.
- Guards. Length, window and limit contracts on
devctlmessages, for a driver that can be rebuilt; proved for the recorded reproducers only. - Referee. Only declared contracts are probed, a few messages each. The four candidates are ours. The meter charges every period a late reply covers, failed or slow; the eight committed packs use the earlier meter.
- AI. No model runs inside the tool or decides a finding or a verdict. A language model proposed 25 patches from outside; the tool checked them.
Reporting
Findings in code we did not write go to its owner first; public text gives counts only, and the reproducers go to an owner bundle beside the pack (host-tested only). We do not test other contest entries.