]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/x86/kernel/uprobes.c
uprobes/x86: Prohibit probing on MOV SS instruction
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / kernel / uprobes.c
index a3755d293a48ca038844ed92e15ea071efdd6449..5076a7c37b6a4edd1f0ff7f96ba0c88592eb1d3a 100644 (file)
@@ -299,6 +299,10 @@ static int uprobe_init_insn(struct arch_uprobe *auprobe, struct insn *insn, bool
        if (is_prefix_bad(insn))
                return -ENOTSUPP;
 
+       /* We should not singlestep on the exception masking instructions */
+       if (insn_masking_exception(insn))
+               return -ENOTSUPP;
+
        if (x86_64)
                good_insns = good_insns_64;
        else