x86: fix assertion in ipi_send_cpu to range check the passed id
authormjg <mjg@FreeBSD.org>
Sun, 19 Jan 2020 21:35:51 +0000 (21:35 +0000)
committermjg <mjg@FreeBSD.org>
Sun, 19 Jan 2020 21:35:51 +0000 (21:35 +0000)
commita5ea66549855400a5928926471d758ae257069fa
treec9cbcf94e1c9327d82a48b8ec84811645ddb2ab1
parent83894458eef3a411d1277228856fe36234d00544
x86: fix assertion in ipi_send_cpu to range check the passed id

Prior to the change for sufficiently bad id (and in particular NOCPU which is -1)
it would access memory outside of the cpu_apic_ids array.
sys/x86/x86/mp_x86.c