HomeFreeBSD

xen/intr: fix overflow of Xen interrupt range

Description

xen/intr: fix overflow of Xen interrupt range

The comparison was wrong. Hopefully this never occurred in the wild,
but now ensure the error message will occur before damage is caused.
This appears non-exploitable as exploitation would require a guest to
force Domain 0 to allocate all event channels, which a guest shouldn't
be able to do.

Adjust the error message to better describe what has occurred.

Reviewed by: royger
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D30743

Details

Provenance
ehem_freebsd_m5p.comAuthored on May 11 2021, 10:11 PM
roygerCommitted on Mar 29 2023, 7:51 AM
Reviewer
royger
Differential Revision
D30743: xen/intr: rework handling of event channel numbers in xen_intr.c
Parents
rG2d5e325303cf: xen/intr: always set xi_close in xen_intr_bind_isrc()
Branches
Unknown
Tags
Unknown