freebsd-dev/sys/x86
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
..
acpica amd64/efi: Stop falling back to hints for RSDP 2022-07-02 08:02:12 -06:00
bios x86: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:46:58 -07:00
conf Complete retire cp(4) 2022-12-14 11:38:55 +08:00
cpufreq cpufreq: Remove unused devclass arguments to DRIVER_MODULE. 2022-05-06 15:39:29 -07:00
include amd64: reduce header pollution in _stdint.h 2023-03-22 16:23:57 +00:00
iommu kmem_malloc/free: Use void * instead of vm_offset_t for kernel pointers. 2022-09-22 15:09:19 -07:00
isa atrtc: expose power loss as sysctl 2023-02-02 08:25:08 +01:00
linux linux(4): Cleanup includes under x86/linux 2023-02-14 17:46:33 +03:00
pci pci: expose intel_graphics_stolen as sysctl 2023-03-27 11:40:49 +02:00
x86 x86: nexus code tidy-up 2023-03-20 17:35:47 -03:00
xen xen/intr: fix corruption of event channel table 2023-03-29 09:51:40 +02:00