(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

bpf, arm64: Move kfunc arguments into the arm64 calling convention

Do the proper move from the BPF calling convention to the arm64 calling convention to satisfy the native requirement. AAPCS64 only ever moves an argument to a higher slot, so the moves need one scratch register to carry an eightbyte from one stack slot to another, and never the one a convention moving an argument down would need. In addition, the arena argument walk counts eightbytes rather than parameters, as an argument may take two registers. The walk takes the func model from the caller now, as the moves need it too, and runs first so that they carry the rebased value. Signed-off-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/r/20260912195257.990814-1-yonghong.song@linux.dev Signed-off-by: Alexei Starovoitov <ast@kernel.org>


Author Yonghong Song Committer Alexei Starovoitov Date Commit Parent afdbb4cd
+58 -10
1 changed file
+58 -10
1 changed file