Skip to content

bpf: Fix an issue in bpf_iter_task

Yafang Shao bpf 2 versions – Applied

Status from this message: This series was applied to bpf/bpf.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesApplied 2/2
  2. v13 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Correct the fixes tag (Chuyi)

Patches in v2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf: Fix an issue due to uninitialized bpf_iter_taskkernel/bpf/task_iter.c+2 -03 repliesApplied
2/2selftests/bpf: Add negtive test cases for task itertools/testing/selftests/bpf/prog_tests/iters.c tools/testing/selftests/bpf/progs/iters_task.c+12 -10 repliesApplied

Reviews trailers per patch

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

PatchYonghong SongOleg Nesterov
1/2A-b A-b
2/2

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

Read the v2 thread

Cover letter [PATCH v2 bpf-next 0/2] bpf: Fix an issue in bpf_iter_task

The uninitialized bpf_iter_task variable poses a risk of triggering a kernel panic. To fix this potential issue, it's imperative to ensure proper initialization of the variable. This problem surfaced during the implementation phase of the bits iterator [0].

[0]. https://lwn.net/ml/bpf/CALOAHbDJWHOB+viBz6SUqdeF+Nkxmh4gLZo5Ad_keQXjBWHAsQ@mail.gmail.com

v1->v2:
- Correct the fixes tag (Chuyi)

Yafang Shao (2):
bpf: Fix an issue due to uninitialized bpf_iter_task selftests/bpf: Add negtive test cases for task iter

 kernel/bpf/task_iter.c                         |  2 ++
 tools/testing/selftests/bpf/prog_tests/iters.c |  1 +
 tools/testing/selftests/bpf/progs/iters_task.c | 12 +++++++++++-
 3 files changed, 14 insertions(+), 1 deletion(-)
Signature · 1 line
2.39.1