commit | 88fae87327a2261cf8db078f6ce4e5a3e55b30b1 | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Fri Jan 26 01:36:31 2018 +0200 |
committer | David S. Miller <davem@davemloft.net> | Mon Jan 29 12:02:53 2018 -0500 |
tree | 06987686791f41db7e129f796f88839bda3bbeff | |
parent | a259df36d1fbf25f0e4f649fdb84e4527e5640ed [diff] |
tap: fix use-after-free Lockless access to __ptr_ring_full is only legal if ring is never resized, otherwise it might cause use-after free errors. Simply drop the lockless test, we'll drop the packet a bit later when produce fails. Fixes: 362899b8 ("macvtap: switch to use skb array") Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>