Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vhost: check header for legacy dequeue offload
[ upstream commit 706ba48 ] When parsing the virtio net header and packet header for dequeue offload, we need to perform sanity check on the packet header to ensure: - No out-of-boundary memory access. - The packet header and virtio_net header are valid and aligned. Fixes: d0cf913 ("vhost: add Tx offload capabilities") Signed-off-by: Xiao Wang <xiao.w.wang@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
- Loading branch information
1 parent
db87874
commit 2df9080
Showing
1 changed file
with
89 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters