[libvirt] [PATCH] util: fix mount issue by moving NULL value to "none" in syscall.

Michal Privoznik mprivozn at redhat.com
Tue Jun 26 06:14:59 UTC 2018


On 06/26/2018 05:18 AM, Julio Faracco wrote:
> After running libvirt daemon with valgrind tools, some errors are
> appearing when you try to start a domain. One example:
> 
> ==18012== Syscall param mount(type) points to unaddressable byte(s)
> ==18012==    at 0x6FEE3CA: mount (syscall-template.S:78)
> ==18012==    by 0x531344D: virFileMoveMount (virfile.c:3828)
> ==18012==    by 0x27FE7675: qemuDomainBuildNamespace (qemu_domain.c:11501)
> ==18012==    by 0x2800C44E: qemuProcessHook (qemu_process.c:2870)
> ==18012==    by 0x52F7E1D: virExec (vircommand.c:726)
> ==18012==    by 0x52F7E1D: virCommandRunAsync (vircommand.c:2477)
> ==18012==    by 0x52F4EDD: virCommandRun (vircommand.c:2309)
> ==18012==    by 0x2800A731: qemuProcessLaunch (qemu_process.c:6235)
> ==18012==    by 0x2800D6B4: qemuProcessStart (qemu_process.c:6569)
> ==18012==    by 0x28074876: qemuDomainObjStart (qemu_driver.c:7314)
> ==18012==    by 0x280522EB: qemuDomainCreateWithFlags (qemu_driver.c:7367)
> ==18012==    by 0x55484BF: virDomainCreate (libvirt-domain.c:6531)
> ==18012==    by 0x12CDBD: remoteDispatchDomainCreate (remote_daemon_dispatch_stubs.h:4350)
> ==18012==    by 0x12CDBD: remoteDispatchDomainCreateHelper (remote_daemon_dispatch_stubs.h:4326)
> ==18012==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
> 
> Some documentation recommends to use "none" when you don't have a
> filesystem type to use. Specially, for bind and move actions.
> 
> Signed-off-by: Julio Faracco <jcfaracco at gmail.com>
> ---
>  src/util/virfile.c    | 2 +-
>  src/util/virprocess.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

ACKed and pushed. Although, there are some more similar calls, in case
you want to fix it.

Michal




More information about the libvir-list mailing list