Skip to content

bpf: Fix linked register tracking

Puranjay Mohan bpf 1 version Applied

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

  1. v1 Latest2 patches 6 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf: Preserve id of register in sync_linked_regs()kernel/bpf/verifier.c+3 -15 repliesApplied
2/2selftests: bpf: Add test for multiple syncs from linked registertools/testing/selftests/bpf/progs/verifier_linked_scalars.c+33 -01 replyApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchEduard Zingerman
1/2A-b
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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