commit | ca2c5b33a285723f517fa296b76f7fd36c383dad | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Mon Aug 21 22:33:33 2017 +0300 |
committer | Michael S. Tsirkin <mst@redhat.com> | Tue Nov 14 23:57:39 2017 +0200 |
tree | a7b6258591856491ab4abd912c93b02958e81670 | |
parent | 816e85edff0f31bc8e4614eaaf9a0364406d7a8f [diff] |
vhost: fix end of range for access_ok During access_ok checks, addr increases as we iterate over the data structure, thus addr + len - 1 will point beyond the end of region we are translating. Harmless since we then verify that the region covers addr, but let's not waste cpu cycles. Reported-by: Koichiro Den <den@klaipeden.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Koichiro Den <den@klaipeden.com>