hot-patching

Tag

Cards List
#hot-patching

If somebody tries to hot-patch an already-hot-patched function, how do they avoid conflicts?

The Old New Thing (Raymond Chen) ↗ · 2026-10-05 Cached

Raymond Chen explains how Windows hot-patching handles the case where a function has already been patched by unauthorized code: such functions are declared non-hot-patchable, forcing a reboot, and race conditions can leave a binary half-patched in memory. The post explains why only Windows Update is authorized to use the reserved hot-patch space, and why mixing hot-patching with other detours is dangerous.

0 favorites 0 likes
#hot-patching

Why is there no Windows hot-patching support for other architectures like 32-bit ARM and MIPS?

The Old New Thing (Raymond Chen) ↗ · 2026-10-02 Cached

Raymond Chen explains why Windows hot-patching exists for x86-32, x86-64, 64-bit ARM, and Itanium but not for older or other architectures like 32-bit ARM, MIPS, Alpha AXP, PowerPC, and SH-3: most predated the hot-patching rules, while 32-bit ARM was excluded because hot-patching is a Windows Server feature and no Server version existed for that architecture.

0 favorites 0 likes
#hot-patching

Windows on Itanium also provided for hot-patching, in an even simpler way

The Old New Thing (Raymond Chen) ↗ · 2026-10-01 Cached

Raymond Chen's The Old New Thing explains how Windows on Itanium implemented hot-patching using fixed-size instruction bundles and a double-wide conditional long branch instruction, contrasting it with the AArch64 approach discussed previously.

0 favorites 0 likes
#hot-patching

Windows on AArch64 also provides for hot-patching, but it’s much simpler than on x86

The Old New Thing (Raymond Chen) ↗ · 2026-09-30 Cached

Raymond Chen explains how Windows on AArch64 implements function hot-patching more simply than on x86, using a 12-byte patch space and a three-instruction trampoline via the xip0 scratch register, noting that pointer authentication (pacibsp) usually guards the function entry.

0 favorites 0 likes
← Back to home

Submit Feedback