CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2025/02/12 13:18:31
Modified files:
sys/arch/amd64/amd64: db_interface.c
Log message:
Fix ddb machine sysregs stack overflow.
In 64-bit mode, the operand size of SIDT and SGDT instructions is
8+2 bytes. On amd64 ddb command 'machine sysregs' reserved only
int64_t, resulting in a stack overflow. Use struct region_descriptor
which has the correct memory layout for IDTR and GDTR.
Allow to call db_sysregs_cmd() also with single processor kernel.
from Sebastian Sturm; OK deraadt@ miod@