]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
x86/xen: fill hypercall page with int3
authorRoger Pau Monné <royger@FreeBSD.org>
Fri, 2 Feb 2024 08:50:16 +0000 (09:50 +0100)
committerRoger Pau Monné <royger@FreeBSD.org>
Thu, 22 Feb 2024 10:08:04 +0000 (11:08 +0100)
commite283c994ab270706142ef5dde9092950000af901
tree4ff53530542af82e43a351bd3548c60ae50c70a4
parent6744fd8e75032c893e6a80bced8be3a991fa2901
x86/xen: fill hypercall page with int3

Filling the hypercall page with nops is not helpful from a debugging point of
view, as for example attempting to execute an hypercall before the page is
initialized will result in the execution flow falling through into
xen_start32, making the mistake less obvious to spot.

Instead fill the page with int3 (0xcc) which will result in a #BP trap.

Sponsored by: Cloud Software Group
Reviewed by: markj
Differential revision: https://reviews.freebsd.org/D43930
sys/amd64/amd64/xen-locore.S