Message ID | 20250129084925.9ppBjGLC@linutronix.de (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | None | expand |
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index 0305692106709..9c8afbb957b0f 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c @@ -1547,7 +1547,7 @@ static int check_kprobe_address_safe(struct kprobe *p, /* Ensure the address is in a text area, and find a module if exists. */ *probed_mod = NULL; if (!core_kernel_text((unsigned long) p->addr)) { - guard(preempt)(); + guard(rcu)(); *probed_mod = __module_text_address((unsigned long) p->addr); if (!(*probed_mod)) return -EINVAL;