RE: [tip: x86/core] objtool: Find unused ENDBR instructions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: RE: [tip: x86/core] objtool: Find unused ENDBR instructions
- From: David Laight <David.Laight@xxxxxxxxxx>
- Date: Tue, 15 Mar 2022 15:39:52 +0000
- Accept-language: en-GB, en-US
- Cc: "Peter Zijlstra (Intel)" <peterz@xxxxxxxxxxxxx>, Josh Poimboeuf <jpoimboe@xxxxxxxxxx>, "x86@xxxxxxxxxx" <x86@xxxxxxxxxx>
- In-reply-to: <164734101940.16921.11639161864874862247.tip-bot2@tip-bot2>
- References: <20220308154319.763643193@infradead.org> <164734101940.16921.11639161864874862247.tip-bot2@tip-bot2>
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)
[Index of Archives]
[Linux Stable Commits]
[Linux Stable Kernel]
[Linux Kernel]
[Linux USB Devel]
[Linux Video &Media]
[Linux Audio Users]
[Yosemite News]
[Linux SCSI]