]> git.hungrycats.org Git - linux/commit
lib/buildid: Fix build ID parsing logic
authorJiri Olsa <jolsa@kernel.org>
Mon, 4 Nov 2024 17:52:54 +0000 (18:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Nov 2024 14:37:32 +0000 (15:37 +0100)
commitc7fa16e41acd789da6cc434b4d5b88eef57b99c1
tree827733387c63a00d2926ebe0ddcb5d3df2cd5c07
parentcec736e60dc18d91b88af28d96664bff284b02d1
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 for stable trees that merged 84887f4c1c3a
fix, the upstream build id code was refactored and returns proper
build id.

Acked-by: Andrii Nakryiko <andrii@kernel.org>
Fixes: 84887f4c1c3a ("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