In kpageflttrap(), validate a non-NULL pcb_onfault against an array
authorguenther <guenther@openbsd.org>
Mon, 7 Nov 2022 01:41:57 +0000 (01:41 +0000)
committerguenther <guenther@openbsd.org>
Mon, 7 Nov 2022 01:41:57 +0000 (01:41 +0000)
commit4c5e57a2bb21e6f8963cca482c2e6a369211a6f7
tree25ad9c3b5973c6b46ce9dc7fe699c2821145dc46
parent8e365c3b94fe10351d4377954bb0a09377cb7ffa
In kpageflttrap(), validate a non-NULL pcb_onfault against an array
of permitted addresses, done via .nofault* sections that end up in
the linked kernel's rodata.

ok deraadt@ kettenis@
sys/arch/amd64/amd64/copy.S
sys/arch/amd64/amd64/efi_machdep.c
sys/arch/amd64/amd64/trap.c
sys/arch/amd64/conf/ld.script