Re: [Qemu-block] [Qemu-devel] [PATCH] include: Add a comment to explain the origin of sizes' lookup table

2018-11-04 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20181103015821.30074-1-lbl...@janustech.com Subject: [Qemu-devel] [PATCH] include: Add a comment to explain the origin of sizes' lookup table === TEST SCRIPT BEGIN ===

Re: [Qemu-block] [Qemu-devel] [PATCH v6 00/10] hw/m68k: add Apple Machintosh Quadra 800 machine

2018-11-04 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20181102152257.20637-1-mark.cave-ayl...@ilande.co.uk Subject: [Qemu-devel] [PATCH v6 00/10] hw/m68k: add Apple Machintosh Quadra 800 machine === TEST SCRIPT BEGIN ===

Re: [Qemu-block] [Qemu-devel] [PATCH v6 00/10] hw/m68k: add Apple Machintosh Quadra 800 machine

2018-11-04 Thread Mark Cave-Ayland
On 04/11/2018 06:53, no-re...@patchew.org wrote: > Hi, > > This series seems to have some coding style problems. See output below for > more information: > > Type: series > Message-id: 20181102152257.20637-1-mark.cave-ayl...@ilande.co.uk > Subject: [Qemu-devel] [PATCH v6 00/10] hw/m68k: add

Re: [Qemu-block] [Qemu-devel] [PATCH] vdi: Use a literal number of bytes for DEFAULT_CLUSTER_SIZE

2018-11-04 Thread no-reply
Hi, This series failed docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. Type: series Message-id: 20181103014831.29889-1-lbl...@janustech.com Subject: [Qemu-devel] [PATCH] vdi: Use a

Re: [Qemu-block] [Qemu-devel] [PATCH] vdi: Use a literal number of bytes for DEFAULT_CLUSTER_SIZE

2018-11-04 Thread Leonid Bloch
> This changes the data type, so a fix is needed for a format string in > line 434. Yes, I saw, thanks! Will do. > > Regards > Stefan >

[Qemu-block] [PATCH v2 0/1] include: Add a comment to explain the origin of

2018-11-04 Thread Leonid Bloch
Please see the commit message for the rationale. Difference from v1: * Tabs removed from the code indentation of the sample code in the comment, in order to pass checkpatch. Leonid Bloch (1): include: Add a comment to explain the origin of sizes' lookup table include/qemu/units.h | 18

[Qemu-block] [PATCH v2 1/1] include: Add a comment to explain the origin of sizes' lookup table

2018-11-04 Thread Leonid Bloch
The lookup table for power-of-two sizes was added in commit 540b8492618eb for the purpose of having convenient shortcuts for these sizes in cases when the literal number has to be present at compile time, and expressions as '(1 * KiB)' can not be used. One such case is the stringification of

[Qemu-block] [PATCH v2 0/1] vdi: Use a literal number of bytes for

2018-11-04 Thread Leonid Bloch
Please see the commit message for the rationale. Difference from v1: * Format string is fixed. Leonid Bloch (1): vdi: Use a literal number of bytes for DEFAULT_CLUSTER_SIZE block/vdi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1

[Qemu-block] [PATCH v2 1/1] vdi: Use a literal number of bytes for DEFAULT_CLUSTER_SIZE

2018-11-04 Thread Leonid Bloch
If an expression is used to define DEFAULT_CLUSTER_SIZE, when compiled, it will be embedded as a literal expression in the binary (as the default value) because it is stringified to mark the size of the default value. Now this is fixed by using a defined number to define this value.

Re: [Qemu-block] [PATCH v2 1/1] vdi: Use a literal number of bytes for DEFAULT_CLUSTER_SIZE

2018-11-04 Thread Stefan Weil
On 04.11.18 19:09, Leonid Bloch wrote: > If an expression is used to define DEFAULT_CLUSTER_SIZE, when compiled, > it will be embedded as a literal expression in the binary (as the > default value) because it is stringified to mark the size of the default > value. Now this is fixed by using a

Re: [Qemu-block] [PATCH] nvme: fix oob access issue(CVE-2018-16847)

2018-11-04 Thread Li Qiang
Kevin Wolf 于2018年11月2日周五 下午11:42写道: > Am 02.11.2018 um 16:22 hat Li Qiang geschrieben: > > Hello Kevin, > > > > Kevin Wolf 于2018年11月2日周五 下午6:54写道: > > > > > Am 02.11.2018 um 02:22 hat Li Qiang geschrieben: > > > > Currently, the nvme_cmb_ops mr doesn't check the addr and size. > > > > This can

