diff options
Diffstat (limited to 'kernel/extable.c')
-rw-r--r-- | kernel/extable.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/kernel/extable.c b/kernel/extable.c index e3beec4a2339..bd82117ad424 100644 --- a/kernel/extable.c +++ b/kernel/extable.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/module.h> | 20 | #include <linux/module.h> |
21 | #include <linux/mutex.h> | 21 | #include <linux/mutex.h> |
22 | #include <linux/init.h> | 22 | #include <linux/init.h> |
23 | #include <linux/filter.h> | ||
23 | 24 | ||
24 | #include <asm/sections.h> | 25 | #include <asm/sections.h> |
25 | #include <linux/uaccess.h> | 26 | #include <linux/uaccess.h> |
@@ -104,6 +105,8 @@ int __kernel_text_address(unsigned long addr) | |||
104 | return 1; | 105 | return 1; |
105 | if (is_ftrace_trampoline(addr)) | 106 | if (is_ftrace_trampoline(addr)) |
106 | return 1; | 107 | return 1; |
108 | if (is_bpf_text_address(addr)) | ||
109 | return 1; | ||
107 | /* | 110 | /* |
108 | * There might be init symbols in saved stacktraces. | 111 | * There might be init symbols in saved stacktraces. |
109 | * Give those symbols a chance to be printed in | 112 | * Give those symbols a chance to be printed in |
@@ -123,7 +126,11 @@ int kernel_text_address(unsigned long addr) | |||
123 | return 1; | 126 | return 1; |
124 | if (is_module_text_address(addr)) | 127 | if (is_module_text_address(addr)) |
125 | return 1; | 128 | return 1; |
126 | return is_ftrace_trampoline(addr); | 129 | if (is_ftrace_trampoline(addr)) |
130 | return 1; | ||
131 | if (is_bpf_text_address(addr)) | ||
132 | return 1; | ||
133 | return 0; | ||
127 | } | 134 | } |
128 | 135 | ||
129 | /* | 136 | /* |