mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
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>
This commit is contained in:
@@ -18,26 +18,6 @@
|
||||
#include <sys/prctl.h>
|
||||
#include <asm/prctl.h>
|
||||
|
||||
static inline int __attribute__ ((always_inline))
|
||||
dl_cet_allocate_legacy_bitmap (unsigned long *legacy_bitmap)
|
||||
{
|
||||
/* Allocate legacy bitmap. */
|
||||
#ifdef __LP64__
|
||||
return (int) INTERNAL_SYSCALL_CALL (arch_prctl,
|
||||
ARCH_CET_LEGACY_BITMAP, legacy_bitmap);
|
||||
#else
|
||||
unsigned long long legacy_bitmap_u64[2];
|
||||
int res = INTERNAL_SYSCALL_CALL (arch_prctl,
|
||||
ARCH_CET_LEGACY_BITMAP, legacy_bitmap_u64);
|
||||
if (res == 0)
|
||||
{
|
||||
legacy_bitmap[0] = legacy_bitmap_u64[0];
|
||||
legacy_bitmap[1] = legacy_bitmap_u64[1];
|
||||
}
|
||||
return res;
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline int __attribute__ ((always_inline))
|
||||
dl_cet_disable_cet (unsigned int cet_feature)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user