aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/cppc_acpi.c
diff options
context:
space:
mode:
authorNadav Amit <[email protected]>2022-08-13 22:59:43 +0000
committerIngo Molnar <[email protected]>2022-08-14 09:27:17 +0000
commit8924779df820c53875abaeb10c648e9cb75b46d4 (patch)
tree2018f44948641800482808fa1fd6724ef0e83de9 /drivers/acpi/cppc_acpi.c
parentx86: link vdso and boot with -z noexecstack --no-warn-rwx-segments (diff)
downloadkernel-8924779df820c53875abaeb10c648e9cb75b46d4.tar.gz
kernel-8924779df820c53875abaeb10c648e9cb75b46d4.zip
x86/kprobes: Fix JNG/JNLE emulation
When kprobes emulates JNG/JNLE instructions on x86 it uses the wrong condition. For JNG (opcode: 0F 8E), according to Intel SDM, the jump is performed if (ZF == 1 or SF != OF). However the kernel emulation currently uses 'and' instead of 'or'. As a result, setting a kprobe on JNG/JNLE might cause the kernel to behave incorrectly whenever the kprobe is hit. Fix by changing the 'and' to 'or'. Fixes: 6256e668b7af ("x86/kprobes: Use int3 instead of debug trap for single-step") Signed-off-by: Nadav Amit <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions