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-27 16:10:51 -03:00
2026-11-26 22:43:12 +01:00
2026-11-27 23:50:27 +01:00
2026-11-26 09:07:53 -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-25 21:59:36 +01:00
2026-11-25 15:11:11 +01:00
2026-11-26 14:48:57 -05:00
2026-11-27 16:10:51 -03:00
2026-11-26 12:40:56 -05:00
2026-11-24 20:18:37 -05:00
2026-11-27 13:49:07 +01:00
2026-11-25 14:30:51 -06:00
2026-11-25 21:20:01 +01:00
2026-11-26 14:47:29 -05:00
2026-11-28 05:28:00 +01:00
2026-11-26 02:27:26 -06:00
2026-11-24 19:54:46 -05:00
2026-11-24 20:26:00 -05:00
2026-11-25 15:11:11 +01:00
2026-11-25 03:44:43 -06:00
2026-11-24 19:38:04 -05:00
2026-11-25 03:44:43 -06:00
2026-11-27 04:54:43 -06:00
2026-11-25 16:24:17 +01:00
2026-11-25 14:30:51 -06:00
2026-11-26 02:25:52 +01:00
2026-11-24 20:53:44 -05:00
2026-11-25 03:44:43 -06:00
2026-11-27 22:16:29 +01:00
2026-11-26 01:25:22 +03:00
2026-11-25 03:44:43 -06:00
2026-11-25 03:44:43 -06:00
2026-11-25 18:36:19 -05:00
2026-11-24 20:53:43 -05:00
2026-11-27 14:24:29 +01:00
2026-11-26 09:16:34 -05:00
2026-11-25 03:44:43 -06:00
2026-11-27 14:24:29 +01:00
2026-11-25 14:30:51 -06:00
2026-11-24 20:26:00 -05:00
2026-11-26 01:58:24 +03:00
2026-11-25 03:44:43 -06:00
2026-11-25 03:44:43 -06:00
2026-11-25 21:35:42 -03:00
2026-11-25 21:35:10 -03:00
2026-11-25 03:44:43 -06:00
2026-11-24 21:35:06 -05:00
2026-11-25 19:19:20 +03:00
2026-11-25 22:27:19 +10:00
2026-11-27 19:25:41 +01:00
2026-11-25 20:40:23 +05:00
2026-11-25 22:27:19 +10:00
2026-11-26 00:01:32 +03:00
2026-11-27 13:01:19 +02:00
2026-11-25 18:18:57 -05:00
2026-11-25 18:36:19 -05:00
2026-11-25 03:44:43 -06:00
2026-11-25 19:04:43 +01: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-24 20:26:00 -05:00
2026-11-25 16:35:47 -05:00
2026-11-25 09:37:42 +01:00
2026-11-25 17:23:18 -05:00
2026-11-26 00:00:45 +01:00
2026-11-26 00:01:37 +01:00
2026-11-26 13:17:06 -05:00
2026-11-26 04:58:19 +00:00
2026-11-26 14:47:29 -05:00
2026-11-25 16:17:47 +03:00
2026-11-24 20:58:44 -05:00
2026-11-25 03:44:43 -06:00
2026-11-25 22:10:37 +00:00
2026-11-25 08:07:27 -05:00
2026-11-25 14:30:51 -06:00
2026-11-26 16:43:28 -05:00
2026-11-25 03:44:43 -06:00
2026-11-25 16:00:22 +01:00
2026-11-25 16:43:47 -05:00
2026-11-25 03:44:43 -06:00
2026-11-25 14:30:51 -06:00
2026-11-25 15:11:10 +01:00
2026-11-25 18:52:28 +01:00
2026-11-28 00:48:31 -03:00
2026-11-26 14:31:34 -05:00
2026-11-25 09:37:42 +01:00
2026-11-25 09:19:01 +01:00
2026-11-25 13:00:57 +01: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-25 04:46:33 +01:00
2026-11-25 17:19:44 +01:00
2026-11-24 19:38:04 -05:00
2026-11-25 13:16:41 +01:00
2026-11-25 16:41:36 -05:00
2026-11-26 00:07:37 +01:00
2026-11-24 19:38:04 -05:00
2026-11-25 17:04:39 -05:00
2026-11-24 20:26:00 -05:00
2026-11-25 22:27:19 +10:00
2026-11-25 16:42:34 -05:00
2026-11-24 21:35:06 -05:00
2026-11-25 16:51:33 -05:00
2026-11-25 14:30:51 -06:00
2026-11-26 01:22:14 +01:00
2026-11-25 00:20:54 -05:00
2026-11-26 01:25:22 +03:00
2026-11-25 16:38:51 -05:00
2026-11-24 21:39:58 -05:00
2026-11-27 12:46:36 +01:00
2026-11-25 18:18:57 -05:00
2026-11-26 02:02:47 -08:00
2026-11-25 19:06:48 +01:00
2026-11-27 11:32:29 +03:00
2026-11-27 11:28:10 +03:00
2026-11-27 16:38:40 +01:00
2026-11-25 03:44:43 -06:00
2026-11-26 14:48:57 -05:00
2026-11-24 20:00:23 -05:00
2026-11-26 14:48:57 -05:00
2026-11-27 13:24:49 +01:00
2026-11-25 14:30:51 -06:00
2026-11-25 14:30:51 -06:00
2026-11-25 22:29:35 -05:00
2026-11-25 10:50:03 +08: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 19:46:48 +01: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-25 14:30:51 -06:00
2026-11-25 14:30:51 -06:00
2026-11-25 17:23:18 -05:00
2026-11-26 09:16:06 -05:00
2026-11-25 21:25:04 -05:00
2026-11-26 07:50:38 +01:00
2026-11-25 22:29:35 -05:00
2026-11-25 12:09:55 +01:00
2026-11-25 14:11:53 -05:00
2026-11-25 14:37:34 -05:00
2026-11-24 20:44:26 -05:00
2026-11-25 22:09:28 +02:00
2026-11-25 06:16:46 -05:00
2026-11-25 06:43:13 -05:00
2026-11-26 00:01:37 +01:00
2026-11-26 01:26:03 +01:00
2026-11-27 04:28:00 +01:00
2026-11-25 03:44:43 -06:00
2026-11-24 19:38:04 -05:00
2026-11-25 03:44:43 -06:00
2026-11-25 03:44:43 -06:00
2026-11-26 10:43:18 -05:00
2026-11-25 03:44:43 -06:00
2026-11-24 20:01:35 -05:00
2026-11-26 09:16:31 -05:00