diff options
author | Jason Wang <jasowang@redhat.com> | 2018-08-08 05:43:04 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-08 18:44:39 +0200 |
commit | b13f9c6364373a1b9f71e9846dc4fb199296f926 (patch) | |
tree | 904d5ecac4a32d9ed7408547200fcbf3a7fe1e30 /sound | |
parent | llc: use refcount_inc_not_zero() for llc_sap_find() (diff) | |
download | linux-b13f9c6364373a1b9f71e9846dc4fb199296f926.tar.xz linux-b13f9c6364373a1b9f71e9846dc4fb199296f926.zip |
vhost: reset metadata cache when initializing new IOTLB
We need to reset metadata cache during new IOTLB initialization,
otherwise the stale pointers to previous IOTLB may be still accessed
which will lead a use after free.
Reported-by: syzbot+c51e6736a1bf614b3272@syzkaller.appspotmail.com
Fixes: f88949138058 ("vhost: introduce O(1) vq metadata cache")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions