Mask viornd descriptor value to prevent out of bound reads.
authordv <dv@openbsd.org>
Sun, 29 Aug 2021 18:01:32 +0000 (18:01 +0000)
committerdv <dv@openbsd.org>
Sun, 29 Aug 2021 18:01:32 +0000 (18:01 +0000)
commit321f3ee39b17159137d6283e08a0d7d0b0133eb8
tree6235b3f2c944fd6b7e36eb94e5e68172925dbf6f
parent7a6716886b72164aa156519b28056914ba12d11a
Mask viornd descriptor value to prevent out of bound reads.

viornd did not mask the descriptor value in the avialable ring
allowing guest values to read past the end of the descriptor table.

While here, change fatal to fatalx because errno is not set.

Reported by Ilja van Sprundel

ok mlarkin@
usr.sbin/vmd/virtio.c