blob: 923c0aacc8a997cbb3a34e502a3520594fe50435 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: Thu, 10 Oct 2019 16:54:45 +0200
Subject: [PATCH] BPF: Disable on PREEMPT_RT
Disable BPF on PREEMPT_RT because
- it allocates and frees memory in atomic context
- it uses up_read_non_owner()
- BPF_PROG_RUN() expects to be invoked in non-preemptible context
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
init/Kconfig | 1 +
net/kcm/Kconfig | 1 +
2 files changed, 2 insertions(+)
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1630,6 +1630,7 @@ config KALLSYMS_BASE_RELATIVE
# syscall, maps, verifier
config BPF_SYSCALL
bool "Enable bpf() system call"
+ depends on !PREEMPT_RT
select BPF
select IRQ_WORK
default n
--- a/net/kcm/Kconfig
+++ b/net/kcm/Kconfig
@@ -3,6 +3,7 @@
config AF_KCM
tristate "KCM sockets"
depends on INET
+ depends on !PREEMPT_RT
select BPF_SYSCALL
select STREAM_PARSER
---help---
|