commit | 89bc853eae4ad125030ef99f207ba76c2f00a26e | [log] [tgz] |
---|---|---|
author | Peter Zijlstra <peterz@infradead.org> | Tue Mar 08 16:30:55 2022 +0100 |
committer | Peter Zijlstra <peterz@infradead.org> | Tue Mar 15 10:32:47 2022 +0100 |
tree | 7f3aa0f233858f04ee61872e4ae3a795433b4fa4 | |
parent | 08f87a93c8ec709698edba66a5167077181fc978 [diff] |
objtool: Find unused ENDBR instructions Find all ENDBR instructions which are never referenced and stick them in a section such that the kernel can poison them, sealing the functions from ever being an indirect call target. This removes about 1-in-4 ENDBR instructions. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/20220308154319.763643193@infradead.org