create a new code ILL_BTCFI associated with SIGILL for trap faults which
authorderaadt <deraadt@openbsd.org>
Wed, 21 Feb 2024 15:53:07 +0000 (15:53 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 21 Feb 2024 15:53:07 +0000 (15:53 +0000)
commit88580652a3669007813512ab28f5ee7ceeae4a78
tree43705d7d66f23ac1c7d9617f9ee3b8cb34e82be3
parent4f930a5746d2a07c13cd341b44b23f0de1c0f54c
create a new code ILL_BTCFI associated with SIGILL for trap faults which
indicate missing indirect branch target instructions (on the two
architectures which currently have this).  This becomes nicely visible in
kdump:
  6526 cat      PSIG  SIGILL SIG_DFL code=ILL_BTCFI addr=0x438fad6a990 trapno=21
ok kettenis sthen miod rsadowski
sys/arch/amd64/amd64/trap.c
sys/arch/arm64/arm64/trap.c
sys/sys/siginfo.h