diff options
| author | 2018-01-26 01:36:31 +0200 | |
|---|---|---|
| committer | 2018-01-29 12:02:53 -0500 | |
| commit | 88fae87327a2261cf8db078f6ce4e5a3e55b30b1 (patch) | |
| tree | 06987686791f41db7e129f796f88839bda3bbeff /kernel/sysctl_binary.c | |
| parent | ptr_ring: READ/WRITE_ONCE for __ptr_ring_empty (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>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
