bpf: Fix linked register tracking
Status from this message: This series was applied to bpf/bpf-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | bpf: Preserve id of register in sync_linked_regs()kernel/ | +3 | 5 replies | Applied |
| 2/2 | selftests: bpf: Add test for multiple syncs from linked registertools/ | +33 | 1 reply | Applied |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Eduard Zingerman |
|---|---|
| 1/2 | A-b |
| 2/2 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH bpf-next 0/2] bpf: Fix linked register tracking
This patch fixes the linked register tracking when multiple links from the same register are created with a sync between the creation of these links. The sync corrupts the id of the register and therefore the second link is not created properly. See the patch description to understand more.
The fix is to preserve the id while doing the sync similar to the off.
Puranjay Mohan (2):
bpf: Preserve id of register in sync_linked_regs()
selftests: bpf: Add test for multiple syncs from linked register
kernel/bpf/verifier.c | 4 ++- .../bpf/progs/verifier_linked_scalars.c | 33 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-)
base-commit: 9a403a4aea32f1801a7f29b2385ec345d4faaf78
Signature · 1 line
2.47.3