diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2018-01-26 01:36:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-29 12:02:53 -0500 |
commit | 88fae87327a2261cf8db078f6ce4e5a3e55b30b1 (patch) | |
tree | 06987686791f41db7e129f796f88839bda3bbeff /include/linux/ptr_ring.h | |
parent | ptr_ring: READ/WRITE_ONCE for __ptr_ring_empty (diff) | |
download | linux-dev-88fae87327a2261cf8db078f6ce4e5a3e55b30b1.tar.xz linux-dev-88fae87327a2261cf8db078f6ce4e5a3e55b30b1.zip |
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>
Diffstat (limited to 'include/linux/ptr_ring.h')
0 files changed, 0 insertions, 0 deletions