Bug 751594 - hal-disable-polling terminated - buffer overflow detected
Summary: hal-disable-polling terminated - buffer overflow detected
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: hal
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-06 01:35 UTC by Egberto Monteiro
Modified: 2012-08-06 20:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---


Attachments (Terms of Use)

Description Egberto Monteiro 2011-11-06 01:35:06 UTC
Description of problem:
When i run "hal-disable-polling --device /dev/sdc0" the system shows "buffer overflow detected"

Version-Release number of selected component (if applicable):
#hal-disable-polling --version
hal-disable-polling 0.5.14


How reproducible:


# ls -l /dev/scd0 
lrwxrwxrwx. 1 root root 3 Nov  5 18:40 /dev/scd0 -> sr0


# ls -l /dev/sr0
brw-rw----+ 1 root cdrom 11, 0 Nov  5 18:40 /dev/sr0



Executing:
hal-disable-polling --device /dev/scd0

System show:
 
*** buffer overflow detected ***: hal-disable-polling terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x3a29af7e27]
/lib64/libc.so.6[0x3a29af5e50]
/lib64/libc.so.6[0x3a29af647b]
hal-disable-polling[0x401554]
/lib64/libc.so.6(__libc_start_main+0xed)[0x3a29a2139d]
hal-disable-polling[0x400ee9]
======= Memory map: ========
00400000-00403000 r-xp 00000000 fd:01 158125                             /usr/bin/hal-disable-polling
00602000-00603000 rw-p 00002000 fd:01 158125                             /usr/bin/hal-disable-polling
01f84000-01fa5000 rw-p 00000000 00:00 0                                  [heap]
3a29600000-3a2961f000 r-xp 00000000 fd:01 131099                         /lib64/ld-2.14.so
3a2981e000-3a2981f000 r--p 0001e000 fd:01 131099                         /lib64/ld-2.14.so
3a2981f000-3a29820000 rw-p 0001f000 fd:01 131099                         /lib64/ld-2.14.so
3a29820000-3a29821000 rw-p 00000000 00:00 0 
3a29a00000-3a29b8f000 r-xp 00000000 fd:01 131103                         /lib64/libc-2.14.so
3a29b8f000-3a29d8f000 ---p 0018f000 fd:01 131103                         /lib64/libc-2.14.so
3a29d8f000-3a29d93000 r--p 0018f000 fd:01 131103                         /lib64/libc-2.14.so
3a29d93000-3a29d94000 rw-p 00193000 fd:01 131103                         /lib64/libc-2.14.so
3a29d94000-3a29d9a000 rw-p 00000000 00:00 0 
3a29e00000-3a29e16000 r-xp 00000000 fd:01 132493                         /lib64/libpthread-2.14.so
3a29e16000-3a2a015000 ---p 00016000 fd:01 132493                         /lib64/libpthread-2.14.so
3a2a015000-3a2a016000 r--p 00015000 fd:01 132493                         /lib64/libpthread-2.14.so
3a2a016000-3a2a017000 rw-p 00016000 fd:01 132493                         /lib64/libpthread-2.14.so
3a2a017000-3a2a01b000 rw-p 00000000 00:00 0 
3a2a600000-3a2a607000 r-xp 00000000 fd:01 132494                         /lib64/librt-2.14.so
3a2a607000-3a2a806000 ---p 00007000 fd:01 132494                         /lib64/librt-2.14.so
3a2a806000-3a2a807000 r--p 00006000 fd:01 132494                         /lib64/librt-2.14.so
3a2a807000-3a2a808000 rw-p 00007000 fd:01 132494                         /lib64/librt-2.14.so
3a2b200000-3a2b215000 r-xp 00000000 fd:01 132580                         /lib64/libgcc_s-4.6.1-20110908.so.1
3a2b215000-3a2b414000 ---p 00015000 fd:01 132580                         /lib64/libgcc_s-4.6.1-20110908.so.1
3a2b414000-3a2b415000 rw-p 00014000 fd:01 132580                         /lib64/libgcc_s-4.6.1-20110908.so.1
3a2b600000-3a2b715000 r-xp 00000000 fd:01 132495                         /lib64/libglib-2.0.so.0.2800.8
3a2b715000-3a2b915000 ---p 00115000 fd:01 132495                         /lib64/libglib-2.0.so.0.2800.8
3a2b915000-3a2b916000 rw-p 00115000 fd:01 132495                         /lib64/libglib-2.0.so.0.2800.8
3a2b916000-3a2b917000 rw-p 00000000 00:00 0 
3a2d200000-3a2d242000 r-xp 00000000 fd:01 136253                         /lib64/libdbus-1.so.3.5.4
3a2d242000-3a2d442000 ---p 00042000 fd:01 136253                         /lib64/libdbus-1.so.3.5.4
3a2d442000-3a2d443000 r--p 00042000 fd:01 136253                         /lib64/libdbus-1.so.3.5.4
3a2d443000-3a2d444000 rw-p 00043000 fd:01 136253                         /lib64/libdbus-1.so.3.5.4
3a2d600000-3a2d610000 r-xp 00000000 fd:01 142323                         /usr/lib64/libhal.so.1.0.0
3a2d610000-3a2d80f000 ---p 00010000 fd:01 142323                         /usr/lib64/libhal.so.1.0.0
3a2d80f000-3a2d810000 rw-p 0000f000 fd:01 142323                         /usr/lib64/libhal.so.1.0.0
7ffd78a03000-7ffd78a08000 rw-p 00000000 00:00 0 
7ffd78a1d000-7ffd78a1f000 rw-p 00000000 00:00 0 
7fff29b01000-7fff29b22000 rw-p 00000000 00:00 0                          [stack]
7fff29bff000-7fff29c00000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)


