From: Alexei Starovoitov Date: Thu, 23 Apr 2026 14:54:51 +0000 (-0700) Subject: Merge branch 'bpf-prepare-to-support-stack-arguments' X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd30cf86e1194ab067661a0ab3e0769a5600848b;p=thirdparty%2Flinux.git Merge branch 'bpf-prepare-to-support-stack-arguments' Yonghong Song says: ==================== bpf: Prepare to support stack arguments The patch set prepares to support stack arguments for bpf functions and kfuncs. The major changes include: - Avoid redundant calculation of bpf_reg_state. For stack arguments, there exists no corresponding register number. - Refactor check_kfunc_mem_size_reg() to have bpf_reg_state's for both mem_reg and size_reg. - Allow verifier logs to print stack arguments if there is no corresponding register. Please see individual patches for details. Changelogs: v2 -> v3: - v2: https://lore.kernel.org/bpf/20260422054149.3124342-1-yonghong.song@linux.dev/ - Fix a mark_chain_precision issue by rewriting helper reg_from_argno(). v1 -> v2: - v1: https://lore.kernel.org/bpf/20260421171927.3507554-1-yonghong.song@linux.dev/ - Major change to patch 7. In v1, the argno has type u32 to represent registers and arguments. This works but error prone as u32 is too easy to mess and leak. This version uses a struct type to represent argno which makes things more explicit and easy to reason. ==================== Link: https://patch.msgid.link/20260423033425.2536883-1-yonghong.song@linux.dev Signed-off-by: Alexei Starovoitov --- fd30cf86e1194ab067661a0ab3e0769a5600848b