Message ID | 20231211112843.4147157-1-houtao@huaweicloud.com (mailing list archive) |
---|---|
Headers | show
Received: from dggsgout11.his.huawei.com (unknown [45.249.212.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05C58A6 for <bpf@vger.kernel.org>; Mon, 11 Dec 2023 03:27:42 -0800 (PST) Received: from mail.maildlp.com (unknown [172.19.163.235]) by dggsgout11.his.huawei.com (SkyGuard) with ESMTP id 4Spfc65X0Tz4f3lfD for <bpf@vger.kernel.org>; Mon, 11 Dec 2023 19:27:34 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id A7ABF1A0AC5 for <bpf@vger.kernel.org>; Mon, 11 Dec 2023 19:27:39 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP1 (Coremail) with SMTP id cCh0CgCnqxEp8nZlUTNnDQ--.13914S4; Mon, 11 Dec 2023 19:27:39 +0800 (CST) From: Hou Tao <houtao@huaweicloud.com> To: bpf@vger.kernel.org Cc: Martin KaFai Lau <martin.lau@linux.dev>, Alexei Starovoitov <alexei.starovoitov@gmail.com>, Andrii Nakryiko <andrii@kernel.org>, Song Liu <song@kernel.org>, Hao Luo <haoluo@google.com>, Yonghong Song <yonghong.song@linux.dev>, Daniel Borkmann <daniel@iogearbox.net>, KP Singh <kpsingh@kernel.org>, Stanislav Fomichev <sdf@google.com>, Jiri Olsa <jolsa@kernel.org>, John Fastabend <john.fastabend@gmail.com>, xingwei lee <xrivendell7@gmail.com>, houtao1@huawei.com Subject: [PATCH bpf-next 0/4] bpf: Fix warnings in kvmalloc_node() Date: Mon, 11 Dec 2023 19:28:39 +0800 Message-Id: <20231211112843.4147157-1-houtao@huaweicloud.com> X-Mailer: git-send-email 2.29.2 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: <bpf.vger.kernel.org> List-Subscribe: <mailto:bpf+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:bpf+unsubscribe@vger.kernel.org> M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0_Cr1UYxBIdaVFxhVjvjDU0xZFpf9x07UWE__UUUUU= X-CM-SenderInfo: xkrx3t3r6k3tpzhluzxrxghudrp/ X-Patchwork-Delegate: bpf@iogearbox.net |
Series |
bpf: Fix warnings in kvmalloc_node()
|
expand
|
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(-)