diff options
author | Suzuki K Poulose <[email protected]> | 2016-09-09 14:07:11 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2016-09-09 15:03:28 +0100 |
commit | baa763b565386b1383b87b6fb76e72db84a0ff16 (patch) | |
tree | 9c046ca20a4e8b7cbae0424a3ddf15cc8a5fac2a /net/switchdev/switchdev.c | |
parent | c47a1900ad710fd2c97127e2ba19da1df79cf733 (diff) |
arm64: alternative: Disallow patching instructions using literals
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 <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Catalin Marinas <[email protected]>
Suggested-by: Will Deacon <[email protected]>
Signed-off-by: Suzuki K Poulose <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions