-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support kCFI + BPF on arm64 #7178
Conversation
Upstream branch: f85af9d |
Upstream branch: f85af9d |
9319503
to
12051a2
Compare
2c69871
to
efc6995
Compare
12051a2
to
99ce095
Compare
efc6995
to
2d4d540
Compare
99ce095
to
b952f06
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=860506 expired. Closing PR. |
Currently, bpf_dispatcher_*_func() is marked with `__nocfi` therefore calling BPF programs from this interface doesn't cause CFI warnings. When BPF programs are called directly from C: from BPF helpers or struct_ops, CFI warnings are generated. Implement proper CFI prologues for the BPF programs and callbacks and drop __nocfi for arm64. Fix the trampoline generation code to emit kCFI prologue when a struct_ops trampoline is being prepared. Signed-off-by: Puranjay Mohan <puranjay12@gmail.com> Signed-off-by: Maxwell Bland <mbland@motorola.com>
Corrects Puranjay Mohan's commit to adopt Mark Rutland's suggestion of using a C CFI type macro in kCFI+BPF. Signed-off-by: Maxwell Bland <mbland@motorola.com>
Upstream branch: 98b303c |
b952f06
to
ef7a38d
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=861246 expired. Closing PR. |
Pull request for series with
subject: Support kCFI + BPF on arm64
version: 5
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=860506