Tweak codepatch_control_flow():
authorguenther <guenther@openbsd.org>
Sun, 4 Feb 2024 20:18:48 +0000 (20:18 +0000)
committerguenther <guenther@openbsd.org>
Sun, 4 Feb 2024 20:18:48 +0000 (20:18 +0000)
commitea15225f4d0992ce43f25039df7a56779c06ea1b
treee322b2ba1250c7258ff6ae95bfe42061b47f530d
parent2ae6c737e71c1f39dca841e66a4ad6ac7c1fb585
Tweak codepatch_control_flow():
 * it should be in .cptext so it gets unmapped when codepatching is done
 * when doing a JMP, fill the area after it with INT3s instead of NOPs

ok deraadt@
sys/arch/amd64/amd64/codepatch.c