From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Shung-Hsi Yu <shung-hsi.yu@suse.com>, Sasha Levin <sashal@kernel.org>
Subject: Re: [PATCH stable 6.6 02/10] bpf: refactor bpf_helper_changes_pkt_data to use helper number
Date: Thu, 1 May 2025 14:51:53 -0400 [thread overview]
Message-ID: <20250501084603-8ea56ba1346b5be2@stable.kernel.org> (raw)
In-Reply-To: <20250430081955.49927-3-shung-hsi.yu@suse.com>
[ Sasha's backport helper bot ]
Hi,
✅ All tests passed successfully. No issues detected.
No action required from the submitter.
The upstream commit SHA1 provided is correct: b238e187b4a2d3b54d80aec05a9cab6466b79dde
WARNING: Author mismatch between patch and upstream commit:
Backport author: Shung-Hsi Yu<shung-hsi.yu@suse.com>
Commit author: Eduard Zingerman<eddyz87@gmail.com>
Status in newer kernel trees:
6.14.y | Present (exact SHA1)
6.12.y | Present (different SHA1: 28bcc8024033)
Note: The patch differs from the upstream commit:
---
1: b238e187b4a2d ! 1: 3e2e06b5ee782 bpf: refactor bpf_helper_changes_pkt_data to use helper number
@@ Metadata
## Commit message ##
bpf: refactor bpf_helper_changes_pkt_data to use helper number
+ commit b238e187b4a2d3b54d80aec05a9cab6466b79dde upstream.
+
Use BPF helper number instead of function pointer in
bpf_helper_changes_pkt_data(). This would simplify usage of this
function in verifier.c:check_cfg() (in a follow-up patch),
@@ Commit message
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20241210041100.1898468-3-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
+ Signed-off-by: Shung-Hsi Yu <shung-hsi.yu@suse.com>
## include/linux/filter.h ##
-@@ include/linux/filter.h: bool bpf_jit_supports_insn(struct bpf_insn *insn, bool in_arena);
- bool bpf_jit_supports_private_stack(void);
- u64 bpf_arch_uaddress_limit(void);
- void arch_bpf_stack_walk(bool (*consume_fn)(void *cookie, u64 ip, u64 sp, u64 bp), void *cookie);
+@@ include/linux/filter.h: bool bpf_jit_needs_zext(void);
+ bool bpf_jit_supports_subprog_tailcalls(void);
+ bool bpf_jit_supports_kfunc_call(void);
+ bool bpf_jit_supports_far_kfunc_call(void);
-bool bpf_helper_changes_pkt_data(void *func);
+bool bpf_helper_changes_pkt_data(enum bpf_func_id func_id);
---
Results of testing on various branches:
| Branch | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-6.12.y | Success | Success |
next prev parent reply other threads:[~2025-05-01 18:51 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-30 8:19 [PATCH stable 6.6 00/10] bpf: track changes_pkt_data property for global functions Shung-Hsi Yu
2025-04-30 8:19 ` [PATCH stable 6.6 01/10] bpf: add find_containing_subprog() utility function Shung-Hsi Yu
2025-05-01 19:09 ` Sasha Levin
2025-04-30 8:19 ` [PATCH stable 6.6 02/10] bpf: refactor bpf_helper_changes_pkt_data to use helper number Shung-Hsi Yu
2025-05-01 18:51 ` Sasha Levin [this message]
2025-04-30 8:19 ` [PATCH stable 6.6 03/10] bpf: track changes_pkt_data property for global functions Shung-Hsi Yu
2025-05-01 18:51 ` Sasha Levin
2025-04-30 8:19 ` [PATCH stable 6.6 04/10] selftests/bpf: test for changing packet data from " Shung-Hsi Yu
2025-05-01 19:11 ` Sasha Levin
2025-04-30 8:19 ` [PATCH stable 6.6 05/10] bpf: check changes_pkt_data property for extension programs Shung-Hsi Yu
2025-05-01 18:50 ` Sasha Levin
2025-04-30 8:19 ` [PATCH stable 6.6 06/10] selftests/bpf: freplace tests for tracking of changes_packet_data Shung-Hsi Yu
2025-05-01 18:51 ` Sasha Levin
2025-04-30 8:19 ` [PATCH stable 6.6 07/10] bpf: consider that tail calls invalidate packet pointers Shung-Hsi Yu
2025-05-01 19:10 ` Sasha Levin
2025-04-30 8:19 ` [PATCH stable 6.6 08/10] selftests/bpf: validate that tail call invalidates " Shung-Hsi Yu
2025-05-01 19:10 ` Sasha Levin
2025-04-30 8:19 ` [PATCH stable 6.6 09/10] bpf: fix null dereference when computing changes_pkt_data of prog w/o subprogs Shung-Hsi Yu
2025-05-01 18:52 ` Sasha Levin
2025-04-30 8:19 ` [PATCH stable 6.6 10/10] selftests/bpf: extend changes_pkt_data with cases w/o subprograms Shung-Hsi Yu
2025-05-01 19:10 ` Sasha Levin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250501084603-8ea56ba1346b5be2@stable.kernel.org \
--to=sashal@kernel.org \
--cc=shung-hsi.yu@suse.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.