Bug 147855 - [ipmi] [patch] kernel panic when IPMI enabled on some machines
Summary: [ipmi] [patch] kernel panic when IPMI enabled on some machines
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
Depends on:
Reported: 2010-06-14 17:20 UTC by Ed Harbin
Modified: 2018-01-03 05:16 UTC (History)
0 users

See Also:

file.diff (2.11 KB, patch)
2010-06-14 17:20 UTC, Ed Harbin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Harbin 2010-06-14 17:20:00 UTC
Panic on some machines (eg Compaq Presario SR5350F) when booting GENERIC +
device ipmi
device smbus.

In sys/dev/ipmi/ipmi_smbios.c:
smbios_run_table() is copying smbios entries into a fixed size automatic, table[20], which it overruns on some types of smbios, and hence corrupts the stack. The following patch just tests for the overrun and prevents the panic. However, this would truncate the table, and perhaps there is a way of learning the actual table size. Also, perhaps every entry in the smbios table is not a string.

Fix: Patch attached with submission follows:
How-To-Repeat: On every boot of problem machines.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:27 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped