X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=arch%2Farm64%2Fkernel%2Fprobes%2Fuprobes.c;h=636ca0119c0efa7cb1254568d04edfdddf791db9;hb=5ce93ab624cee4ed68086c946bd6d18b9b3f64aa;hp=26c998534dca9a545d006ba5a637a7c1dd24aa52;hpb=828f193dd62a40ade5ea8b24cb8b0a22c30df673;p=mirror_ubuntu-bionic-kernel.git diff --git a/arch/arm64/kernel/probes/uprobes.c b/arch/arm64/kernel/probes/uprobes.c index 26c998534dca..636ca0119c0e 100644 --- a/arch/arm64/kernel/probes/uprobes.c +++ b/arch/arm64/kernel/probes/uprobes.c @@ -40,7 +40,7 @@ int arch_uprobe_analyze_insn(struct arch_uprobe *auprobe, struct mm_struct *mm, probe_opcode_t insn; /* TODO: Currently we do not support AARCH32 instruction probing */ - if (test_bit(TIF_32BIT, &mm->context.flags)) + if (mm->context.flags & MMCF_AARCH32) return -ENOTSUPP; else if (!IS_ALIGNED(addr, AARCH64_INSN_SIZE)) return -EINVAL;