[Bug 1699161] Re: lshw crashes with SEGV in privileged containers
Eric Desrochers
eric.desrochers at canonical.com
Wed Oct 11 17:23:21 UTC 2017
** Changed in: lshw (Ubuntu Artful)
Assignee: Rafael David Tinoco (inaddy) => Eric Desrochers (slashd)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lshw in Ubuntu.
https://bugs.launchpad.net/bugs/1699161
Title:
lshw crashes with SEGV in privileged containers
Status in lshw package in Ubuntu:
Confirmed
Status in lshw source package in Xenial:
Confirmed
Status in lshw source package in Zesty:
Confirmed
Status in lshw source package in Artful:
Confirmed
Bug description:
When running lshw in a Xenial container, I'm getting a segmentation
fault. I'll attach the apport crash dump.
```
stgraber at castiana:~$ lxc launch ubuntu:16.04 priv -c security.privileged=true
Creating priv
Starting priv
stgraber at castiana:~$ lxc exec priv bash
root at priv:~# lshw
Segmentation fault
root at priv:~#
```
[strace of lshw]
open("/usr/share/hwdata/usb.ids", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/usb.ids", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/usb.ids", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/usb.ids", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/lshw-common/usb.ids", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/usb.ids", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/sys/kernel/debug/usb/devices", O_RDONLY) = -1 EACCES (Permission denied)
open("/proc/bus/usb/devices", O_RDONLY) = -1 ENOENT (No such file or directory)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++
Segmentation fault
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lshw/+bug/1699161/+subscriptions
More information about the foundations-bugs
mailing list