-
Notifications
You must be signed in to change notification settings - Fork 146
Support kCFI + BPF on arm64 #9301
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: e860a98 |
d1180f2
to
a3964d2
Compare
Upstream branch: 1f48966 |
1775d15
to
efa97c4
Compare
a3964d2
to
ec33c8e
Compare
Upstream branch: 62ef449 |
efa97c4
to
1deadb7
Compare
ec33c8e
to
1c89975
Compare
Upstream branch: 0768e98 |
1deadb7
to
fcd0125
Compare
1c89975
to
2bf6e60
Compare
Upstream branch: 0768e98 |
fcd0125
to
27218c5
Compare
Upstream branch: 0768e98 |
27218c5
to
1e1db3a
Compare
Upstream branch: 0768e98 |
1e1db3a
to
52cf06e
Compare
2bf6e60
to
63bd3e4
Compare
Upstream branch: 0ee30d9 |
52cf06e
to
2dfc970
Compare
63bd3e4
to
1c4f46e
Compare
Upstream branch: 0ee30d9 |
2dfc970
to
4681b97
Compare
692b7c1
to
63cda6f
Compare
b5a617e
to
ffefc6d
Compare
Upstream branch: 42be23e |
63cda6f
to
7f12afa
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=983905 expired. Closing PR. |
Upstream branch: 42be23e |
7f12afa
to
441f83c
Compare
4ccf98a
to
95edab2
Compare
Upstream branch: 95993dc |
441f83c
to
44917eb
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]> Acked-by: Will Deacon <[email protected]>
Instead of duplicating the same code for each architecture, move the CFI type hash variables for BPF function types and related helper functions to generic CFI code, and allow architectures to override the function definitions if needed. Signed-off-by: Sami Tolvanen <[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]> Acked-by: Will Deacon <[email protected]>
Upstream branch: 95993dc |
44917eb
to
7b92960
Compare
Pull request for series with
subject: Support kCFI + BPF on arm64
version: 10
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=982708