aboutsummaryrefslogtreecommitdiffstats
path: root/net/bpfilter/bpfilter_umh_blob.S
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-06-26 20:13:48 -0700
committerDavid S. Miller <davem@davemloft.net>2018-06-28 21:39:16 +0900
commit8e75887d321d102200abf3a9fa621e2c10ff4cc5 (patch)
tree6c43fe825ee8cee037dbbfae0a80d9d5f49d0b78 /net/bpfilter/bpfilter_umh_blob.S
parentstrparser: Remove early eaten to fix full tcp receive buffer stall (diff)
downloadlinux-dev-8e75887d321d102200abf3a9fa621e2c10ff4cc5.tar.xz
linux-dev-8e75887d321d102200abf3a9fa621e2c10ff4cc5.zip
bpfilter: include bpfilter_umh in assembly instead of using objcopy
What we want here is to embed a user-space program into the kernel. Instead of the complex ELF magic, let's simply wrap it in the assembly with the '.incbin' directive. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/bpfilter/bpfilter_umh_blob.S7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/bpfilter/bpfilter_umh_blob.S b/net/bpfilter/bpfilter_umh_blob.S
new file mode 100644
index 000000000000..40311d10d2f2
--- /dev/null
+++ b/net/bpfilter/bpfilter_umh_blob.S
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+ .section .init.rodata, "a"
+ .global bpfilter_umh_start
+bpfilter_umh_start:
+ .incbin "net/bpfilter/bpfilter_umh"
+ .global bpfilter_umh_end
+bpfilter_umh_end: