Re: [PATCH v11 8/9] x86/vdso: Insert endbr32/endbr64 to vDSO

From: Yu, Yu-cheng
Date: Tue Aug 25 2020 - 12:13:13 EST


On 8/24/2020 5:33 PM, Andy Lutomirski wrote:
On Mon, Aug 24, 2020 at 5:30 PM Yu-cheng Yu <yu-cheng.yu@xxxxxxxxx> wrote:

From: "H.J. Lu" <hjl.tools@xxxxxxxxx>

When Indirect Branch Tracking (IBT) is enabled, vDSO functions may be
called indirectly, and must have ENDBR32 or ENDBR64 as the first
instruction. The compiler must support -fcf-protection=branch so that it
can be used to compile vDSO.

Signed-off-by: H.J. Lu <hjl.tools@xxxxxxxxx>
Signed-off-by: Yu-cheng Yu <yu-cheng.yu@xxxxxxxxx>
Acked-by: Andy Lutomirski <luto@xxxxxxxxxx>

I revoke my Ack. Please don't repeat the list of object files. Maybe
add the option to CFL?

I will update the patch.

Yu-cheng