P1: before the tag
An appendix to the milestone.
P1: before the first release
-
No README, no license files, no changelog, no stranger test. Finding: the crate directory holds
Cargo.toml,src/andfalsifications/. The scaffold expectsREADME.md(badges, one line, EXAMPLES, "What is proven", "Building and testing", "Running the proofs"),LICENSE-MIT,LICENSE-APACHE,CHANGELOG.md,SECURITY.md,CONTRIBUTING.md,CODEOWNERS,_typos.toml,deny.toml,rustfmt.tomlanddocs/stranger-test.md. The crate-level documentation is good and can seed the README, but a crates.io reader never seeslib.rs. Evidence:ls crates/universal_serial_bus;crate-workflows/scaffold/README-crate.md. Change: fill in the scaffold. The README's first line says "host side" and "boot keyboard" so theusb-deviceandusbd-hidcrowd leave at once. "What is proven" states the three bounds (25 configuration bytes, 20 events, 20 header bytes) and names what lies outside them (item 7). A "Where the table comes from" section restates the provenance position of milestone 1019 (the driver crates carry facts from their sources, not their text), so a docs.rs reader sees the license reasoning without opening a module. Then run the stranger test. Door: two-way. Effort: M. -
The crate has no review package, no index row, and no ratification record for its public names. Finding:
notes/crate-reviews.mdhas nousbrow. The xHCI package covers the crate in one paragraph that records no name, no API summary, no proof list and noscript/crate-standaloneresult for it.script/nameslists oneName:block for the crate, so the eight public functions, four public types, one enum and nineteen public constants have noprovisional,recordedorratifiedstate anywhere. Milestone 820 (extensible_host_controller_interface: proven xHCI logic, released on its own) moves the crate on the strength of a review that was never written. Evidence:notes/crate-reviews.mdline 72 (the xHCI row);notes/crate-reviews/README.md("a new package is a new file plus a row in the index"). Change: add anotes/crate-reviews/universal-serial-bus.mdin the index's package shape. It holds the name and version, API, proofs, dependencies (none), the naming-rules table with this review's helper results, and the Decision 1 table as proposed names. It also holds provenance (milestone 1019 item 2), the standalone result, and the recommendation. Add one row in the index. Door: two-way (a note); the names it tables are Decision 1's, decided provisionally. Effort: M. -
The usage table stops at 0x63, so a non-US keyboard loses keys silently. Finding:
evdev_codeanswersNonefor several usages. One is usage 0x64, the ISO key beside the left shift on UK, German and most European layouts (Non-US \ and |,KEY_102ND). The others are 0x65 (Application,KEY_COMPOSE), 0x67 (Keypad =,KEY_KPEQUAL), 0x68 to 0x73 (F13toF24), and 0x87 to 0x8b (the JapaneseInternational1toInternational5keys:KEY_RO,KEY_KATAKANAHIRAGANA,KEY_YEN,KEY_HENKAN,KEY_MUHENKAN). Verified by the scratch test:changesemits nothing for a press of 0x64. The usage names andKEY_*matches here come from memory. A lane must read them from the two sources the module names before it adds any row. The documentation says the table covers 0x04 through 0x63 by design, so this is a scope choice and not a bug, but a stranger with a German keyboard will file it as one. Evidence:crates/universal_serial_bus/src/boot_keyboard.rslines 93 to 96 and 121 to 222. Change: extendTABLEthrough at least 0x8b. Take each row from the Usage Tables and the header exactly as the existing rows came, with a row comment per entry. Leave a usage with noKEY_*match as a hole the comment names. The table becomes[Option<u16>; N]or keepsu16with 0 as "no code"; the first is clearer. Rerun the Linux cross-check and update the fingerprint, asthe_table_matches_its_linux_cross_checkinstructs. Add 0x64 and 0x87 tothe_usage_table_matches_the_keycaps. Door: two-way (adding rows is compatible). Effort: S. -
The proofs leave the two-interface paths and the event order unproven, and the documentation does not say so. Finding: the walk harness stops at 25 bytes, the shortest configuration that reaches an endpoint. The paths that need two interfaces (the
without_endpointrefusal, a candidate reset by a later interface, atoo_smallendpoint followed by an acceptable one) need at least 34 bytes and are outside the proof. Thewithout_endpointpath has no unit test either: the scratch test is the first time it ran, and it answeredNoInterruptIn { interface: 0 }correctly. The report harness proves the bound of 20 events and nothing about their order or their correspondence to the two reports. The crate documentation says the harnesses "prove that for every input up to a bound" without naming the bounds. Evidence:crates/universal_serial_bus/src/verification.rslines 14 to 30 and 44 to 54;crates/universal_serial_bus/src/lib.rsline 7;crates/universal_serial_bus/src/descriptor.rslines 200 to 206 and 263 to 266. Change: a unit test for thewithout_endpointpath (the scratch configuration: a boot interface with zero endpoints, then a non-boot HID interface with one). A fourth harness shaped rather than fully symbolic. It fixes a 9-byte header and two 9-byte interface descriptors, and leaves the class, subclass, protocol and alternate-setting bytes symbolic. It adds two symbolic 7-byte endpoint descriptors. The solver then reaches the second interface at under 50 bytes without the 177-second cost growing past the budget (unverified; measure). A fifth harness, or an assertion in the third, that every event is a modifier usage or a usage present in exactly one of the two reports, and that modifier events precede the rest. Each new harness arrives with a falsification patch. One paragraph in the README and inlib.rsnaming the three bounds and the two things outside them. Door: two-way. Effort: M. -
A descriptor of a known type that falls short of its layout leaves the previous candidate open. Finding: the walk matches
INTERFACE if len >= INTERFACE_LENandENDPOINT if len >= ENDPOINT_LEN; a type-4 descriptor of 2 to 8 bytes falls to the_ => {}arm and does not resetcandidate. Scratch test: a boot interface with no endpoint, then a 4-byte interface descriptor for interface 1, then interface 1's endpoint 0x82, answersOkwithinterface: 0, endpoint: 0x82. The driver would then sendSET_PROTOCOLto interface 0 and read reports from interface 1's endpoint. Only a malformed device reaches this, and the module's stated policy is to refuse rather than trust; a short header is alreadyNotThatDescriptor. Linux skips such a descriptor with a notice and does not reassign it; OpenBSD was not checked for this case. Evidence:crates/universal_serial_bus/src/descriptor.rslines 222, 232 and 254 to 256; the testa_short_descriptor_is_skipped_and_two_bytes_is_enough(lines 477 to 491) pins the current behavior. Change: answerMalformed { at }for a type-4 or type-5 descriptor shorter than its layout. Rewrite the test to assert the refusal and keep its two-byte vendor descriptor case. A maintainer can loosen the stricter reading later. Door: two-way. Effort: XS. -
A usage duplicated in the earlier report releases twice. Finding: presses deduplicate (
!after.keys[..i].contains(&usage)); releases do not. Scratch test:before = [0x04, 0x04, 0, 0, 0, 0],after = RELEASEDemits(30, false)twice. A consumer that counts held keys goes negative; the bound of 20 still holds. Evidence:crates/universal_serial_bus/src/boot_keyboard.rslines 252 to 259 against 260 to 269. Change: the samebefore.keys[..i]guard on the release loop, and a test besidea_duplicated_usage_presses_oncenameda_duplicated_usage_releases_once. Door: two-way. Effort: XS. -
No fuzz target, on the one crate in the pair whose whole input is a stranger's bytes. Finding: the template's
fuzz.ymland weekly fuzz run exist for crates with nounsafe; this crate has none and nofuzz/directory. Kani covers 25 bytes; a fuzzer covers a real composite keyboard's 59 bytes and more. Evidence:ls crates/universal_serial_bus;crate-workflows/scaffold/caller-workflows/fuzz.yml. Change: two targets,find_boot_keyboardover arbitrary bytes andchangesover two parsed reports asserting the same three properties the harnesses assert plus the count bound; the composite and mouse-first configurations from the tests as the seed corpus. Door: two-way. Effort: S.