Re: [PATCH bpf-next] libbpf: fix realloc API handling in zero-sized edge cases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello:

This patch was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@xxxxxxxxxxxxx>:

On Mon, 10 Jul 2023 19:41:50 -0700 you wrote:
> realloc() and reallocarray() can either return NULL or a special
> non-NULL pointer, if their size argument is zero. This requires a bit
> more care to handle NULL-as-valid-result situation differently from
> NULL-as-error case. This has caused real issues before ([0]), and just
> recently bit again in production when performing bpf_program__attach_usdt().
> 
> This patch fixes 4 places that do or potentially could suffer from this
> mishandling of NULL, including the reported USDT-related one.
> 
> [...]

Here is the summary with links:
  - [bpf-next] libbpf: fix realloc API handling in zero-sized edge cases
    https://git.kernel.org/bpf/bpf-next/c/8a0260dbf655

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html






[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux