geramyloveless
0ee07c4401
MMIO token numbers are renewed between sessions
...
Every DriverKit MMIO mapping takes a token number (1..511) that doubles
as its synthetic pointer. To keep a stale pointer from reaching a
different mapping, an unmapped number was never issued again, so each
session consumed about four for good: the register token, upstream's
register ioremap and the kernel doorbell kmap among them. After roughly
120 session open/close cycles none were left; the doorbell kmap failed
and the probe returned -ENOMEM (242: "kernel bo map failed",
quarantine, restart required).
The numbers are now renewed when the last mapping is unmapped. The
session's register token lives from dext_open to dext_close, so an empty
table means no session, no upstream module and no synthetic pointer
remain. Within a session an unmapped number is still never reissued.
test-session-cycles runs 300 session open/probe/close cycles through the
real upstream probe and the production PCI, MMIO-token and heap code
against a mock IOPCIDevice, and checks after every close that no MMIO
mapping survives and that heap, DART-mapped bytes and mappings, page
descriptors and threads are at their baseline. Before this change it
fails at cycle 255 with the probe returning -ENOMEM. The DriverKit token
bounds test also covers renewal and in-session non-reuse.
2026-10-05 00:25:22 -07:00
..
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:41:36 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 18:49:17 -07:00
2026-10-04 20:27:43 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-04 09:29:20 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:19 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:19 -07:00
2026-10-02 20:56:19 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-04 17:48:52 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-03 17:50:21 -07:00
2026-10-02 20:41:36 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-05 00:25:22 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-03 17:50:21 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-03 15:44:38 -07:00
2026-10-02 20:56:19 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-03 20:01:06 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-03 17:50:21 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:19 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:42:02 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 20:56:19 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 21:22:41 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-03 17:50:21 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 20:56:28 -07:00
2026-10-02 18:49:17 -07:00
2026-10-02 18:49:17 -07:00
2026-10-04 20:27:43 -07:00