Skip to contentSkip to conversation

Block patches

GIT PULL Applied Jeff Cody 2 participants 4 messages Feb 1, 2018 – Feb 2, 2018 Block layer

lore
Share & tools
lore

Jeff Cody

author
#0 lore raw

The following changes since commit b05631954d6dfe93340d516660397e2c1a2a5dd6:

Merge remote-tracking branch 'remotes/rth/tags/pull-hppa-20180131' into staging (2018-01-31 15:50:29 +0000)

are available in the git repository at:

git://github.com/codyprime/qemu-kvm-jtc.git tags/block-pull-request

for you to fetch changes up to 45a79646ea746fa3f32083d0aa70512aae29f6b3:

iotests: Make 200 run on tmpfs (2018-01-31 22:37:00 -0500)

----------------------------------------------------------------
Block patches
----------------------------------------------------------------

Max Reitz (1):
iotests: Make 200 run on tmpfs

Murilo Opsfelder Araujo (1):
block/ssh: fix possible segmentation fault when .desc is not
null-terminated

 block/ssh.c            | 1 +
 tests/qemu-iotests/200 | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.9.5
author
#1 lore raw

[Qemu-devel] [PULL 1/2] block/ssh: fix possible segmentation fault when .desc is not null-terminated

From: Murilo Opsfelder Araujo <[email protected]>

This patch prevents a possible segmentation fault when .desc members are checked against NULL.

The ssh_runtime_opts was added by commit 8a6a80896d6af03b8ee0c17cdf37219eca2588a7 ("block/ssh: Use QemuOpts for runtime options").

This fix was inspired by
http://lists.nongnu.org/archive/html/qemu-devel/2018-01/msg00883.html.

Fixes 8a6a80896d6af03b8ee0c17cdf37219eca2588a7 ("block/ssh: Use QemuOpts for runtime options")
Cc Max Reitz <[email protected]>
Cc Eric Blake <[email protected]>
---
 block/ssh.c | 1 +
 1 file changed, 1 insertion(+)
block/ssh.c +1 -0
index b049a16..8890a0c 100644
@@ -556,6 +556,7 @@ static QemuOptsList ssh_runtime_opts = {
             .type = QEMU_OPT_STRING,
             .help = "Defines how and what to check the host key against",
         },
+        { /* end of list */ }
     },
 };
 
Signature · 1 line
2.9.5
author
#2 lore raw

[Qemu-devel] [PULL 2/2] iotests: Make 200 run on tmpfs

In reply to Jeff Cody

From: Max Reitz <[email protected]>

200 currently fails on tmpfs because it sets cache=none. However, without that (and aio=native), the test still works now and it fails before Jeff's series (on fc7dbc119e0852a70dc9fa68bb41a318e49e4cd6). So we can probably remove the aio=native safely, and replace cache=none by cache=$CACHEMODE.

Message-id: [email protected]

---
 tests/qemu-iotests/200 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/200 +1 -1
index d8787dd..ddbdedc 100755
@@ -60,7 +60,7 @@ qemu_comm_method="qmp"
 _launch_qemu -device pci-bridge,id=bridge1,chassis_nr=1,bus=pci.0 \
              -object iothread,id=iothread0 \
              -device virtio-scsi-pci,bus=bridge1,addr=0x1f,id=scsi0,iothread=iothread0 \
-             -drive file="${TEST_IMG}",media=disk,if=none,cache=none,id=drive_sysdisk,aio=native,format=$IMGFMT \
+             -drive file="${TEST_IMG}",media=disk,if=none,cache=$CACHEMODE,id=drive_sysdisk,format=$IMGFMT \
              -device scsi-hd,drive=drive_sysdisk,bus=scsi0.0,id=sysdisk,bootindex=0
 h1=$QEMU_HANDLE
 
Signature · 1 line
2.9.5
#3 lore raw
In reply to Jeff Cody
Quoted 8 lines · Jeff Cody

The following changes since commit b05631954d6dfe93340d516660397e2c1a2a5dd6:

Merge remote-tracking branch 'remotes/rth/tags/pull-hppa-20180131' into staging (2018-01-31 15:50:29 +0000)

are available in the git repository at:

git://github.com/codyprime/qemu-kvm-jtc.git tags/block-pull-request

Quoted 7 lines

for you to fetch changes up to 45a79646ea746fa3f32083d0aa70512aae29f6b3:

iotests: Make 200 run on tmpfs (2018-01-31 22:37:00 -0500)

----------------------------------------------------------------
Block patches
----------------------------------------------------------------

Applied, thanks.

-- PMM