OreoFR
5d677b7ba2
cpu_emulation: a CLWB #UD on a site another thread rewrote continues at it (RT-CLWB-PATCH)
...
Threads that fault on the same CLWB site together lost the race: a #UD handled
after another thread rewrote the site decoded CLFLUSHOPT (or the NOP), did not
know it and returned EXCEPTION_CONTINUE_SEARCH, which ends the title.
- The handler continues at a site that already holds the form written on this
host (or the NOP's halfway state): the CPU runs it.
- One lock around unprotect, re-check, write and protect again, so two threads
never interleave on a page; a site found rewritten under it is not written.
- The NOP is written opcode first (66 0F 1F /6 in between is a NOP too).
- The sites counter counts each site once, by the thread that wrote it.
cpu_emulation_test calls the handler with a made-up #UD, so it runs on hosts
with CLWB: first #UD, a second one on the rewritten site, and 16 threads on
2048 fresh execute-read sites. Before the fix 27958 of 32768 concurrent #UDs
were passed on, 4810 rewrites were counted for 2048 sites and pages were left
writable; with it all checks pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-28 05:28:00 +01:00
..
2026-11-24 15:05:47 +00:00
2026-11-26 09:07:54 -05:00
2026-11-25 13:09:51 +01:00
2026-11-25 10:53:03 +00:00
2026-11-27 14:24:29 +01:00
2026-11-24 04:58:41 -05:00
2026-11-24 11:42:12 -06:00
2026-11-25 17:30:15 -05:00
2026-11-25 17:30:15 -05:00
2026-11-27 10:17:33 +01:00
2026-11-22 17:09:44 +01:00
2026-11-24 11:42:12 -06:00
2026-11-23 22:32:01 +01:00
2026-11-27 10:17:33 +01:00
2026-11-27 10:17:33 +01:00
2026-11-27 13:49:07 +01:00
2026-11-27 13:49:07 +01:00
2026-11-25 21:20:01 +01:00
2026-11-25 14:30:51 -06:00
2026-11-25 14:30:51 -06:00
2026-11-25 14:30:51 -06:00
2026-11-25 14:30:51 -06:00
2026-11-26 14:47:29 -05:00
2026-11-24 21:05:22 -05:00
2026-11-28 05:28:00 +01:00
2026-11-24 15:48:18 +01:00
2026-11-24 11:42:12 -06:00
2026-11-24 11:42:12 -06:00
2026-11-25 12:39:12 +01:00
2026-11-25 14:30:51 -06:00
2026-11-25 18:18:57 -05:00
2026-11-25 23:28:38 +01:00
2026-11-25 16:35:47 -05:00
2026-11-24 11:42:12 -06:00
2026-11-24 11:42:12 -06:00
2026-11-25 09:37:42 +01:00
2026-11-26 00:01:37 +01:00
2026-11-25 14:30:51 -06:00
2026-11-27 17:58:38 -05:00
2026-11-27 17:58:38 -05:00
2026-11-25 13:17:09 +08:00
2026-11-25 03:44:43 -06:00
2026-11-25 22:10:37 +00:00
2026-11-23 23:07:51 +01:00
2026-11-27 17:58:38 -05:00
2026-11-25 08:07:27 -05:00
2026-11-25 00:25:24 +01:00
2026-11-26 16:43:28 -05:00
2026-11-26 16:43:28 -05:00
2026-11-25 03:44:43 -06:00
2026-11-25 03:44:43 -06:00
2026-11-25 16:00:22 +01:00
2026-11-25 21:59:36 +01:00
2026-11-25 18:52:28 +01:00
2026-11-24 19:52:07 -05:00
2026-11-27 13:24:49 +01:00
2026-11-26 14:31:34 -05:00
2026-11-26 14:31:34 -05:00
2026-11-25 18:18:57 -05:00
2026-11-24 11:51:04 +05:00
2026-11-25 14:55:52 +01:00
2026-11-28 00:48:31 -03:00
2026-11-27 17:58:38 -05:00
2026-11-24 20:26:00 -05:00
2026-11-25 14:30:51 -06:00
2026-11-26 02:36:38 +01:00
2026-11-26 13:13:04 +01:00
2026-11-26 05:00:01 -06:00
2026-11-24 11:42:12 -06:00
2026-11-25 18:37:48 -05:00
2026-11-25 04:46:33 +01:00
2026-11-22 16:51:05 +01:00
2026-11-22 19:45:00 +01:00
2026-11-22 19:45:00 +01:00
2026-11-23 16:11:49 -06:00
2026-11-24 05:10:18 -05:00
2026-11-24 05:10:18 -05:00
2026-11-24 05:10:18 -05:00
2026-11-24 20:26:00 -05:00
2026-11-25 14:30:51 -06:00
2026-11-24 20:26:00 -05:00
2026-11-27 17:58:38 -05:00
2026-11-23 19:42:49 -05:00
2026-11-24 15:16:22 +00:00
2026-11-24 21:19:30 +08:00
2026-11-25 16:40:13 -05:00
2026-11-25 16:40:13 -05:00
2026-11-24 11:42:12 -06:00
2026-11-26 04:40:16 -05:00
2026-11-26 01:22:14 +01:00
2026-11-23 23:18:39 +01:00
2026-11-23 12:47:18 -06:00
2026-11-22 18:59:19 +01:00
2026-11-24 12:35:29 +00:00
2026-11-24 12:35:29 +00:00
2026-11-25 21:35:10 -03:00
2026-11-24 11:42:12 -06:00
2026-11-25 18:36:19 -05:00
2026-11-25 14:30:51 -06:00
2026-11-25 14:30:51 -06:00
2026-11-25 14:30:51 -06:00
2026-11-26 10:43:18 -05:00
2026-11-26 11:18:19 +02:00
2026-11-27 22:16:26 +01:00
2026-11-27 22:16:46 +01:00
2026-11-27 16:38:40 +01:00
2026-11-27 16:38:40 +01:00
2026-11-24 11:42:12 -06:00
2026-11-24 20:57:36 +01:00
2026-11-25 06:43:13 -05:00
2026-11-26 09:34:33 -05:00
2026-11-25 03:44:43 -06:00
2026-11-25 03:44:43 -06:00
2026-11-27 22:17:05 +01:00
2026-11-26 14:48:57 -05:00
2026-11-25 03:44:43 -06:00
2026-11-27 13:24:49 +01:00
2026-11-22 15:27:09 +00:00
2026-11-25 22:29:35 -05:00
2026-11-25 06:43:13 -05:00
2026-11-24 21:40:02 +08:00
2026-11-25 03:44:43 -06:00
2026-11-26 16:43:28 -05:00
2026-11-25 03:44:43 -06:00
2026-11-25 18:18:57 -05:00
2026-11-25 00:25:24 +01:00
2026-11-23 23:16:12 +01:00
2026-11-25 03:44:43 -06:00
2026-11-25 03:44:43 -06:00
2026-11-25 03:44:43 -06:00
2026-11-25 14:30:51 -06:00
2026-11-27 12:46:36 +01:00
2026-11-27 13:43:04 +01:00
2026-11-25 13:46:01 +01:00
2026-11-24 11:42:12 -06:00
2026-11-22 13:19:18 +01:00
2026-11-26 07:50:38 +01:00
2026-11-26 07:50:38 +01:00
2026-11-26 07:50:38 +01:00
2026-11-24 11:09:18 +05:00