Page MenuHomeFreeBSD

x86/xen: fill hypercall page with int3
ClosedPublic

Authored by royger on Feb 16 2024, 12:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 1, 6:27 AM
Unknown Object (File)
Sun, Nov 24, 11:41 PM
Unknown Object (File)
Sat, Nov 23, 11:08 AM
Unknown Object (File)
Thu, Nov 21, 4:28 PM
Unknown Object (File)
Wed, Nov 20, 8:36 PM
Unknown Object (File)
Wed, Nov 20, 1:49 AM
Unknown Object (File)
Tue, Nov 19, 10:21 PM
Unknown Object (File)
Tue, Nov 19, 7:51 AM
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