hddtemp falling foul of new kernel protection

Bug #972639 reported by Gareth Bult
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
hddtemp (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

#/usr/sbin/hddtemp /dev/sdb

*** stack smashing detected ***: /usr/sbin/hddtemp terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f36902d3007]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x0)[0x7f36902d2fd0]
/usr/sbin/hddtemp[0x4027ef]
======= Memory map: ========
00400000-00407000 r-xp 00000000 08:01 20392 /usr/sbin/hddtemp
00607000-00608000 r--p 00007000 08:01 20392 /usr/sbin/hddtemp
00608000-00609000 rw-p 00008000 08:01 20392 /usr/sbin/hddtemp
00609000-0060a000 rw-p 00000000 00:00 0
01ccc000-01d0e000 rw-p 00000000 00:00 0 [heap]
7f368fce8000-7f368fcfd000 r-xp 00000000 08:01 260758 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f368fcfd000-7f368fefc000 ---p 00015000 08:01 260758 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f368fefc000-7f368fefd000 r--p 00014000 08:01 260758 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f368fefd000-7f368fefe000 rw-p 00015000 08:01 260758 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f368fefe000-7f36901ca000 r--p 00000000 08:01 879 /usr/lib/locale/locale-archive
7f36901ca000-7f369037c000 r-xp 00000000 08:01 269500 /lib/x86_64-linux-gnu/libc-2.15.so
7f369037c000-7f369057c000 ---p 001b2000 08:01 269500 /lib/x86_64-linux-gnu/libc-2.15.so
7f369057c000-7f3690580000 r--p 001b2000 08:01 269500 /lib/x86_64-linux-gnu/libc-2.15.so
7f3690580000-7f3690582000 rw-p 001b6000 08:01 269500 /lib/x86_64-linux-gnu/libc-2.15.so
7f3690582000-7f3690587000 rw-p 00000000 00:00 0
7f3690587000-7f36905a9000 r-xp 00000000 08:01 269502 /lib/x86_64-linux-gnu/ld-2.15.so
7f369079b000-7f369079e000 rw-p 00000000 00:00 0
7f369079f000-7f36907a0000 rw-p 00000000 00:00 0
7f36907a0000-7f36907a7000 r--s 00000000 08:01 8682 /usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache
7f36907a7000-7f36907a9000 rw-p 00000000 00:00 0
7f36907a9000-7f36907aa000 r--p 00022000 08:01 269502 /lib/x86_64-linux-gnu/ld-2.15.so
7f36907aa000-7f36907ac000 rw-p 00023000 08:01 269502 /lib/x86_64-linux-gnu/ld-2.15.so
7ffff88cc000-7ffff88ed000 rw-p 00000000 00:00 0 [stack]
7ffff8966000-7ffff8967000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted (core dumped)

Description: Ubuntu precise (development branch)
Release: 12.04

hddtemp:
  Installed: 0.3-beta15-51
  Candidate: 0.3-beta15-51
  Version table:
 *** 0.3-beta15-51 0
        500 http://gb.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Gareth Bult (2-gareth) wrote :

Just to expand a little, if I download the same source and compile with "-fno-stack-protector", the stack smashing issue vanishes but instead the program dies with a core dump.

..

7fea5a9d0000-7fea5a9d2000 rw-p 00023000 08:01 269502 /lib/x86_64-linux-gnu/ld-2.15.so
7fff18d5f000-7fff18d80000 rw-p 00000000 00:) = 1024
read(5, "00 0 [s"..., 1024) = 202
write(4, "00 0 [s"..., 20200 0 [stack]
7fff18dff000-7fff18e00000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
) = 202
read(5, "", 1024) = 0
close(5) = 0
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
gettid() = 31311
tgkill(31311, 31311, SIGABRT) = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT (core dumped) +++
Aborted (core dumped)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in hddtemp (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.