Bug 1311285 - lsusb crashes when run on ppc64 system with no usb support
Summary: lsusb crashes when run on ppc64 system with no usb support
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: usbutils
Version: 6.8
Hardware: ppc64
OS: Linux
medium
medium
Target Milestone: rc
: 6.8
Assignee: Lukáš Nykrýn
QA Contact: Mike Gahagan
URL:
Whiteboard:
: 1317025 (view as bug list)
Depends On:
Blocks: 1200114
TreeView+ depends on / blocked
 
Reported: 2016-02-23 20:14 UTC by Mike Gahagan
Modified: 2016-05-10 20:52 UTC (History)
4 users (show)

Fixed In Version: usbutils-003-6.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-10 20:52:55 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
IBM Linux Technology Center 138074 0 None None None 2016-03-14 17:10:07 UTC
Red Hat Product Errata RHBA-2016:0805 0 normal SHIPPED_LIVE usbutils bug fix and enhancement update 2016-05-10 22:38:27 UTC

Description Mike Gahagan 2016-02-23 20:14:23 UTC
Description of problem:
running /usr/sbin/lsusb on a ppc64 system with no USB results in a seg fault:

0 root@auto-ppcp-003 ~]# /usr/sbin/lsusb
*** glibc detected *** /usr/sbin/lsusb: double free or corruption (out): 0x00000fffd78313e0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x80190bfdb4]
/lib64/libc.so.6[0x80190c2e0c]
/usr/lib64/libusb-1.0.so.0(libusb_free_device_list-0x1dcdc)[0x801971662c]
/usr/sbin/lsusb[0x1000b05c]
/usr/sbin/lsusb[0x1000b5a8]
/lib64/libc.so.6[0x801905c0a8]
/lib64/libc.so.6(__libc_start_main-0x1852e8)[0x801905c2a0]
======= Memory map: ========
10000000-10020000 r-xp 00000000 fd:00 951226                             /usr/bin/lsusb
10020000-10030000 rw-p 00010000 fd:00 951226                             /usr/bin/lsusb
10030000-10040000 rw-p 00010000 fd:00 951226                             /usr/bin/lsusb
19710000-19830000 rw-p 00000000 00:00 0                                  [heap]
8018fc0000-8018ff0000 r-xp 00000000 fd:00 2494345                        /lib64/ld-2.12.so
8018ff0000-8019000000 r--p 00020000 fd:00 2494345                        /lib64/ld-2.12.so
8019000000-8019010000 rw-p 00030000 fd:00 2494345                        /lib64/ld-2.12.so
8019010000-80191d0000 r-xp 00000000 fd:00 2494346                        /lib64/libc-2.12.so
80191d0000-80191e0000 r--p 001b0000 fd:00 2494346                        /lib64/libc-2.12.so
80191e0000-8019200000 rw-p 001c0000 fd:00 2494346                        /lib64/libc-2.12.so
8019300000-8019320000 r-xp 00000000 fd:00 2494353                        /lib64/libpthread-2.12.so
8019320000-8019330000 r--p 00010000 fd:00 2494353                        /lib64/libpthread-2.12.so
8019330000-8019340000 rw-p 00020000 fd:00 2494353                        /lib64/libpthread-2.12.so
8019370000-8019380000 r-xp 00000000 fd:00 2494396                        /lib64/librt-2.12.so
8019380000-8019390000 r--p 00000000 fd:00 2494396                        /lib64/librt-2.12.so
8019390000-80193a0000 rw-p 00010000 fd:00 2494396                        /lib64/librt-2.12.so
8019710000-8019730000 r-xp 00000000 fd:00 953040                         /usr/lib64/libusb-1.0.so.0.1.0
8019730000-8019740000 rw-p 00010000 fd:00 953040                         /usr/lib64/libusb-1.0.so.0.1.0
fff8cab0000-fff8cac0000 rw-p 00000000 00:00 0 
fff8cac0000-fff8cae0000 r-xp 00000000 00:00 0                            [vdso]
fffd76f0000-fffd7840000 rw-p 00000000 00:00 0                            [stack]
Aborted (core dumped)

Version-Release number of selected component (if applicable):
usbutils-003-5.el6.ppc64

How reproducible:
always

Steps to Reproduce:
1.run lsusb on ppc64 system with no USB present. 
2.
3.

Actual results:
seg fault

Expected results:
error or some other message indicating no USB bus could be found

Additional info:
usb-devices script from the same package reports no output and exits with $? to 1
lsusb.py produces no output and exits with $? set to 0

Comment 1 Mike Gahagan 2016-03-14 17:08:15 UTC
*** Bug 1317025 has been marked as a duplicate of this bug. ***

Comment 2 Hanns-Joachim Uhl 2016-03-14 17:27:19 UTC
... for RHEL7 was it maybe this bugzilla ...?
LTC bug 107852 - RH1092490- STC810:Tuleta:COFP1 - RHEL 7.0 - lsusb command core dumps when there are no valid USB devices (usbutils) ...?

Comment 3 Lukáš Nykrýn 2016-03-15 15:05:39 UTC
We need this patch:

https://github.com/gregkh/usbutils/commit/fc2b9edc19565ff5f5a7b113756e99f5b31a77d1

Comment 4 Lukáš Nykrýn 2016-03-16 12:34:16 UTC
It is already 6.8 beta and only exceptions are accepted, so postponing to 6.9.

Comment 8 Mike Gahagan 2016-03-30 16:42:37 UTC
Verified usbutils-003-6.el6 fixes the segfault issue on systems with no USB

Comment 10 errata-xmlrpc 2016-05-10 20:52:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0805.html


Note You need to log in before you can comment on or make changes to this bug.