ptr_ring fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest12 patches 19 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | ptr_ring: keep consumer_head valid at all timesinclude/ | +16 | 1 reply | |
| 2/12 | ptr_ring: clean up documentationinclude/ | +18 | 0 replies | |
| 3/12 | ptr_ring: READ/WRITE_ONCE for __ptr_ring_emptyinclude/ | +8 | 4 replies | |
| 4/12 | tap: fix use-after-freedrivers/ | +0 | 0 replies | |
| 5/12 | ptr_ring: disallow lockless __ptr_ring_fullinclude/ | +4 | 5 replies | |
| 6/12 | Revert "net: ptr_ring: otherwise safe empty checks can overrun array bounds"include/ | +1 | 1 reply | |
| 7/12 | skb_array: use __ptr_ring_emptyinclude/ | +1 | 0 replies | |
| 8/12 | ptr_ring: prevent queue load/store tearinginclude/ | +2 | 2 replies | |
| 9/12 | tools/virtio: switch to __ptr_ring_emptytools/ | +1 | 0 replies | |
| 9/12 | tools/virtio: switch to __ptr_ring_emptytools/ | +1 | 0 replies | |
| 10/12 | tools/virtio: more stubs to fix tools buildtools/ tools/ | +2 | 0 replies | |
| 11/12 | tools/virtio: copy READ/WRITE_ONCEtools/ | +57 | 0 replies | |
| 11/12 | tools/virtio: copy READ/WRITE_ONCEtools/ | +57 | 0 replies | |
| 12/12 | tools/virtio: fix smp_mb on x86tools/ | +1 | 3 replies | |
| 12/12 | tools/virtio: fix smp_mb on x86tools/ | +1 | 0 replies |
Reviews trailers per patch
2 of 15 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | John Fastabend | Jason Wang |
|---|---|---|
| Series | T-b A-b | |
| 1/12 | A-b | |
| 2/12 | ||
| 3/12 | ||
| 4/12 | ||
| 5/12 | ||
| 6/12 | A-b | |
| 7/12 | ||
| 8/12 | ||
| 9/12 | ||
| 9/12 | ||
| 10/12 | ||
| 11/12 | ||
| 11/12 | ||
| 12/12 | ||
| 12/12 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next 00/12] ptr_ring fixes
This fixes a bunch of issues around ptr_ring use in net core. One of these: "tap: fix use-after-free" is also needed on net, but can't be backported cleanly.
I will post a net patch separately.
Lightly tested - Jason, could you pls confirm this addresses the security issue you saw with ptr_ring? Testing reports would be appreciated too.
Michael S. Tsirkin (12):
ptr_ring: keep consumer_head valid at all times
ptr_ring: clean up documentation
ptr_ring: READ/WRITE_ONCE for __ptr_ring_empty
tap: fix use-after-free
ptr_ring: disallow lockless __ptr_ring_full
Revert "net: ptr_ring: otherwise safe empty checks can overrun array
bounds"
skb_array: use __ptr_ring_empty
ptr_ring: prevent queue load/store tearing
tools/virtio: switch to __ptr_ring_empty
tools/virtio: more stubs to fix tools build
tools/virtio: copy READ/WRITE_ONCE
tools/virtio: fix smp_mb on x86
drivers/net/tap.c | 3 -- include/linux/ptr_ring.h | 86 ++++++++++++++++++++++------------------ include/linux/skb_array.h | 2 +- tools/virtio/linux/kernel.h | 2 +- tools/virtio/linux/thread_info.h | 1 + tools/virtio/ringtest/main.h | 59 ++++++++++++++++++++++++++- tools/virtio/ringtest/ptr_ring.c | 2 +- 7 files changed, 110 insertions(+), 45 deletions(-) create mode 100644 tools/virtio/linux/thread_info.h
Signature · 1 line
MST