Package: ipmitool
Version: 1.8.11-2
Severity: serious
Tags: patch
When running ipmitool sdr elist, ipmitool segfaults:
# ipmitool -I lan -H *** -U root -P *** sdr elist
Temp | 01h | ok | 3.1 | -40 degrees C
Temp | 02h | ok | 3.2 | -33 degrees C
Temp | 05h | ok | 10.1 | 44 degrees C
Ambient Temp | 07h | ok | 10.1 | 40 degrees C
Temp | 06h | ok | 10.2 | 40 degrees C
Ambient Temp | 08h | ok | 10.2 | 40 degrees C
Ambient Temp | 0Eh | ok | 7.1 | 25 degrees C
Planar Temp | 0Fh | ok | 7.1 | 49 degrees C
CMOS Battery | 10h | ok | 7.1 |
VCORE | 12h | ok | 3.1 | State Deasserted
VCORE | 13h | ok | 3.2 | State Deasserted
IOH THERMTRIP | 5Dh | ns | 7.1 | Disabled
1.5V PG | 17h | ok | 7.1 | State Deasserted
1.8V PG | 18h | ok | 7.1 | State Deasserted
3.3V PG | 19h | ok | 7.1 | State Deasserted
5V PG | 1Ah | ok | 7.1 | State Deasserted
0.75VTT PG | 14h | ok | 3.2 | State Deasserted
PFault Fail Safe | 5Fh | ns | 7.1 | Disabled
HEATSINK PRES | 52h | ok | 7.1 | Present
iDRAC6 Ent PRES | 70h | ok | 7.1 | Present
USB CABLE PRES | 59h | ok | 7.1 | Present
STOR ADAPT PRES | 5Ah | ok | 7.1 | Present
RISER2 PRES | 5Bh | ok | 7.1 | Present
RISER1 PRES | 5Ch | ok | 7.1 | Present
0.75 VTT PG | 15h | ok | 3.1 | State Deasserted
MEM PG | 1Bh | ok | 3.2 | State Deasserted
MEM PG | 1Eh | ok | 3.1 | State Deasserted
0.9V PG | 21h | ok | 7.1 | State Deasserted
VTT PG | 1Fh | ok | 3.2 | State Deasserted
VTT PG | 20h | ok | 3.1 | State Deasserted
1.8 PLL PG | 22h | ok | 3.2 | State Deasserted
1.8 PLL PG | 24h | ok | 3.1 | State Deasserted
8.0V PG | 25h | ok | 7.1 | State Deasserted
1.1V PG | 28h | ok | 7.1 | State Deasserted
1.0V LOM PG | 29h | ok | 7.1 | State Deasserted
1.0V AUX PG | 2Ah | ok | 7.1 | State Deasserted
1.05V PG | 2Bh | ok | 7.1 | State Deasserted
FAN MOD 1A RPM | 30h | ok | 7.1 | 4320 RPM
FAN MOD 2A RPM | 31h | ok | 7.1 | 4440 RPM
FAN MOD 3A RPM | 32h | ok | 7.1 | 4560 RPM
FAN MOD 4A RPM | 33h | ok | 7.1 | 4320 RPM
FAN MOD 5A RPM | 34h | ok | 7.1 | 4560 RPM
FAN MOD 6A RPM | 35h | ok | 7.1 | 4560 RPM
FAN MOD 1B RPM | 36h | ok | 7.1 | 3120 RPM
FAN MOD 2B RPM | 37h | ok | 7.1 | 3120 RPM
FAN MOD 3B RPM | 38h | ok | 7.1 | 3000 RPM
FAN MOD 4B RPM | 39h | ok | 7.1 | 3120 RPM
FAN MOD 5B RPM | 3Ah | ok | 7.1 | 3120 RPM
FAN MOD 6B RPM | 3Bh | ok | 7.1 | 3120 RPM
Presence | 50h | ok | 3.1 | Present
Presence | 51h | ok | 3.2 | Present
Presence | 54h | ok | 10.1 | Present
Presence | 55h | ok | 10.2 | Present
Presence | 56h | ok | 26.1 | Present
Status | 60h | ok | 3.1 | Presence detected
Status | 61h | ok | 3.2 | Presence detected
Status | 64h | ok | 10.1 | Presence detected
Status | 65h | ok | 10.2 | Presence detected
Riser Config | 66h | ok | 7.1 | Connected
OS Watchdog | 71h | ok | 7.1 |
SEL | 72h | ns | 7.1 | Disabled
Intrusion | 73h | ok | 7.1 |
PS Redundancy | 74h | ok | 7.1 | Fully Redundant
Fan Redundancy | 75h | ok | 7.1 | Fully Redundant
CPU Temp Interf | 76h | ns | 7.1 | Disabled
Drive | 80h | ok | 26.1 | Drive Present
Cable SAS A | 90h | ok | 26.1 | Connected
Cable SAS B | 91h | ok | 26.1 | Connected
Segmentation fault
This bug seems to be fixed with the following patch:
diff -Nur ipmitool-1.8.11/lib/ipmi_sdr.c ipmitool-1.8.11.fix/lib/ipmi_sdr.c
--- ipmitool-1.8.11/lib/ipmi_sdr.c 2009-02-25 21:38:52.000000000 +0100
+++ ipmitool-1.8.11.fix/lib/ipmi_sdr.c 2011-08-10 18:21:26.000000000 +0200
@@ -1828,7 +1828,7 @@
printf("ns | %2d.%1d | ",
sensor->entity.id,
sensor->entity.instance);
- if (IS_SCANNING_DISABLED(rsp->data[1]))
+ if (rsp && IS_SCANNING_DISABLED(rsp->data[1]))
printf("Disabled");
else
printf("No Reading");
-- System Information:
Debian Release: 6.0.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.18-6-xen-amd64 (SMP w/2 CPU cores)
Locale: LANG=, LC_CTYPE= (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages ipmitool depends on:
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libncurses5 5.7+20100313-5 shared libraries for terminal hand
ii libreadline6 6.1-3 GNU readline and history libraries
ii libssl0.9.8 0.9.8o-4squeeze1 SSL shared libraries
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ipmitool recommends no packages.
Versions of packages ipmitool suggests:
pn openipmi <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]