virtio-console: spec compliance fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 21 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | virtio_console: don't tie bufs to a vqdrivers/ | +7 | 6 replies | |
| 2/6 | virtio: add ability to iterate over vqsinclude/ | +3 | 0 replies | |
| 2/6 | virtio: add ability to iterate over vqsinclude/ | +3 | 0 replies | |
| 3/6 | virtio_console: free buffers after resetdrivers/ | +24 | 2 replies | |
| 4/6 | virtio_console: drop custom control queue cleanupdrivers/ | +0 | 0 replies | |
| 4/6 | virtio_console: drop custom control queue cleanupdrivers/ | +0 | 0 replies | |
| 5/6 | virtio_console: move removal codedrivers/ | +36 | 0 replies | |
| 5/6 | virtio_console: move removal codedrivers/ | +36 | 0 replies | |
| 6/6 | virtio_console: reset on out of memorydrivers/ | +10 | 0 replies | |
| 6/6 | virtio_console: reset on out of memorydrivers/ | +10 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] virtio-console: spec compliance fixes
Turns out virtio console tries to take a buffer out of an active vq. Works by sheer luck, and is explicitly forbidden by spec. And while going over it I saw that error handling is also broken - failure is easy to trigger if I force allocations to fail.
Lightly tested.
Michael S. Tsirkin (6):
virtio_console: don't tie bufs to a vq
virtio: add ability to iterate over vqs
virtio_console: free buffers after reset
virtio_console: drop custom control queue cleanup
virtio_console: move removal code
virtio_console: reset on out of memory
drivers/char/virtio_console.c | 155 ++++++++++++++++++++---------------------- include/linux/virtio.h | 3 + 2 files changed, 75 insertions(+), 83 deletions(-)
Signature · 1 line
MST