RE: [tip: x86/core] objtool: Find unused ENDBR instructions
From: David Laight
Date: Tue Mar 15 2022 - 11:40:01 EST
From: Peter Zijlstra
>
> 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.
Thought, what happens if the only indirect call is from
code in a module?
David
-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)