[sheepdog] [PATCH] sheepdog: fix NULL dereference in sd_create

Stefan Hajnoczi stefanha at redhat.com
Thu Jun 19 11:43:37 CEST 2014


On Tue, Jun 17, 2014 at 01:45:35PM +0800, Liu Yuan wrote:
> Following command
> 
> qemu-img create -f qcow2 sheepdog:test 20g
> 
> will cause core dump because aio_context is NULL in sd_create. We should
> initialize it by qemu_get_aio_context() to avoid NULL dereference.
> 
> Cc: qemu-devel at nongnu.org
> Cc: Kevin Wolf <kwolf at redhat.com>
> Cc: Stefan Hajnoczi <stefanha at redhat.com>
> Signed-off-by: Liu Yuan <namei.unix at gmail.com>
> ---
>  block/sheepdog.c | 1 +
>  1 file changed, 1 insertion(+)

Sorry about this, it's my fault.

Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20140619/32d1c879/attachment-0002.sig>


More information about the sheepdog mailing list