Re: [Qemu-block] [PATCH] nvme: fix oob access issue(CVE-2018-16847)

2018-11-04 Thread Li Qiang
Keith Busch 于2018年11月2日周五 下午11:42写道: > On Thu, Nov 01, 2018 at 06:22:43PM -0700, Li Qiang wrote: > > Currently, the nvme_cmb_ops mr doesn't check the addr and size. > > This can lead an oob access issue. This is triggerable in the guest. > > Add check to avoid this issue. > > > > Fixes

[Qemu-block] [PATCH] blockdev: handle error on block latency histogram set error

2018-11-04 Thread zhenwei pi
Function block_latency_histogram_set may return error, but qapi ignore this. This can be reproduced easily by qmp command: virsh qemu-monitor-command INSTANCE '{"execute":"x-block-latency-histogram-set", "arguments":{"device":"drive-virtio-disk1","boundaries":[10,200,40]}}' In fact this command

Re: [Qemu-block] [Qemu-devel] [PATCH] tests: Disable test-bdrv-drain

2018-11-04 Thread Paolo Bonzini
On 02/11/2018 14:33, Peter Maydell wrote: > On 9 October 2018 at 12:16, Paolo Bonzini wrote: >> On 08/10/2018 18:40, Kevin Wolf wrote: I'm pretty confident this analysis of the problem is correct: unfortunately I have no idea what the right way to fix it is... >>> Yes, I agree with

Re: [Qemu-block] [PATCH] block: Make more block drivers compile-time configurable

2018-11-04 Thread Max Reitz
On 19.10.18 13:34, Markus Armbruster wrote: > From: Jeff Cody > > This adds configure options to control the following block drivers: > > * Bochs > * Cloop > * Dmg > * Qcow (V1) > * Vdi > * Vvfat > * qed > * parallels > * sheepdog > > Each of these defaults to being enabled. > >

Re: [Qemu-block] [PATCH v4 3/8] block: Null pointer dereference in blk_root_get_parent_desc()

2018-11-04 Thread Max Reitz
On 19.10.18 22:39, Liam Merwick wrote: > The dev_id returned by the call to blk_get_attached_dev_id() in > blk_root_get_parent_desc() can be NULL (an internal call to > object_get_canonical_path may have returned NULL). > > Instead of just checking this case before before dereferencing, > adjust

Re: [Qemu-block] [PATCH v4 4/8] qemu-img: assert block_job_get() does not return NULL in img_commit()

2018-11-04 Thread Max Reitz
On 19.10.18 22:39, Liam Merwick wrote: > Although the function block_job_get() can return NULL, it would be a > serious bug if it did so (because the job yields before executing anything > (if it started successfully); but otherwise, commit_active_start() would > have returned an error). However,

Re: [Qemu-block] [PATCH v4 6/8] block: dump_qlist() may dereference a Null pointer

2018-11-04 Thread Max Reitz
On 19.10.18 22:39, Liam Merwick wrote: > A NULL 'list' passed into function dump_qlist() isn't correctly > validated and can be passed to qlist_first() where it is dereferenced. > > Given that dump_qlist() is static, and callers already do the right > thing, just add an assert to catch future

Re: [Qemu-block] [PATCH v4 5/8] block: Fix potential Null pointer dereferences in vvfat.c

2018-11-04 Thread Max Reitz
On 19.10.18 22:39, Liam Merwick wrote: > The calls to find_mapping_for_cluster() may return NULL but it > isn't always checked for before dereferencing the value returned. > Additionally, add some asserts to cover cases where NULL can't > be returned but which might not be obvious at first glance.

Re: [Qemu-block] [PATCH v2 0/5] Various option help readability improvement suggestions

2018-11-04 Thread Max Reitz
Ping. I don't quite want the help output to change in 3.1 only to change it to something else in 3.2. (And at some point into freeze we have to consider just merging one of the many simple 082 reference output "fixes", which I really don't want, because I still consider the test "broken for a

Re: [Qemu-block] [Qemu-devel] [PATCH] vdi: Use a literal number of bytes for DEFAULT_CLUSTER_SIZE

2018-11-04 Thread Stefan Weil
On 03.11.18 02:48, Leonid Bloch wrote: > If an expression is used to define DEFAULT_CLUSTER_SIZE, when compiled, > it will be embedded as a literal expression in the binary (as the > default value) because it is stringified to mark the size of the default > value. Now this is fixed by using a