[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 for-4.2 0/4] Better NBD string length handling
From: |
Eric Blake |
Subject: |
[PATCH v3 for-4.2 0/4] Better NBD string length handling |
Date: |
Wed, 13 Nov 2019 20:46:31 -0600 |
This series was originally posted before soft freeze, but then KVM
Forum interfered. I think that patches 1-3 are bug fixes still
appropriate for -rc2 if they get good reviews, but patch 4 is a new
feature and now only appropriate for 5.0.
Since v2:
- Patch 1, 2: new [Vladimir]
- Patch 3: improve error messages and fix a memleak [Vladimir]
- Patch 3: bump name length from 256 to 4k (R-b dropped)
- Patch 4: add R-b, but tweak to defer to 5.0
Eric Blake (4):
nbd/server: Prefer heap over stack for parsing client names
bitmap: Enforce maximum bitmap name length
nbd: Don't send oversize strings
nbd: Allow description when creating NBD blockdev
qapi/block-core.json | 2 +-
qapi/block.json | 9 +++++---
include/block/dirty-bitmap.h | 2 ++
include/block/nbd.h | 12 +++++-----
block/dirty-bitmap.c | 12 +++++++---
block/nbd.c | 10 +++++++++
block/qcow2-bitmap.c | 2 ++
blockdev-nbd.c | 14 +++++++++++-
monitor/hmp-cmds.c | 4 ++--
nbd/client.c | 18 ++++++++++++---
nbd/server.c | 43 ++++++++++++++++++++++++------------
qemu-nbd.c | 9 ++++++++
tests/qemu-iotests/223 | 2 +-
tests/qemu-iotests/223.out | 1 +
14 files changed, 106 insertions(+), 34 deletions(-)
--
2.21.0