Bug#769600: libvirt-daemon - null pointer deref in libvirt_lxc

2014-12-06 Thread Bastian Blank
On Sun, Nov 16, 2014 at 10:35:19AM +0100, Guido Günther wrote:
 Thanks for the patched. I'm downgrading the severity since it doesn't
 crash the daemon but only breaks a specific use case.

I intent to NMU this as you uploaded several new revisions without
fixing this.

Bastian

-- 
No one may kill a man.  Not for any purpose.  It cannot be condoned.
-- Kirk, Spock's Brain, stardate 5431.6


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#769600: libvirt-daemon - null pointer deref in libvirt_lxc

2014-12-06 Thread Guido Günther
On Sat, Dec 06, 2014 at 08:09:47PM +0100, Bastian Blank wrote:
 On Sun, Nov 16, 2014 at 10:35:19AM +0100, Guido Günther wrote:
  Thanks for the patched. I'm downgrading the severity since it doesn't
  crash the daemon but only breaks a specific use case.
 
 I intent to NMU this as you uploaded several new revisions without
 fixing this.

NACK. I've not yet found time to review this.
 -- Guido


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#769600: libvirt-daemon - null pointer deref in libvirt_lxc

2014-11-16 Thread Guido Günther
severity 769600 important
thanks

Hi,
On Fri, Nov 14, 2014 at 10:58:54PM +0100, Bastian Blank wrote:
 Package: libvirt-daemon
 Version: 1.2.9-4
 Severity: serious
 
 libvirt_lxc dies with null pointer access almost immediately.

Thanks for the patched. I'm downgrading the severity since it doesn't
crash the daemon but only breaks a specific use case.
Cheers,
 -- Guido


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#769600: libvirt-daemon - null pointer deref in libvirt_lxc

2014-11-14 Thread Bastian Blank
Package: libvirt-daemon
Version: 1.2.9-4
Severity: serious

libvirt_lxc dies with null pointer access almost immediately.

Kernel log shows:
| libvirt_lxc[5030]: segfault at 0 ip 7fe434292fb6 sp 7fe43851ddf8 
error 4 in libc-2.19.so[7fe43416e000+19f000]

strace shows:
| access(/sbin/init, F_OK)  = 0
| --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
| +++ killed by SIGSEGV (core dumped) +++

The core file shows:
| #0  0x7fabd5168fb6 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
| #1  0x7fabd87cabd9 in lxcContainerGetNetDef (vmDef=optimized out, 
vmDef=optimized out, devName=optimized out)
| at ../../../src/lxc/lxc_container.c:476
| #2  lxcContainerRenameAndEnableInterfaces (veths=optimized out, 
nveths=optimized out, vmDef=optimized out)
| at ../../../src/lxc/lxc_container.c:506
| #3  lxcContainerChild (data=0x7fabda1212b0) at 
../../../src/lxc/lxc_container.c:2127
| #4  0x7fabd5129ccd in clone () from /lib/x86_64-linux-gnu/libc.so.6

| (gdb) f 1
| #1  0x7fabd87cabd9 in lxcContainerGetNetDef (vmDef=optimized out, 
vmDef=optimized out, devName=optimized out)
| at ../../../src/lxc/lxc_container.c:476
| 476 ../../../src/lxc/lxc_container.c: No such file or directory.
| (gdb) info locals
| i = 0
| netDef = 0x7fabda13bde0
| (gdb) p netDef
| $1 = (virDomainNetDefPtr) 0x7fabda13bde0
| (gdb) p *netDef.ifname_guest_actual
| Cannot access memory at address 0x0

Relevant vm config:

| domain type='lxc'
|   nameexample/name
|   uuide315c3e7-e257-4635-a9a0-75e4cd909fa0/uuid
|   memory unit='KiB'50/memory
|   currentMemory unit='KiB'50/currentMemory
|   vcpu placement='static'1/vcpu
|   resource
| partition/machine/partition
|   /resource
|   os
| type arch='x86_64'exe/type
| init/sbin/init/init
|   /os
|   clock offset='utc'/
|   on_poweroffdestroy/on_poweroff
|   on_rebootrestart/on_reboot
|   on_crashdestroy/on_crash
|   devices
| emulator/usr/lib/libvirt/libvirt_lxc/emulator
| filesystem type='mount' accessmode='passthrough'
|   source dir='/vm'/
|   target dir='/'/
| /filesystem
| interface type='direct'
|   mac address='52:54:00:f3:21:f9'/
|   source dev='eth0' mode='private'/
| /interface
| console type='pty'
|   target type='lxc' port='0'/
| /console
|   /devices
| /domain

Bastian

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org