summaryrefslogtreecommitdiffstats
path: root/debian/patches-rt/BPF-Disable-on-PREEMPT_RT.patch
diff options
context:
space:
mode:
authorSalvatore Bonaccorso <carnil@debian.org>2019-12-18 18:06:31 +0100
committerSalvatore Bonaccorso <carnil@debian.org>2019-12-18 22:50:21 +0100
commit102987a83771aa994821d4d982d06faa64c789e4 (patch)
tree3e5ab5206886ec297a1a97ce80f504d75468ed2f /debian/patches-rt/BPF-Disable-on-PREEMPT_RT.patch
parent479cb120ecb2b3f2c4d929a7b57860248d6f79bd (diff)
downloadlinux-debian-102987a83771aa994821d4d982d06faa64c789e4.tar.gz
[rt] Update to 5.4.3-rt1 and re-enable
Adjust for context changes due to backport of e66b39af00f4 ("workqueue: Fix pwq ref leak in rescuer_thread()") and def98c84b6cd ("workqueue: Fix spurious sanity check failures in destroy_workqueue()") in 5.4.4.
Diffstat (limited to 'debian/patches-rt/BPF-Disable-on-PREEMPT_RT.patch')
-rw-r--r--debian/patches-rt/BPF-Disable-on-PREEMPT_RT.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/debian/patches-rt/BPF-Disable-on-PREEMPT_RT.patch b/debian/patches-rt/BPF-Disable-on-PREEMPT_RT.patch
new file mode 100644
index 000000000..8a11d4e78
--- /dev/null
+++ b/debian/patches-rt/BPF-Disable-on-PREEMPT_RT.patch
@@ -0,0 +1,36 @@
+From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
+Date: Thu, 10 Oct 2019 16:54:45 +0200
+Subject: [PATCH] BPF: Disable on PREEMPT_RT
+Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.4/older/patches-5.4.3-rt1.tar.xz
+
+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
+@@ -1629,6 +1629,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---