Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176561701
D60870.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
495 B
Referenced Files
None
Subscribers
None
D60870.diff
View Options
Index: usr.sbin/bhyve/virtio.c
===================================================================
--- usr.sbin/bhyve/virtio.c
+++ usr.sbin/bhyve/virtio.c
@@ -225,6 +225,11 @@
addr = atomic_load_64(&vd->addr);
iov[i].iov_len = len;
iov[i].iov_base = paddr_guest2host(ctx, addr, len);
+ if (iov[i].iov_base == NULL) {
+ WPRINTF("%s: invalid guest address 0x%lx len %u\n",
+ __func__, addr, len);
+ return;
+ }
if ((vd->flags & VRING_DESC_F_WRITE) == 0)
reqp->readable++;
else
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 20, 8:54 PM (1 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41129137
Default Alt Text
D60870.diff (495 B)
Attached To
Mode
D60870: bhyve: check paddr_guest2host return in _vq_record
Attached
Detach File
Event Timeline
Log In to Comment