Re: [PATCH] bpf: Fix potential integer overflow in resolve_btfids

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

 



Hello:

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

On Tue, 14 May 2024 09:09:31 +0200 you wrote:
> err is a 32-bit integer, but elf_update returns an off_t, which is
> 64-bit at least on 64-bit platforms. If symbols_patch is called on a
> binary between 2-4GB in size, the result will be negative when cast to
> a 32-bit integer, which the code assumes means an error occurred. This
> can wrongly trigger build failures when building very large kernel
> images.
> 
> [...]

Here is the summary with links:
  - bpf: Fix potential integer overflow in resolve_btfids
    https://git.kernel.org/bpf/bpf/c/44382b3ed6b2

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