freebsd-dev/sys/x86/xen
Elliott Mitchell 2b2415bafa xen/intr: fix corruption of event channel table
In xen_intr_release_isrc(), the isrc should only be removed if it is
assigned to a valid port.  This had been mitigated by using 0 for not
having a port, but this is actually corrupting the table.  Fix this bug
as modifying the code would cause this bug to manifest as kernel memory
corruption.  Similar issue for the vCPU bitmap masks.

The KASSERT() doesn't need lock protection.

Reviewed by: royger
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D30743
2023-03-29 09:51:40 +02:00
..
hvm.c Fix various places which cast a pointer to a vm_paddr_t or vice versa. 2022-10-03 16:10:41 -07:00
pv.c xen: take struct size into account for video information 2023-03-14 09:59:08 +01:00
xen_apic.c xen: switch to use headers in contrib 2022-02-07 10:11:56 +01:00
xen_intr.c xen/intr: fix corruption of event channel table 2023-03-29 09:51:40 +02:00