mbox series

[bpf,0/7] Misc fixes for bpf

Message ID 20241008091718.3797027-1-houtao@huaweicloud.com (mailing list archive)
Headers show
Series Misc fixes for bpf | expand

Message

Hou Tao Oct. 8, 2024, 9:17 a.m. UTC
From: Hou Tao <houtao1@huawei.com>

Hi,

The patch set is just a bundle of fixes. Patch #1 fixes the out-of-bound
for sockmap link fdinfo. Patch #2 fixes the kmemleak report when parsing
the mount options for bpffs. Patch #3~#7 fix issues related to bits
iterator.

Please check the individual patches for more details. And comments are
always welcome.

Hou Tao (7):
  bpf: Add the missing BPF_LINK_TYPE invocation for sockmap
  bpf: Preserve param->string when parsing mount options
  bpf: Free dynamically allocated bits in bpf_iter_bits_destroy()
  bpf: Check the validity of nr_words in bpf_iter_bits_new()
  bpf: Change the type of unsafe_ptr in bpf_iter_bits_new()
  selftests/bpf: Test multiplication overflow of nr_bits in bits_iter
  selftests/bpf: Pass a pointer of unsigned long to bpf_iter_bits_new()

 include/linux/bpf_types.h                     |  1 +
 include/uapi/linux/bpf.h                      |  3 ++
 kernel/bpf/helpers.c                          | 30 +++++++++-----
 kernel/bpf/inode.c                            |  5 ++-
 .../selftests/bpf/progs/verifier_bits_iter.c  | 40 +++++++++++++------
 5 files changed, 54 insertions(+), 25 deletions(-)