Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/asm
File: ucontext.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef _ASM_X86_UCONTEXT_H
[1] Fix | Delete
#define _ASM_X86_UCONTEXT_H
[2] Fix | Delete
[3] Fix | Delete
/*
[4] Fix | Delete
* Indicates the presence of extended state information in the memory
[5] Fix | Delete
* layout pointed by the fpstate pointer in the ucontext's sigcontext
[6] Fix | Delete
* struct (uc_mcontext).
[7] Fix | Delete
*/
[8] Fix | Delete
#define UC_FP_XSTATE 0x1
[9] Fix | Delete
[10] Fix | Delete
#ifdef __x86_64__
[11] Fix | Delete
/*
[12] Fix | Delete
* UC_SIGCONTEXT_SS will be set when delivering 64-bit or x32 signals on
[13] Fix | Delete
* kernels that save SS in the sigcontext. All kernels that set
[14] Fix | Delete
* UC_SIGCONTEXT_SS will correctly restore at least the low 32 bits of esp
[15] Fix | Delete
* regardless of SS (i.e. they implement espfix).
[16] Fix | Delete
*
[17] Fix | Delete
* Kernels that set UC_SIGCONTEXT_SS will also set UC_STRICT_RESTORE_SS
[18] Fix | Delete
* when delivering a signal that came from 64-bit code.
[19] Fix | Delete
*
[20] Fix | Delete
* Sigreturn restores SS as follows:
[21] Fix | Delete
*
[22] Fix | Delete
* if (saved SS is valid || UC_STRICT_RESTORE_SS is set ||
[23] Fix | Delete
* saved CS is not 64-bit)
[24] Fix | Delete
* new SS = saved SS (will fail IRET and signal if invalid)
[25] Fix | Delete
* else
[26] Fix | Delete
* new SS = a flat 32-bit data segment
[27] Fix | Delete
*
[28] Fix | Delete
* This behavior serves three purposes:
[29] Fix | Delete
*
[30] Fix | Delete
* - Legacy programs that construct a 64-bit sigcontext from scratch
[31] Fix | Delete
* with zero or garbage in the SS slot (e.g. old CRIU) and call
[32] Fix | Delete
* sigreturn will still work.
[33] Fix | Delete
*
[34] Fix | Delete
* - Old DOSEMU versions sometimes catch a signal from a segmented
[35] Fix | Delete
* context, delete the old SS segment (with modify_ldt), and change
[36] Fix | Delete
* the saved CS to a 64-bit segment. These DOSEMU versions expect
[37] Fix | Delete
* sigreturn to send them back to 64-bit mode without killing them,
[38] Fix | Delete
* despite the fact that the SS selector when the signal was raised is
[39] Fix | Delete
* no longer valid. UC_STRICT_RESTORE_SS will be clear, so the kernel
[40] Fix | Delete
* will fix up SS for these DOSEMU versions.
[41] Fix | Delete
*
[42] Fix | Delete
* - Old and new programs that catch a signal and return without
[43] Fix | Delete
* modifying the saved context will end up in exactly the state they
[44] Fix | Delete
* started in, even if they were running in a segmented context when
[45] Fix | Delete
* the signal was raised.. Old kernels would lose track of the
[46] Fix | Delete
* previous SS value.
[47] Fix | Delete
*/
[48] Fix | Delete
#define UC_SIGCONTEXT_SS 0x2
[49] Fix | Delete
#define UC_STRICT_RESTORE_SS 0x4
[50] Fix | Delete
#endif
[51] Fix | Delete
[52] Fix | Delete
#include <asm-generic/ucontext.h>
[53] Fix | Delete
[54] Fix | Delete
#endif /* _ASM_X86_UCONTEXT_H */
[55] Fix | Delete
[56] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function