Page MenuHomeFreeBSD

x86/xen: fill hypercall page with int3
ClosedPublic

Authored by royger on Feb 16 2024, 12:15 PM.
Tags
None
Referenced Files
F98953270: D43930.id134432.diff
Sat, Oct 5, 11:38 AM
Unknown Object (File)
Sat, Oct 5, 8:07 AM
Unknown Object (File)
Fri, Oct 4, 8:48 AM
Unknown Object (File)
Fri, Oct 4, 7:57 AM
Unknown Object (File)
Thu, Oct 3, 3:46 AM
Unknown Object (File)
Wed, Oct 2, 9:49 PM
Unknown Object (File)
Wed, Oct 2, 4:15 AM
Unknown Object (File)
Tue, Oct 1, 8:23 PM
Subscribers

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable