[PATCH v4 4/9] arm64: alternative: Disallow patching instructions using literals

2016-09-09 Thread Suzuki K Poulose
The alternative code patching doesn't check if the replaced instruction uses a pc relative literal. This could cause silent corruption in the instruction stream as the instruction will be executed from a different address than what it was compiled for. Catch all such cases. Cc: Marc Zyngier

[PATCH v4 4/9] arm64: alternative: Disallow patching instructions using literals

2016-09-09 Thread Suzuki K Poulose
The alternative code patching doesn't check if the replaced instruction uses a pc relative literal. This could cause silent corruption in the instruction stream as the instruction will be executed from a different address than what it was compiled for. Catch all such cases. Cc: Marc Zyngier Cc: