freebsd-dev/sys/dev
John Baldwin 020e9fc33b Rework the SMBIOS table walker to make it operate like other table walkers
and remove a buffer overflow:
- Remove the array of per-type dispatch functions.  Instead, pass each
  structure to a single callback.  The callback should check the type of
  each table entry to take appropriate action.  This matches the behavior
  of other table walkers such as for the MP Table and MADT.
- Don't attempt to save an array of string pointers for each structure
  entry.  Instead, just skip the strings.  If this code is reused to
  provide a generic SMBIOS table walker in the future we could provide
  a method that looks up a specific string N for a given structure record
  instead of pre-populating an array of pointers.  This fixes a buffer
  overflow for structure entries with more than 20 strings.

PR:		kern/148546
Reported by:	Spencer Minear @ McAfee
MFC after:	3 days
2010-07-14 18:06:21 +00:00
..
aac Use enums in the aac_command_status_table rather than duplicating the same 2010-04-13 12:10:55 +00:00
acpi_support Import the acpi_aibs(4) driver written by Constantine A. Murenin. 2010-06-25 15:32:46 +00:00
acpica Make SMP code path conditional at run-time. 2010-07-13 16:35:41 +00:00
adb
adlink Update d_mmap() to accept vm_ooffset_t and vm_memattr_t. 2009-12-29 21:51:28 +00:00
advansys
ae Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
age With r206844, CSUM_TCP is also set for CSUM_TSO case. Modify 2010-04-19 22:10:40 +00:00
agp Do not mention VM_ALLOC_RETRY in comment, and normalize the terminology 2010-07-08 08:39:02 +00:00
aha
ahb
ahci Disable NCQ and PMP support for VIA VT8251 AHCI. It was reported to be 2010-06-08 10:03:08 +00:00
aic
aic7xxx Correct logic bug in aicasm's undefined register bit access detection code. 2010-07-14 14:31:18 +00:00
alc With r206844, CSUM_TCP is also set for CSUM_TSO case. Modify 2010-04-19 22:10:40 +00:00
ale It seems ale(4) controllers do not like to see TCP payload in the 2010-04-26 21:08:15 +00:00
amd Remove extraneous semicolons, no functional changes. 2010-01-07 21:01:37 +00:00
amdsbwd amdsbwd: fix nonsensical timeout calculations 2010-05-31 09:07:23 +00:00
amdtemp
amr Remove extraneous semicolons, no functional changes. 2010-01-07 21:01:37 +00:00
an Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
arcmsr Remove extraneous semicolons, no functional changes. 2010-01-07 21:01:37 +00:00
asmc
asr MFp4: Large set of CAM inprovements. 2010-01-28 08:41:30 +00:00
ata Disable multi-sector PIO transfers if ATA_SET_MULTI command failed. 2010-07-13 06:42:47 +00:00
ath Extend the ath debugging a little to log the interface name. 2010-07-08 14:08:03 +00:00
atkbdc On certain chipsets AT keyboard controller isn't present and is 2010-04-29 06:16:00 +00:00
auxio
bce Add a fastpath to allocate from packet zone when using m_getjcl. 2010-05-07 22:09:17 +00:00
bfe
bge Prefer PCIR_BAR macro over BGE_PCI_BAR0. 2010-07-13 19:45:40 +00:00
bktr Fix build on architectures where PAGE_SIZE is a long (sparc64, powerpc). 2010-07-13 19:27:20 +00:00
bm
buslogic
bwi Fixes a page fault in bwi_pci_probe() because the array isn't terminated 2010-07-10 22:37:23 +00:00
bwn Fixes a bug for LP PHY that some frames have 2 padding bytes at the 2010-07-10 21:39:03 +00:00
cardbus Move the PCI-specific logic of removing a cardbus device into a 2010-01-05 20:42:25 +00:00
cas Avoid possible NULL-dereferences. 2010-06-03 12:09:02 +00:00
ce Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
cfe Create the "cfecons" tty directly using tty_makedev(). It is not clear what 2010-01-26 03:42:34 +00:00
cfi Convert Freescale PowerPC platforms to FDT convention. 2010-07-11 21:08:29 +00:00
ciss Initialize the callout structure earlier in attach before calling any 2010-04-28 18:49:45 +00:00
cm Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
cmx
coretemp
cp Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
cpuctl
cpufreq
cs Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
ct Spell "Hz" correctly wherever it is user-visible. 2010-01-12 17:59:58 +00:00
ctau Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
cx Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
cxgb Improve cxgb(4)'s behaviour when faced with temporarily "bouncy" links: 2010-07-09 00:38:00 +00:00
cy
dc cardbus -> CardBus 2010-01-03 23:28:32 +00:00
dcons
de Remove extraneous semicolons, no functional changes. 2010-01-07 21:01:37 +00:00
digi
dpms
dpt Get rid of #ident, GCC 4.4 warns about it being deprecated. 2010-01-08 17:20:41 +00:00
drm Push down the acquisition of the page queues lock into vm_page_unwire(). 2010-05-05 07:40:54 +00:00
e1000 Fix for a panic when TX checksum offload is done and 2010-07-12 21:47:30 +00:00
ed Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
eisa
en
ep Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
esp Include <machine/ofw_machdep.h> for OF_getscsinitid(). 2010-05-10 20:02:39 +00:00
et
ex Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
exca CardBus instead of cardbus. 2010-01-03 23:26:29 +00:00
fatm Remove extraneous semicolons, no functional changes. 2010-01-07 21:01:37 +00:00
fb Initialize a variable before its use. 2010-07-13 19:58:06 +00:00
fdc Fix a regression from r200554, which broke fdc(4) attachment to acpi(4). 2010-05-30 03:45:41 +00:00
fdt Convert Freescale PowerPC platforms to FDT convention. 2010-07-11 21:08:29 +00:00
fe Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
firewire Cast a bus_size_t to a (size_t) to use %zd specifier. Not quite the 2010-03-29 17:24:23 +00:00
flash Merge from projects/mips to head by hand: 2010-01-10 05:15:46 +00:00
fxp If controller received bad frames make sure to update newly added 2010-05-14 17:39:28 +00:00
gem According to the Linux sungem driver, in case of Apple (K2) GMACs 2010-02-22 21:01:08 +00:00
glxsb
hatm Remove extraneous semicolons, no functional changes. 2010-01-07 21:01:37 +00:00
hifn Update d_mmap() to accept vm_ooffset_t and vm_memattr_t. 2009-12-29 21:51:28 +00:00
hme The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-03 17:55:51 +00:00
hptiop Report transport type in XPT_PATH_INQ. 2010-06-19 13:41:17 +00:00
hptmv Report transport type in XPT_PATH_INQ. 2010-06-19 13:42:14 +00:00
hptrr MFp4: Large set of CAM inprovements. 2010-01-28 08:41:30 +00:00
hwpmc Fix a panic brought about by writing an MSR without a proper mask. 2010-07-13 19:37:45 +00:00
ic Merge from projects/mips to head by hand: 2010-01-11 04:13:06 +00:00
ichsmb
ichwd Add support for the NM10 chipset. 2010-01-24 10:50:20 +00:00
ida
ie Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
ieee488 GPIB overhaul, part #2: make the tnt4882 driver work with the newer 2010-02-01 21:21:10 +00:00
if_ndis Remove extraneous semicolons, no functional changes. 2010-01-07 21:01:37 +00:00
iicbus Fix iicbus_get_addr() on 64-bit big-endian systems. The bus accessor 2010-07-08 14:19:52 +00:00
iir Get rid of #ident. 2010-01-08 20:40:28 +00:00
io - Extract the IODEV_PIO interface from ia64 and make it MI. 2010-04-28 15:38:01 +00:00
ipmi Rework the SMBIOS table walker to make it operate like other table walkers 2010-07-14 18:06:21 +00:00
ips
ipw Enable 5.5 and 11Mbit TX rates. 2010-05-11 17:14:17 +00:00
iscsi/initiator Remove extraneous semicolons, no functional changes. 2010-01-07 21:01:37 +00:00
isp Don't pass a buffer directly as a printflike format string. 2010-06-10 19:38:07 +00:00
ispfw Don't spam dmesg with "registered firmware ..." when module is compiled 2010-03-05 03:37:42 +00:00
iwi Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
iwn Fix TX retry rate handling. tx->linkq is an index to a rate table 2010-06-14 18:26:10 +00:00
ixgb
ixgbe Fix build 2010-07-01 05:03:24 +00:00
jme Add TSO support on VLANs. jme(4) controllers do not require VLAN 2010-02-22 22:05:49 +00:00
joy
kbd
kbdmux
ksyms Update d_mmap() to accept vm_ooffset_t and vm_memattr_t. 2009-12-29 21:51:28 +00:00
le Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
led (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument. 2009-12-28 22:56:30 +00:00
lge
lindev
lmc One more #ifdef fix for GCC 4.4. 2010-01-08 15:57:56 +00:00
malo Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
mc146818 Remove clause 3 from Izumi Tsutsui's licenses. 2009-12-25 22:58:43 +00:00
mca
mcd
md Calculate nshift only once. 2010-07-06 18:22:57 +00:00
mem
mfi Correct mfip module dependency on mfi. This allows mfip to be loaded as 2010-03-02 17:34:11 +00:00
mge Convert Marvell ARM platforms to FDT convention. 2010-06-13 13:28:53 +00:00
mii Add Marvell PHYG65G Gigabit PHY which is found on 88E8059 Yukon Optima. 2010-04-30 19:01:55 +00:00
mk48txx Fix botches in r201005: 2010-01-01 22:47:53 +00:00
mlx
mly MFp4: Large set of CAM inprovements. 2010-01-28 08:41:30 +00:00
mmc Report relative card address to NewBus as location string. 2010-05-23 09:44:48 +00:00
mn
mpt Correct inverted parent DMA tag parameters. 2010-07-12 23:01:21 +00:00
mse
msk When VLAN hardware tagging is disabled, make sure to disable VLAN 2010-05-04 22:24:19 +00:00
mvs Plug memory leak to silent Coverity. Error is still not really handled. 2010-06-05 08:21:18 +00:00
mwl Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
mxge Add interrupt descriptions for mxge's msi-x vectors 2010-05-21 15:57:24 +00:00
my Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
ncv
nfe With r206844, CSUM_TCP is also set for CSUM_TSO case. Modify 2010-04-19 22:10:40 +00:00
nge
nmdm
nsp
null
nve Initialize the ifnet before calling mii_phy_probe() as some phy drivers 2010-01-27 14:43:28 +00:00
nvram
nxge Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
ofw Missed a file in r209803: this header contains a definition of 2010-07-08 18:15:06 +00:00
patm Remove extraneous semicolons, no functional changes. 2010-01-07 21:01:37 +00:00
pbio
pccard cardbus -> CardBus 2010-01-03 23:31:58 +00:00
pccbb
pcf
pci Provide more defines for PCI-Express device ctrl. 2010-07-11 20:55:39 +00:00
pcn
pdq Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
powermac_nvram
ppbus Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
ppc Add PCI ID for MCS9901's parallel port. 2010-03-23 20:08:18 +00:00
pst
pty
puc Add support for the Perle Speed4 LE. 2010-05-20 13:16:42 +00:00
quicc Convert Freescale PowerPC platforms to FDT convention. 2010-07-11 21:08:29 +00:00
ral Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
random Use the fpu_kern_enter() interface to properly separate usermode FPU 2010-06-05 16:00:53 +00:00
rc
re Don't change PCIe maximum read request size to 2048 on RTL810x 2010-05-07 23:05:27 +00:00
rndtest
rp
safe Remove extraneous semicolons, no functional changes. 2010-01-07 21:01:37 +00:00
sbni Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
scc
scd
sdhci
sec Convert Freescale PowerPC platforms to FDT convention. 2010-07-11 21:08:29 +00:00
sf
sge Remove enabling RX checksum offloading in RX filter setup. RX 2010-07-08 18:22:49 +00:00
si
siba Revert r204992 and just wrap it all in ifdef INVARIANTS to fix the debug and 2010-03-11 08:03:56 +00:00
siis Plug memory leak to silent Coverity. Error is still not really handled. 2010-06-05 08:16:21 +00:00
sio
sis It's not necessary to reset the chip every time an input overflow event 2010-04-20 19:30:12 +00:00
sk Some revision of Yukon controller generates corrupted frame when TX 2010-07-09 21:21:08 +00:00
smbus
smc Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
sn Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
snc Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
snp
sound - fix for USB audio devices which use the 7-byte endpoint descriptor instead of 2010-06-22 21:16:18 +00:00
speaker
spibus
ste Make sure to store dma address of RX buffer in little endian form. 2010-01-08 02:43:20 +00:00
stg
stge The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-01 16:52:11 +00:00
streams
sym - On sparc64 obtain the initiator ID from the Open Firmware device tree 2010-04-27 18:05:33 +00:00
syscons Suspend screen updates when the video controller is powered down. 2010-05-22 07:35:17 +00:00
tdfx Update d_mmap() to accept vm_ooffset_t and vm_memattr_t. 2009-12-29 21:51:28 +00:00
ti Neither the page lock nor the page queues lock is required to unwire and 2010-05-03 15:51:59 +00:00
tl
trm MFp4: Large set of CAM inprovements. 2010-01-28 08:41:30 +00:00
tsec Convert Freescale PowerPC platforms to FDT convention. 2010-07-11 21:08:29 +00:00
twa Don't use pack() for structures that is used purely for software state. 2010-07-09 17:38:15 +00:00
twe
tx
txp
uart Convert Freescale PowerPC platforms to FDT convention. 2010-07-11 21:08:29 +00:00
ubsec Cast the bus_size_t to a intmax_t rather than assuming type-punning to 2010-03-29 17:26:24 +00:00
usb Add a 4 and 7 port USB hub from NEC. 2010-07-13 20:09:14 +00:00
utopia
vge
vkbd
vr
vx Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
watchdog
wb
wds
wi Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
wl Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
wpi Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
xe Add new tunable 'net.link.ifqmaxlen' to set default send interface 2010-05-03 07:32:50 +00:00
xen A number of netfront fixes and stability improvements: 2010-06-08 03:13:26 +00:00
xl cardbus -> CardBus 2010-01-03 23:29:49 +00:00