linux/arch/x86/entry
Thomas Gleixner 55617fb991 x86/entry: Do not allow external 0x80 interrupts
The INT 0x80 instruction is used for 32-bit x86 Linux syscalls. The
kernel expects to receive a software interrupt as a result of the INT
0x80 instruction. However, an external interrupt on the same vector
also triggers the same codepath.

An external interrupt on vector 0x80 will currently be interpreted as a
32-bit system call, and assuming that it was a user context.

Panic on external interrupts on the vector.

To distinguish software interrupts from external ones, the kernel checks
the APIC ISR bit relevant to the 0x80 vector. For software interrupts,
this bit will be 0.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@vger.kernel.org> # v6.0+
2023-12-07 09:51:29 -08:00
..
syscalls asm-generic updates for v6.7 2023-11-01 15:28:33 -10:00
vdso Kbuild updates for v6.7 2023-11-04 08:07:19 -10:00
vsyscall
calling.h
common.c x86/entry: Do not allow external 0x80 interrupts 2023-12-07 09:51:29 -08:00
entry.S x86/headers: Replace #include <asm/export.h> with #include <linux/export.h> 2023-10-03 10:38:07 +02:00
entry_32.S x86/entry/32: Convert do_fast_syscall_32() to bool return type 2023-10-05 10:06:42 +02:00
entry_64.S Changes to the x86 entry code in v6.7: 2023-10-30 15:27:27 -10:00
entry_64_compat.S x86/entry: Convert INT 0x80 emulation to IDTENTRY 2023-12-07 09:51:29 -08:00
Makefile
syscall_32.c
syscall_64.c
syscall_x32.c
thunk_32.S x86/headers: Replace #include <asm/export.h> with #include <linux/export.h> 2023-10-03 10:38:07 +02:00
thunk_64.S x86/headers: Replace #include <asm/export.h> with #include <linux/export.h> 2023-10-03 10:38:07 +02:00