ptr_ring: disallow lockless __ptr_ring_full
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 25 Jan 2018 23:36:32 +0000 (01:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jan 2018 17:02:54 +0000 (12:02 -0500)
commit84328342a70a44379dd73011a44c5f5e00481a42
tree6632999881c596c3fa989da3e062ef1fdb07dfcf
parent88fae87327a2261cf8db078f6ce4e5a3e55b30b1
ptr_ring: disallow lockless __ptr_ring_full

Similar to bcecb4bbf88a ("net: ptr_ring: otherwise safe empty checks can
overrun array bounds") a lockless use of __ptr_ring_full might
cause an out of bounds access.

We can fix this, but it's easier to just disallow lockless
__ptr_ring_full for now.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ptr_ring.h