Skip to content

Fix depmod issue found in rust-next (2)#139

Merged
ojeda merged 1 commit intoRust-for-Linux:rustfrom
ojeda:fix-depmod
Mar 22, 2021
Merged

Fix depmod issue found in rust-next (2)#139
ojeda merged 1 commit intoRust-for-Linux:rustfrom
ojeda:fix-depmod

Conversation

@ojeda
Copy link
Copy Markdown
Member

@ojeda ojeda commented Mar 22, 2021

We can also take out this one.

Reported-by: Heiko Carstens hca@linux.ibm.com
Reported-by: Daniel Axtens dja@axtens.net
Signed-off-by: Miguel Ojeda ojeda@kernel.org

We can also take out this one.

Reported-by: Heiko Carstens <hca@linux.ibm.com>
Reported-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
@ojeda ojeda merged commit f8bc8e9 into Rust-for-Linux:rust Mar 22, 2021
@ojeda ojeda deleted the fix-depmod branch March 22, 2021 18:18
thepacketgeek pushed a commit to thepacketgeek/linux that referenced this pull request Feb 13, 2026
Leon Hwang says:

====================
Similar to commit 98770bd ("bpf,x86: add fsession support for x86_64"),
add fsession support on arm64.

Patch Rust-for-Linux#1 adds bpf_jit_supports_fsession() to prevent fsession loading
on architectures that do not implement fsession support.

Patch Rust-for-Linux#2 implements fsession support in the arm64 BPF JIT trampoline.

Patch Rust-for-Linux#3 enables the relevant selftests on arm64, including get_func_ip,
and get_func_args.

All enabled tests pass on arm64:

 cd tools/testing/selftests/bpf
 ./test_progs -t fsession
 Rust-for-Linux#136/1   fsession_test/fsession_test:OK
 Rust-for-Linux#136/2   fsession_test/fsession_reattach:OK
 Rust-for-Linux#136/3   fsession_test/fsession_cookie:OK
 Rust-for-Linux#136     fsession_test:OK
 Summary: 1/3 PASSED, 0 SKIPPED, 0 FAILED

 ./test_progs -t get_func
 Rust-for-Linux#138     get_func_args_test:OK
 Rust-for-Linux#139     get_func_ip_test:OK
 Summary: 2/0 PASSED, 0 SKIPPED, 0 FAILED

Changes:
v4 -> v5:
* Address comment from Alexei:
  * Rename helper bpf_link_prog_session_cookie() to
    bpf_prog_calls_session_cookie().
* v4: https://lore.kernel.org/bpf/20260129154953.66915-1-leon.hwang@linux.dev/

v3 -> v4:
* Add a log when !bpf_jit_supports_fsession() in patch Rust-for-Linux#1 (per AI).
* v3: https://lore.kernel.org/bpf/20260129142536.48637-1-leon.hwang@linux.dev/

v2 -> v3:
* Fix typo in subject and patch message of patch Rust-for-Linux#1 (per AI and Chris).
* Collect Acked-by, and Tested-by from Puranjay, thanks.
* v2: https://lore.kernel.org/bpf/20260128150112.8873-1-leon.hwang@linux.dev/

v1 -> v2:
* Add bpf_jit_supports_fsession().
* v1: https://lore.kernel.org/bpf/20260127163344.92819-1-leon.hwang@linux.dev/
====================

Link: https://patch.msgid.link/20260131144950.16294-1-leon.hwang@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants