Reject attempts to map host physical address ranges that are not
subsets of a passthrough device's BAR into a guest.
Sponsored by: The FreeBSD Foundation
Differential D36238 Authored by jhb on Aug 16 2022, 11:03 PM.
Details Summary Reject attempts to map host physical address ranges that are not Sponsored by: The FreeBSD Foundation
Diff Detail
Event TimelineHerald added a reviewer: bhyve. · View Herald TranscriptAug 16 2022, 11:03 PM2022-08-16 23:03:16 (UTC+0) Harbormaster completed remote builds in B46989: Diff 109438.Aug 16 2022, 11:03 PM2022-08-16 23:03:48 (UTC+0)
Harbormaster completed remote builds in B47005: Diff 109478.Aug 17 2022, 6:35 PM2022-08-17 18:35:52 (UTC+0)
markj added inline comments.
This revision is now accepted and ready to land.Aug 18 2022, 6:51 PM2022-08-18 18:51:10 (UTC+0)
Closed by commit rGc94f30ea85b7: bhyve: Validate host PAs used to map passthrough BARs. (authored by jhb). · Explain WhyAug 19 2022, 10:27 PM2022-08-19 22:27:48 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 109438 sys/amd64/vmm/io/ppt.c
|
I think a_addr and a_mask should be struct sockaddr_strorage, not sockaddr. While sizeof(sockaddr) can be equal to sizeof(sockaddr_in), sizeof(sockaddr_in6) is always longer.