linux/arch/x86/lib
Kirill A. Shutemov 85fd85bc02 x86/insn: Fix CTEST instruction decoding
insn_decoder_test found a problem with decoding APX CTEST instructions:

	Found an x86 instruction decoder bug, please report this.
	ffffffff810021df	62 54 94 05 85 ff    	ctestneq
	objdump says 6 bytes, but insn_get_length() says 5

It happens because x86-opcode-map.txt doesn't specify arguments for the
instruction and the decoder doesn't expect to see ModRM byte.

Fixes: 690ca3a306 ("x86/insn: Add support for APX EVEX instructions to the opcode map")
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org # v6.10+
Link: https://lore.kernel.org/r/20250423065815.2003231-1-kirill.shutemov@linux.intel.com
2025-04-24 20:19:17 +02:00
..
.gitignore
Makefile CRC updates for 6.15 2025-03-25 18:33:04 -07:00
atomic64_32.c
atomic64_386_32.S
atomic64_cx8_32.S locking/atomic/x86: Introduce the read64_nonatomic macro to x86_32 with cx8 2024-07-17 16:28:11 +02:00
bhi.S x86/bhi: Add BHI stubs 2025-02-26 13:48:52 +01:00
cache-smp.c x86: fix missing includes/forward declarations 2023-12-20 16:40:30 -05:00
checksum_32.S x86/headers: Replace #include <asm/export.h> with #include <linux/export.h> 2023-10-03 10:38:07 +02:00
clear_page_64.S x86/cfi: Clean up linkage 2025-02-14 10:32:05 +01:00
cmdline.c x86/setup: Parse the builtin command line before merging 2024-07-31 21:46:35 +02:00
cmpxchg8b_emu.S x86/cpufeatures: Rename X86_CMPXCHG64 to X86_CX8 2025-02-28 11:42:34 +01:00
cmpxchg16b_emu.S x86/percpu: Introduce %rip-relative addressing to PER_CPU_VAR() 2023-10-20 12:19:51 +02:00
copy_mc.c x86: call instrumentation hooks from copy_mc.c 2024-04-25 21:07:02 -07:00
copy_mc_64.S
copy_page_64.S x86,kcfi: Fix EXPORT_SYMBOL vs kCFI 2025-02-14 10:32:05 +01:00
copy_user_64.S x86/uaccess: Improve performance by aligning writes to 8 bytes in copy_user_generic(), on non-FSRM/ERMS CPUs 2025-03-28 22:57:44 +01:00
copy_user_uncached_64.S x86/cfi: Clean up linkage 2025-02-14 10:32:05 +01:00
cpu.c
crc-pclmul-consts.h x86/crc64: implement crc64_be and crc64_nvme using new template 2025-02-10 09:49:35 -08:00
crc-pclmul-template.S x86/crc: drop the avx10_256 functions and rename avx10_512 to avx512 2025-03-19 12:22:00 -07:00
crc-pclmul-template.h x86/crc: drop the avx10_256 functions and rename avx10_512 to avx512 2025-03-19 12:22:00 -07:00
crc-t10dif-glue.c x86/crc-t10dif: implement crc_t10dif using new template 2025-02-10 09:49:32 -08:00
crc16-msb-pclmul.S x86/crc-t10dif: implement crc_t10dif using new template 2025-02-10 09:49:32 -08:00
crc32-glue.c x86/crc32: optimize tail handling for crc32c short inputs 2025-03-10 09:29:29 -07:00
crc32-pclmul.S x86/crc32: implement crc32_le using new template 2025-02-10 09:49:28 -08:00
crc32c-3way.S x86/crc32: expose CRC32 functions through lib 2024-12-01 17:23:01 -08:00
crc64-glue.c x86/crc64: implement crc64_be and crc64_nvme using new template 2025-02-10 09:49:35 -08:00
crc64-pclmul.S x86/crc64: implement crc64_be and crc64_nvme using new template 2025-02-10 09:49:35 -08:00
csum-copy_64.S
csum-partial_64.c x86/csum: clean up `csum_partial' further 2024-01-04 15:42:30 -08:00
csum-wrappers_64.c x86/lib: Address kernel-doc warnings 2023-10-03 22:46:47 +02:00
delay.c x86/delay: Fix inconsistent whitespace 2025-03-05 09:51:04 +01:00
error-inject.c
getuser.S x86/runtime-const: Add the RUNTIME_CONST_PTR assembly macro 2025-03-19 11:26:24 +01:00
hweight.S x86/cfi: Clean up linkage 2025-02-14 10:32:05 +01:00
inat.c
insn-eval.c x86/insn-eval: Fix function param name in get_eff_addr_sib() 2024-02-13 22:41:25 +01:00
insn.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
iomem.c x86/kmsan: Fix hook for unaligned accesses 2024-06-25 11:37:21 +02:00
kaslr.c
memcpy_32.c
memcpy_64.S x86/headers: Replace #include <asm/export.h> with #include <linux/export.h> 2023-10-03 10:38:07 +02:00
memmove_32.S x86/headers: Replace #include <asm/export.h> with #include <linux/export.h> 2023-10-03 10:38:07 +02:00
memmove_64.S x86,kcfi: Fix EXPORT_SYMBOL vs kCFI 2025-02-14 10:32:05 +01:00
memset_64.S x86,kcfi: Fix EXPORT_SYMBOL vs kCFI 2025-02-14 10:32:05 +01:00
misc.c x86/lib: Fix overflow when counting digits 2023-11-17 06:26:14 -08:00
msr-reg-export.c
msr-reg.S x86,kcfi: Fix EXPORT_SYMBOL vs kCFI 2025-02-14 10:32:05 +01:00
msr-smp.c x86/msr: Add missing __percpu annotations 2024-03-04 12:01:54 +01:00
msr.c x86/bugs: KVM: Add support for SRSO_MSR_FIX 2025-02-26 15:13:06 +01:00
pc-conf-reg.c
putuser.S x86/cfi: Clean up linkage 2025-02-14 10:32:05 +01:00
retpoline.S x86/retbleed: Move call depth to percpu hot section 2025-03-04 20:30:33 +01:00
string_32.c
strstr_32.c
usercopy.c
usercopy_32.c
usercopy_64.c x86/usercopy: Fix kernel-doc func param name in clean_cache_range()'s description 2025-02-23 11:52:48 +01:00
x86-opcode-map.txt x86/insn: Fix CTEST instruction decoding 2025-04-24 20:19:17 +02:00