diff options
| author | 2026-09-13 21:00:27 +0800 | |
|---|---|---|
| committer | 2026-11-02 09:07:00 -0500 | |
| commit | b179f21d2d8a60ede29a00472bffdefb0284ef39 (patch) | |
| tree | 9a2b6c7f4dfdd619910d5e8c5efb95b626e45c60 /scripts/Makefile.thinlto | |
| parent | vdpa: fix double free of the reply skb in vdpa_nl_cmd_dev_config_get_doit() (diff) | |
vhost: reject invalid IOTLB update permissions
vhost_chr_write_iter() validates the type and size of an IOTLB update, but
does not validate its permission field. An invalid permission can therefore
reach perm_to_iommu_flags() and trigger its warning in vhost_vdpa_map().
Reject IOTLB UPDATE messages whose permission field is empty or contains
bits outside VHOST_ACCESS_RW before dispatching them to a backend.
Fixes: 4c8cf31885f6 ("vhost: introduce vDPA-based backend")
Signed-off-by: Linfeng Sun <linfeng.sun.dev@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260913-fix-vhost_chr_write_iter-v1-1-76bf1f436cfe@gmail.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
