misc: Remove variable-length arrays on the stack
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest23 patches 39 repliesIn review
Patches in v1 No applies recorded yet
Reviews trailers per patch
15 of 23 patches have a Reviewed-by or Acked-by.
| Patch | Gerd Hoffmann | Samuel Thibault | Marc-André Lureau | David Gibson | Jason Wang | Klaus Jensen | Greg Kurz | Daniel P. Berrangé | Richard Henderson |
|---|---|---|---|---|---|---|---|---|---|
| 1/23 | |||||||||
| 2/23 | R-b | R-b | |||||||
| 3/23 | R-b | R-b | |||||||
| 4/23 | R-b | R-b | |||||||
| 5/23 | R-b | ||||||||
| 6/23 | |||||||||
| 7/23 | R-b | ||||||||
| 8/23 | |||||||||
| 9/23 | A-b | R-b | |||||||
| 10/23 | A-b | ||||||||
| 11/23 | A-b | R-b | |||||||
| 12/23 | R-b | ||||||||
| 13/23 | |||||||||
| 14/23 | R-b | ||||||||
| 15/23 | A-b | A-b | |||||||
| 16/23 | R-b | ||||||||
| 17/23 | |||||||||
| 18/23 | |||||||||
| 19/23 | |||||||||
| 20/23 | |||||||||
| 21/23 | A-b | ||||||||
| 22/23 | R-b | ||||||||
| 23/23 | Inspired-by | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 9 reviewers.
Cover letter [PATCH 00/23] misc: Remove variable-length arrays on the stack
Hi,
This series is inspired by Gerd Hoffmann and CVE-2021-3527. It removes all uses of variable-length arrays in the repository, then enable the '-Wvla' warning to avoid new code using vla to be merged.
Mostly trivial patches using GLib autofree.
Please review,
Phil.
(based on usb-20210505-pull-request tag)
Based-on: [email protected]
Philippe Mathieu-Daudé (23):
block/vpc: Avoid dynamic stack allocation
chardev/baum: Replace magic values by X_MAX / Y_MAX definitions chardev/baum: Use definitions to avoid dynamic stack allocation chardev/baum: Avoid dynamic stack allocation io/channel-websock: Replace strlen(const_str) by sizeof(const_str) - 1 hw/block/dataplane/virtio-blk: Avoid dynamic stack allocation hw/block/nvme: Use definition to avoid dynamic stack allocation hw/block/nvme: Avoid dynamic stack allocation hw/net/e1000e_core: Use definition to avoid dynamic stack allocation hw/ppc/pnv: Avoid dynamic stack allocation
hw/intc/xics: Avoid dynamic stack allocation hw/i386/multiboot: Avoid dynamic stack allocation hw/usb/hcd-xhci: Avoid dynamic stack allocation hw/usb/hcd-ohci: Use definition to avoid dynamic stack allocation
net: Avoid dynamic stack allocation
ui/curses: Avoid dynamic stack allocation ui/spice-display: Avoid dynamic stack allocation ui/vnc-enc-hextile: Use definitions to avoid dynamic stack allocation ui/vnc-enc-tight: Avoid dynamic stack allocation
util/iov: Avoid dynamic stack allocation
target/ppc/kvm: Avoid dynamic stack allocation tests/unit/test-vmstate: Avoid dynamic stack allocation
configure: Prohibit variable-length allocations by using -Wvla CPPFLAG
configure | 2 +- ui/vnc-enc-hextile-template.h | 3 ++- block/vpc.c | 4 ++-- chardev/baum.c | 22 +++++++++++++--------- hw/block/dataplane/virtio-blk.c | 7 ++++--- hw/block/nvme.c | 17 +++++++++-------- hw/i386/multiboot.c | 5 ++--- hw/intc/xics.c | 2 +- hw/net/e1000e_core.c | 7 ++++--- hw/net/fsl_etsec/rings.c | 9 ++++----- hw/net/rocker/rocker_of_dpa.c | 2 +- hw/ppc/pnv.c | 4 ++-- hw/ppc/spapr.c | 8 ++++---- hw/ppc/spapr_pci_nvlink2.c | 2 +- hw/usb/hcd-ohci.c | 7 ++++--- hw/usb/hcd-xhci.c | 2 +- io/channel-websock.c | 2 +- net/dump.c | 2 +- net/tap.c | 2 +- target/ppc/kvm.c | 2 +- tests/unit/test-vmstate.c | 7 +++---- ui/curses.c | 2 +- ui/spice-display.c | 2 +- ui/vnc-enc-tight.c | 11 ++++++----- util/iov.c | 2 +- 25 files changed, 71 insertions(+), 64 deletions(-)
Signature · 1 line
2.26.3