From 92bfdd34a957065459bbc60b0ad94cec6a2f7f2b Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 13 Apr 2020 16:47:42 -0400 Subject: [PATCH] kprobes: remove kernel version blacklist --- blacklist/kprobes.h | 23 ----------------------- probes/lttng-kprobes.c | 1 - probes/lttng-kretprobes.c | 1 - 3 files changed, 25 deletions(-) delete mode 100644 blacklist/kprobes.h diff --git a/blacklist/kprobes.h b/blacklist/kprobes.h deleted file mode 100644 index 5740d8d7..00000000 --- a/blacklist/kprobes.h +++ /dev/null @@ -1,23 +0,0 @@ -/* SPDX-License-Identifier: (GPL-2.0-only OR LGPL-2.1-only) - * - * blacklist/kprobes.h - * - * Blacklist of kernel for buggy kprobes implementation. - * - * Copyright (C) 2019 Jonathan Rajotte-Julien - */ - -#ifndef _LTTNG_BLACKLIST_KPROBES_H -#define _LTTNG_BLACKLIST_KPROBES_H - -#include - -#if LTTNG_KERNEL_RANGE(4,20,0, 4,20,13) \ - || LTTNG_KERNEL_RANGE(4,19,9, 4,19,26) \ - || LTTNG_KERNEL_RANGE(4,14,87, 4,14,104) -# if defined(CONFIG_ARM) && defined(CONFIG_OPTPROBES) -# error "Your kernel is known to have buggy optimized kprobes implementation. Fixed by commit 0ac569bf6a7983c0c5747d6df8db9dc05bc92b6c \"ARM: 8834/1: Fix: kprobes: optimized kprobes illegal instruction\" in Linux. Disable CONFIG_OPTPROBES or upgrade your kernel." -# endif /* #if defined(CONFIG_ARM) && defined(CONFIG_OPTPROBES) */ -#endif - -#endif /* _LTTNG_BLACKLIST_KPROBES_H */ diff --git a/probes/lttng-kprobes.c b/probes/lttng-kprobes.c index e3f82ad3..c4605500 100644 --- a/probes/lttng-kprobes.c +++ b/probes/lttng-kprobes.c @@ -14,7 +14,6 @@ #include #include #include -#include static int lttng_kprobes_handler_pre(struct kprobe *p, struct pt_regs *regs) diff --git a/probes/lttng-kretprobes.c b/probes/lttng-kretprobes.c index d2082926..2cc4927b 100644 --- a/probes/lttng-kretprobes.c +++ b/probes/lttng-kretprobes.c @@ -15,7 +15,6 @@ #include #include #include -#include enum lttng_kretprobe_type { EVENT_ENTRY = 0, -- 2.34.1