mbox series

[bpf-next,0/4] bpf: Fix warnings in kvmalloc_node()

Message ID 20231211112843.4147157-1-houtao@huaweicloud.com (mailing list archive)
Headers show
Series bpf: Fix warnings in kvmalloc_node() | expand

Message

Hou Tao Dec. 11, 2023, 11:28 a.m. UTC
From: Hou Tao <houtao1@huawei.com>

Hi,

The patch set aims to fix the warnings in kvmalloc_node() when passing
an abnormally big cnt during multiple kprobes/uprobes attachment.

Patch #1 fixes the warning in multiple uprobes attachment and patch #4
is the corresponding test case. Patch #2 fixes the warning for multiple
kprobes attachment and patch #3 is the corresponding test case.

Please see individual patches for more details. Comments are always
welcome.

Hou Tao (4):
  bpf: Use __GFP_NOWARN for kvcalloc when attaching multiple uprobes
  bpf: Use __GFP_NOWARN for kvmalloc_array() when attaching multiple
    kprobes
  selftests/bpf: Add test for abnormal cnt during multi-kprobe
    attachment
  selftests/bpf: Add test for abnormal cnt during multi-uprobe
    attachment

 kernel/trace/bpf_trace.c                      | 10 ++---
 .../bpf/prog_tests/kprobe_multi_test.c        | 14 ++++++
 .../bpf/prog_tests/uprobe_multi_test.c        | 43 ++++++++++++++++++-
 3 files changed, 61 insertions(+), 6 deletions(-)