ceph: no need to wait for transition RDCACHE|RD -> RD
[platform/kernel/linux-rpi.git] / kernel / kprobes.c
index 08350e3..ca9d834 100644 (file)
@@ -1562,6 +1562,7 @@ static int check_kprobe_address_safe(struct kprobe *p,
        /* Ensure it is not in reserved area nor out of text */
        if (!(core_kernel_text((unsigned long) p->addr) ||
            is_module_text_address((unsigned long) p->addr)) ||
+           in_gate_area_no_mm((unsigned long) p->addr) ||
            within_kprobe_blacklist((unsigned long) p->addr) ||
            jump_label_text_reserved(p->addr, p->addr) ||
            static_call_text_reserved(p->addr, p->addr) ||