-
Notifications
You must be signed in to change notification settings - Fork 128
Support kCFI + BPF on arm64 #8894
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
base: bpf-next_base
Are you sure you want to change the base?
Conversation
Upstream branch: 62e23f1 |
309dda5
to
77f843d
Compare
Upstream branch: 9fd0606 |
730899d
to
97c80c5
Compare
77f843d
to
e4e98c9
Compare
Upstream branch: 43745d1 |
97c80c5
to
29667ca
Compare
e4e98c9
to
8b8229f
Compare
Upstream branch: b69d441 |
29667ca
to
9ff93e6
Compare
8b8229f
to
4b2ad00
Compare
Upstream branch: 32c563d |
9ff93e6
to
78931a5
Compare
4b2ad00
to
13a3aab
Compare
Upstream branch: 0f2d39f |
78931a5
to
623ba79
Compare
13a3aab
to
f1ad525
Compare
Upstream branch: cf15cdc |
623ba79
to
45ef5d7
Compare
f1ad525
to
d99abbe
Compare
Upstream branch: cb4a119 |
45ef5d7
to
d3aac36
Compare
d99abbe
to
3deadef
Compare
Upstream branch: 5a8cb23 |
d3aac36
to
84be97d
Compare
3deadef
to
71504b4
Compare
Upstream branch: c8ce7db |
84be97d
to
8d2ac56
Compare
71504b4
to
4861ed7
Compare
Currently x86 and riscv open-code 4 instances of the same logic to define a u32 variable with the KCFI typeid of a given function. Replace the duplicate logic with a common macro. Signed-off-by: Mark Rutland <[email protected]> Co-developed-by: Maxwell Bland <[email protected]> Signed-off-by: Maxwell Bland <[email protected]> Co-developed-by: Sami Tolvanen <[email protected]> Signed-off-by: Sami Tolvanen <[email protected]> Tested-by: Dao Huang <[email protected]>
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 <[email protected]> Co-developed-by: Maxwell Bland <[email protected]> Signed-off-by: Maxwell Bland <[email protected]> Co-developed-by: Sami Tolvanen <[email protected]> Signed-off-by: Sami Tolvanen <[email protected]> Tested-by: Dao Huang <[email protected]>
Upstream branch: 7220eab |
8d2ac56
to
d35c8a1
Compare
Pull request for series with
subject: Support kCFI + BPF on arm64
version: 9
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=959802