hddtemp falling foul of new kernel protection
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_
/lib/x86_
/usr/sbin/
======= 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-
7f368fefc000-
7f368fefd000-
7f368fefe000-
7f36901ca000-
7f369037c000-
7f369057c000-
7f3690580000-
7f3690582000-
7f3690587000-
7f369079b000-
7f369079f000-
7f36907a0000-
7f36907a7000-
7f36907a9000-
7f36907aa000-
7ffff88cc000-
7ffff8966000-
ffffffffff60000
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://
100 /var/lib/
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 7fff18d80000 rw-p 00000000 00:) = 1024 7fff18e00000 r-xp 00000000 00:00 0 [vdso] 0-ffffffffff601 000 r-xp 00000000 00:00 0 [vsyscall] SIG_UNBLOCK, [ABRT], NULL, 8) = 0
7fff18d5f000-
read(5, "00 0 [s"..., 1024) = 202
write(4, "00 0 [s"..., 20200 0 [stack]
7fff18dff000-
ffffffffff60000
) = 202
read(5, "", 1024) = 0
close(5) = 0
rt_sigprocmask(
gettid() = 31311
tgkill(31311, 31311, SIGABRT) = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT (core dumped) +++
Aborted (core dumped)