]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0709fd9ae96d83cf9394cb14d149b95ad4d6ef35
tree6632999881c596c3fa989da3e062ef1fdb07dfcf
parent676d430158699cbced130bc4802a5f19d3051e47
ptr_ring: disallow lockless __ptr_ring_full

Similar to 7163f0973e2f ("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