Skip to content
Snippets Groups Projects
Commit c4b23cb3 authored by Waiman Long's avatar Waiman Long
Browse files

objtool: Fix pv_ops noinstr validation

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2090231



commit 988f0168
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Thu, 2 Dec 2021 21:45:34 +0100

    objtool: Fix pv_ops noinstr validation

    Boris reported that in one of his randconfig builds, objtool got
    infinitely stuck. Turns out there's trivial list corruption in the
    pv_ops tracking when a function is both in a static table and in a code
    assignment.

    Avoid re-adding function to the pv_ops[] lists when they're already on
    it.

    Fixes: db2b0c5d ("objtool: Support pv_opsindirect calls for noinstr")
Reported-by: default avatarBorislav Petkov <bp@alien8.de>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Tested-by: default avatarBorislav Petkov <bp@alien8.de>
    Link: https://lkml.kernel.org/r/20211202204534.GA16608@worktop.programming.kicks-ass.net



Signed-off-by: default avatarWaiman Long <longman@redhat.com>
parent 0aee080d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment