diff options
| author | Friedrich Vock <[email protected]> | 2024-05-14 07:09:31 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2024-05-24 15:12:12 +0000 |
| commit | 44382b3ed6b2787710c8ade06c0e97f5970a47c8 (patch) | |
| tree | ffd66a523cd4888ffba95883d30df99f22a9fb7d /drivers/net/netkit.c | |
| parent | MAINTAINERS: Add myself as reviewer of ARM64 BPF JIT (diff) | |
| download | kernel-44382b3ed6b2787710c8ade06c0e97f5970a47c8.tar.gz kernel-44382b3ed6b2787710c8ade06c0e97f5970a47c8.zip | |
bpf: Fix potential integer overflow in resolve_btfids
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.
Fixes: fbbb68de80a4 ("bpf: Add resolve_btfids tool to resolve BTF IDs in ELF object")
Signed-off-by: Friedrich Vock <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/net/netkit.c')
0 files changed, 0 insertions, 0 deletions
