diff options
| author | Josh Poimboeuf <jpoimboe@kernel.org> | 2026-04-21 07:21:19 -0700 |
|---|---|---|
| committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2026-05-04 21:16:02 -0700 |
| commit | a375e327b63e0da29b82a92b569bfdf4628fa38a (patch) | |
| tree | a19c34bff09902e0e55f85b821a319afb2794de2 /scripts/makelst | |
| parent | 5f49ec82b9f65507c262a6e3f1b53663f79eedce (diff) | |
objtool: Fix reloc hash collision in find_reloc_by_dest_range()
In find_reloc_by_dest_range(), hash collisions can cause a high-offset
relocation to appear when probing a low-offset hash bucket.
Only return early when the best match found so far genuinely belongs to
the current bucket (its offset is within the bucket's stride range).
Otherwise, continue scanning later buckets which may contain
lower-offset matches.
This ensures the first reloc in the range gets returned.
Fixes: 74b873e49d92 ("objtool: Optimize find_rela_by_dest_range()")
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Song Liu <song@kernel.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'scripts/makelst')
0 files changed, 0 insertions, 0 deletions
