/usr/src/kernels/4.18.0-553.157.1.el8_10.x86_64/arch/x86/include/uapi/asm
NameSizeModeActions
a.out.h7560644editdlrm
amd_hsmp.h89020644editdlrm
auxvec.h6180644editdlrm
bitsperlong.h3210644editdlrm
boot.h3380644editdlrm
bootparam.h77550644editdlrm
byteorder.h1760644editdlrm
debugreg.h33440644editdlrm
e820.h26200644editdlrm
errno.h310644editdlrm
fcntl.h310644editdlrm
hwcap2.h2700644editdlrm
hw_breakpoint.h690644editdlrm
ioctl.h310644editdlrm
ioctls.h320644editdlrm
ipcbuf.h320644editdlrm
ist.h8690644editdlrm
Kbuild2250644editdlrm
kvm.h117190644editdlrm
kvm_para.h43550644editdlrm
kvm_perf.h3880644editdlrm
ldt.h13060644editdlrm
mce.h17030644editdlrm
mman.h10020644editdlrm
msgbuf.h10530644editdlrm
msr.h3610644editdlrm
mtrr.h42400644editdlrm
param.h310644editdlrm
perf_regs.h14030644editdlrm
posix_types.h2500644editdlrm
posix_types_32.h7650644editdlrm
posix_types_64.h6090644editdlrm
posix_types_x32.h5810644editdlrm
prctl.h6180644editdlrm
processor-flags.h66380644editdlrm
ptrace-abi.h20370644editdlrm
ptrace.h16300644editdlrm
resource.h340644editdlrm
sembuf.h10450644editdlrm
setup.h60644editdlrm
sgx.h83570644editdlrm
shmbuf.h12580644editdlrm
sigcontext.h99510644editdlrm
sigcontext32.h2470644editdlrm
siginfo.h4220644editdlrm
signal.h30400644editdlrm
sockios.h330644editdlrm
stat.h31310644editdlrm
statfs.h4160644editdlrm
svm.h97880644editdlrm
swab.h7690644editdlrm
termbits.h340644editdlrm
termios.h330644editdlrm
types.h1520644editdlrm
ucontext.h21170644editdlrm
unistd.h4000644editdlrm
vm86.h31330644editdlrm
vmx.h73830644editdlrm
vsyscall.h2780644editdlrm
Edit: /usr/src/kernels/4.18.0-553.157.1.el8_10.x86_64/arch/x86/include/uapi/asm/ucontext.h (2117B)
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef _ASM_X86_UCONTEXT_H #define _ASM_X86_UCONTEXT_H /* * Indicates the presence of extended state information in the memory * layout pointed by the fpstate pointer in the ucontext's sigcontext * struct (uc_mcontext). */ #define UC_FP_XSTATE 0x1 #ifdef __x86_64__ /* * UC_SIGCONTEXT_SS will be set when delivering 64-bit or x32 signals on * kernels that save SS in the sigcontext. All kernels that set * UC_SIGCONTEXT_SS will correctly restore at least the low 32 bits of esp * regardless of SS (i.e. they implement espfix). * * Kernels that set UC_SIGCONTEXT_SS will also set UC_STRICT_RESTORE_SS * when delivering a signal that came from 64-bit code. * * Sigreturn restores SS as follows: * * if (saved SS is valid || UC_STRICT_RESTORE_SS is set || * saved CS is not 64-bit) * new SS = saved SS (will fail IRET and signal if invalid) * else * new SS = a flat 32-bit data segment * * This behavior serves three purposes: * * - Legacy programs that construct a 64-bit sigcontext from scratch * with zero or garbage in the SS slot (e.g. old CRIU) and call * sigreturn will still work. * * - Old DOSEMU versions sometimes catch a signal from a segmented * context, delete the old SS segment (with modify_ldt), and change * the saved CS to a 64-bit segment. These DOSEMU versions expect * sigreturn to send them back to 64-bit mode without killing them, * despite the fact that the SS selector when the signal was raised is * no longer valid. UC_STRICT_RESTORE_SS will be clear, so the kernel * will fix up SS for these DOSEMU versions. * * - Old and new programs that catch a signal and return without * modifying the saved context will end up in exactly the state they * started in, even if they were running in a segmented context when * the signal was raised.. Old kernels would lose track of the * previous SS value. */ #define UC_SIGCONTEXT_SS 0x2 #define UC_STRICT_RESTORE_SS 0x4 #endif #include #endif /* _ASM_X86_UCONTEXT_H */