mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen/check-endbr.sh: Explain the purpose of the script
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
d33ccc9875
commit
cc338b48dc
1 file changed
+9
@@ -2,6 +2,15 @@
|
||||
#
|
||||
# Usage ./$0 xen-syms
|
||||
#
|
||||
# When CET-IBT (Control-flow Enforcement Technology, Indirect Branch Tracking)
|
||||
# is active, ENDBR instructions mark legal indirect branch targets in the
|
||||
# .text section.
|
||||
#
|
||||
# However x86 is a variable length instruction set so the same byte pattern
|
||||
# can exist embedded in other instructions, or crossing multiple instructions.
|
||||
# This script searches .text for any problematic byte patterns which aren't
|
||||
# legitimate ENDBR instructions.
|
||||
#
|
||||
set -e
|
||||
|
||||
# Pretty-print parameters a little for message
|
||||
|
||||