[PATCH bpf 0/2] bpf: Fix and test cgroup storage OOB issue

xulang posted 2 patches 2 weeks, 6 days ago
Only 0 patches received!
kernel/bpf/local_storage.c                    |  7 ++-
.../selftests/bpf/prog_tests/cgroup_storage.c | 42 ++++++++++++++++++
.../selftests/bpf/progs/cgroup_storage.c      | 43 +++++++++++++++++++
3 files changed, 88 insertions(+), 4 deletions(-)
[PATCH bpf 0/2] bpf: Fix and test cgroup storage OOB issue
Posted by xulang 2 weeks, 6 days ago
This series fixes an out-of-bounds read in BPF cgroup storage when the
value_size is not 8-byte aligned. The fix ensures proper alignment during
buffer allocation, and a test case is added to prevent regression.

Lang Xu (2):
  bpf: Fix OOB in bpf_obj_memcpy for cgroup storage
  selftests/bpf: Add test for cgroup storage OOB read

 kernel/bpf/local_storage.c                    |  7 ++-
 .../selftests/bpf/prog_tests/cgroup_storage.c | 42 ++++++++++++++++++
 .../selftests/bpf/progs/cgroup_storage.c      | 43 +++++++++++++++++++
 3 files changed, 88 insertions(+), 4 deletions(-)

-- 
2.51.0