x86: Remove ARCH_CET_LEGACY_BITMAP [BZ #25397]
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 18 Mar 2020 11:35:54 +0000 (04:35 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 18 Mar 2020 11:35:54 +0000 (04:35 -0700)
commit1fabdb99084df004f7f4cdc7068d1be209a258be
tree3d0bdb677e7bc8d6d1080d37604a1cf4b3253d21
parent49348beafe9ba150c9bd48595b3f372299bddbb0
x86: Remove ARCH_CET_LEGACY_BITMAP [BZ #25397]

Since legacy bitmap doesn't cover jitted code generated by legacy JIT
engine, it isn't very useful.  This patch removes ARCH_CET_LEGACY_BITMAP
and treats indirect branch tracking similar to shadow stack by removing
legacy bitmap support.

Tested on CET Linux/x86-64 and non-CET Linux/x86-64.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/unix/sysv/linux/x86/dl-cet.h
sysdeps/unix/sysv/linux/x86/include/asm/prctl.h
sysdeps/x86/Makefile
sysdeps/x86/dl-cet.c
sysdeps/x86/dl-procruntime.c
sysdeps/x86/tst-cet-legacy-4.c
sysdeps/x86/tst-cet-legacy-5.c
sysdeps/x86/tst-cet-legacy-6.c
sysdeps/x86/tst-cet-legacy-7.c [new file with mode: 0644]
sysdeps/x86/tst-cet-legacy-8.c [new file with mode: 0644]