diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2024-08-29 10:42:25 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-09-11 09:58:30 -0700 |
commit | d4deb82423416e3ace7889816eea630af81fe702 (patch) | |
tree | 64ccb9d07086d240b533b8cb633261ccc712ae88 /kernel/groups.c | |
parent | de3ec364c3c37971dbba1e37a55ae5b646c6f24e (diff) |
lib/buildid: take into account e_phoff when fetching program headers
Current code assumption is that program (segment) headers are following
ELF header immediately. This is a common case, but is not guaranteed. So
take into account e_phoff field of the ELF header when accessing program
headers.
Reviewed-by: Eduard Zingerman <eddyz87@gmail.com>
Reported-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240829174232.3133883-4-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/groups.c')
0 files changed, 0 insertions, 0 deletions