]> 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)
commit000a2aefae5455e01d8911a9dc74e66cecdff764
tree6632999881c596c3fa989da3e062ef1fdb07dfcf
parent4126da451bd917166adb449fee197c3e0a938b31
ptr_ring: disallow lockless __ptr_ring_full

Similar to 0d23461447e1 ("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