]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
lib/buildid: Fix build ID parsing logic
authorJiri Olsa <jolsa@kernel.org>
Mon, 4 Nov 2024 17:52:53 +0000 (18:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:50:37 +0000 (19:50 +0100)
commit659191444d993e4fefc89357af125e64e0fcd160
treed2f2755e90a6505d2bfee824fee7b50e0c7bf139
parent7a514335cf413f8de4bf62a7d6c5595a3cff1940
lib/buildid: Fix build ID parsing logic

The parse_build_id_buf does not account Elf32_Nhdr header size
when getting the build id data pointer and returns wrong build
id data as result.

This is problem only stable trees that merged 8fa2b6817a95 fix,
the upstream build id code was refactored and returns proper
build id.

Acked-by: Andrii Nakryiko <andrii@kernel.org>
Fixes: 8fa2b6817a95 ("lib/buildid: harden build ID parsing logic")
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/buildid.c