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

objtool: Explicitly avoid self modifying code in .altinstr_replacement

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



commit dd003ede
Author: Peter Zijlstra <peterz@infradead.org>
Date:   Tue, 26 Oct 2021 14:01:34 +0200

    objtool: Explicitly avoid self modifying code in .altinstr_replacement

    Assume ALTERNATIVE()s know what they're doing and do not change, or
    cause to change, instructions in .altinstr_replacement sections.

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: default avatarBorislav Petkov <bp@suse.de>
Acked-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
Tested-by: default avatarAlexei Starovoitov <ast@kernel.org>
    Link: https://lore.kernel.org/r/20211026120309.722511775@infradead.org



Signed-off-by: default avatarWaiman Long <longman@redhat.com>
parent 56ab6ffe
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