OpenCloudOS-Kernel/arch/x86/entry/vdso
Peter Zijlstra aa3d480315 x86: Use return-thunk in asm code
Use the return thunk in asm code. If the thunk isn't needed, it will
get patched into a RET instruction during boot by apply_returns().

Since alternatives can't handle relocations outside of the first
instruction, putting a 'jmp __x86_return_thunk' in one is not valid,
therefore carve out the memmove ERMS path into a separate label and jump
to it.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
2022-06-27 10:33:58 +02:00
..
vdso32 x86: Prepare asm files for straight-line-speculation 2021-12-08 12:25:37 +01:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile x86: Use return-thunk in asm code 2022-06-27 10:33:58 +02:00
checkundef.sh
extable.c x86/vdso: Add support for exception fixup in vDSO functions 2020-11-18 18:02:50 +01:00
extable.h x86/vdso: Add support for exception fixup in vDSO functions 2020-11-18 18:02:50 +01:00
vclock_gettime.c y2038: vdso: change time_t to __kernel_old_time_t 2019-11-15 14:38:28 +01:00
vdso-layout.lds.S x86: Remove .fixup section 2021-12-11 09:09:50 +01:00
vdso-note.S x86: Add build salt to the vDSO 2018-07-18 01:18:05 +09:00
vdso.lds.S x86/vdso: Implement a vDSO for Intel SGX enclave call 2020-11-18 18:02:50 +01:00
vdso2c.c x86: Fix various typos in comments, take #2 2021-03-21 23:50:28 +01:00
vdso2c.h x86/vdso: Use proper modifier for len's format specifier in extract() 2021-03-06 11:34:07 +01:00
vdso32-setup.c x86/vdso: Provide missing include file 2019-12-29 13:41:31 +01:00
vdsox32.lds.S x86/vdso: Switch to generic vDSO implementation 2019-06-22 21:21:10 +02:00
vgetcpu.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 223 2019-05-30 11:29:55 -07:00
vma.c x86: Fix return value of __setup handlers 2022-05-04 16:47:57 +02:00
vsgx.S x86: Prepare asm files for straight-line-speculation 2021-12-08 12:25:37 +01:00