---------------------------


If i execute:

# hal-disable-polling --device /dev/sr0 
Polling for drive /dev/sr0 have been disabled. The fdi file written was
  /etc/hal/fdi/information/media-check-disable-storage_serial_HL_DT_ST_DVDRW_BDROM_CT30N_KVDB8C82732.fdi



Steps to Reproduce:
1. yum install hal-disable-polling -y
2. hal-disable-polling --device /dev/scd0

  
Actual results:

*** buffer overflow detected ***: hal-disable-polling terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x3a29af7e27]
/lib64/libc.so.6[0x3a29af5e50]
/lib64/libc.so.6[0x3a29af647b]
hal-disable-polling[0x401554]
/lib64/libc.so.6(__libc_start_main+0xed)[0x3a29a2139d]
hal-disable-polling[0x400ee9]
======= Memory map: ========
00400000-00403000 r-xp 00000000 fd:01 158125                             /usr/bin/hal-disable-polling
00602000-00603000 rw-p 00002000 fd:01 158125                             /usr/bin/hal-disable-polling
01f84000-01fa5000 rw-p 00000000 00:00 0                                  [heap]
3a29600000-3a2961f000 r-xp 00000000 fd:01 131099                         /lib64/ld-2.14.so
3a2981e000-3a2981f000 r--p 0001e000 fd:01 131099                         /lib64/ld-2.14.so
3a2981f000-3a29820000 rw-p 0001f000 fd:01 131099                         /lib64/ld-2.14.so
3a29820000-3a29821000 rw-p 00000000 00:00 0 
3a29a00000-3a29b8f000 r-xp 00000000 fd:01 131103                         /lib64/libc-2.14.so
3a29b8f000-3a29d8f000 ---p 0018f000 fd:01 131103                         /lib64/libc-2.14.so
3a29d8f000-3a29d93000 r--p 0018f000 fd:01 131103                         /lib64/libc-2.14.so
3a29d93000-3a29d94000 rw-p 00193000 fd:01 131103                         /lib64/libc-2.14.so
3a29d94000-3a29d9a000 rw-p 00000000 00:00 0 
3a29e00000-3a29e16000 r-xp 00000000 fd:01 132493                         /lib64/libpthread-2.14.so
3a29e16000-3a2a015000 ---p 00016000 fd:01 132493                         /lib64/libpthread-2.14.so
3a2a015000-3a2a016000 r--p 00015000 fd:01 132493                         /lib64/libpthread-2.14.so
3a2a016000-3a2a017000 rw-p 00016000 fd:01 132493                         /lib64/libpthread-2.14.so
3a2a017000-3a2a01b000 rw-p 00000000 00:00 0 
3a2a600000-3a2a607000 r-xp 00000000 fd:01 132494                         /lib64/librt-2.14.so
3a2a607000-3a2a806000 ---p 00007000 fd:01 132494                         /lib64/librt-2.14.so
3a2a806000-3a2a807000 r--p 00006000 fd:01 132494                         /lib64/librt-2.14.so
3a2a807000-3a2a808000 rw-p 00007000 fd:01 132494                         /lib64/librt-2.14.so
3a2b200000-3a2b215000 r-xp 00000000 fd:01 132580                         /lib64/libgcc_s-4.6.1-20110908.so.1
3a2b215000-3a2b414000 ---p 00015000 fd:01 132580                         /lib64/libgcc_s-4.6.1-20110908.so.1
3a2b414000-3a2b415000 rw-p 00014000 fd:01 132580                         /lib64/libgcc_s-4.6.1-20110908.so.1
3a2b600000-3a2b715000 r-xp 00000000 fd:01 132495                         /lib64/libglib-2.0.so.0.2800.8
3a2b715000-3a2b915000 ---p 00115000 fd:01 132495                         /lib64/libglib-2.0.so.0.2800.8
3a2b915000-3a2b916000 rw-p 00115000 fd:01 132495                         /lib64/libglib-2.0.so.0.2800.8
3a2b916000-3a2b917000 rw-p 00000000 00:00 0 
3a2d200000-3a2d242000 r-xp 00000000 fd:01 136253                         /lib64/libdbus-1.so.3.5.4
3a2d242000-3a2d442000 ---p 00042000 fd:01 136253                         /lib64/libdbus-1.so.3.5.4
3a2d442000-3a2d443000 r--p 00042000 fd:01 136253                         /lib64/libdbus-1.so.3.5.4
3a2d443000-3a2d444000 rw-p 00043000 fd:01 136253                         /lib64/libdbus-1.so.3.5.4
3a2d600000-3a2d610000 r-xp 00000000 fd:01 142323                         /usr/lib64/libhal.so.1.0.0
3a2d610000-3a2d80f000 ---p 00010000 fd:01 142323                         /usr/lib64/libhal.so.1.0.0
3a2d80f000-3a2d810000 rw-p 0000f000 fd:01 142323                         /usr/lib64/libhal.so.1.0.0
7ffd78a03000-7ffd78a08000 rw-p 00000000 00:00 0 
7ffd78a1d000-7ffd78a1f000 rw-p 00000000 00:00 0 
7fff29b01000-7fff29b22000 rw-p 00000000 00:00 0                          [stack]
7fff29bff000-7fff29c00000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)


Expected results:

Polling for drive /dev/sr0 have been disabled. The fdi file written was
  /etc/hal/fdi/information/media-check-disable-storage_serial_HL_DT_ST_DVDRW_BDROM_CT30N_KVDB8C82732.fdi

Additional Info: 

Dell XPS 15 (L502X)

# uname -an
Linux darkside 2.6.40.6-0.fc15.x86_64 #1 SMP Tue Oct 4 00:39:50 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

Comment 1 Richard Hughes 2011-11-07 10:16:18 UTC
Hal is dead upstream. I'd strongly recommend you use udisks instead.

Comment 2 Fedora End Of Life 2012-08-06 20:06:48 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 15. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 15 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Fedora End Of Life 2012-08-06 20:06:49 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 15. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 15 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


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