Thread (33 messages) 33 messages, 8 authors, 2025-08-13

Re: [PATCH v2 13/13] selftests/bpf: Add test for signed programs

From: Alexei Starovoitov <hidden>
Date: 2025-07-29 02:30:43
Also in: bpf

On Mon, Jul 21, 2025 at 2:20 PM KP Singh [off-list ref] wrote:
+
+SEC("fexit/bpf_prog_verify_signature")
+int BPF_PROG(bpf_sign, struct bpf_prog *prog, union bpf_attr *attr, bool is_kernel, int ret)
I don't understand why it needs to peek into the kernel to
verify that it goes well. The exposed uapi should be good enough.
If the signature was specified and it is loaded fine we're good.
Double checking the kernel decisions goes too far.
Especially since this function can be inlined by the compiler.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help