Re: [PATCH bpf-next] selftests/bpf: Add malloc failure checks in bpf_iter

2023-10-24 Thread Yonghong Song
On 10/24/23 7:28 PM, Kui-Feng Lee wrote: Thank you for the patches. I found you have two patches in this set. You can generate both patch at once with git format-patch. format-patch will give each patch a number in their order. For example, the subject of this message will be   [PATCH bpf-nex

Re: [PATCH bpf-next] selftests/bpf: Add malloc failure checks in bpf_iter

2023-10-24 Thread Kui-Feng Lee
Thank you for the patches. I found you have two patches in this set. You can generate both patch at once with git format-patch. format-patch will give each patch a number in their order. For example, the subject of this message will be [PATCH bpf-next 2/2] selftest/bpf: Add malloc And, y

[PATCH bpf-next] selftests/bpf: Add malloc failure checks in bpf_iter

2023-10-24 Thread Yuran Pereira
Since some malloc calls in bpf_iter may at times fail, this patch adds the appropriate fail checks, and ensures that any previously allocated resource is appropriately destroyed before returning the function. This is patch 2 in the sequence should be applied after d1a88d37cecc "selftests/bpf: Conv