[RESEND PATCH v4 02/11] lkdtm/powerpc: Add test to hijack a patch mapping

2021-05-05 Thread Christopher M. Riedl
When live patching with STRICT_KERNEL_RWX the CPU doing the patching must temporarily remap the page(s) containing the patch site with +W permissions. While this temporary mapping is in use, another CPU could write to the same mapping and maliciously alter kernel text. Implement a LKDTM test to att

[PATCH v4 02/11] lkdtm/powerpc: Add test to hijack a patch mapping

2021-04-29 Thread Christopher M. Riedl
When live patching with STRICT_KERNEL_RWX the CPU doing the patching must temporarily remap the page(s) containing the patch site with +W permissions. While this temporary mapping is in use, another CPU could write to the same mapping and maliciously alter kernel text. Implement a LKDTM test to att