freebsd-nq/sys/dev
Grzegorz Bernacki 8e16e025ac Split raw reading/programming into smaller chunks to avoid allocating too
big chunk of kernel memory. Validate size of data. Add error handling to
avoid calling copyout() when data has not been read correctly.

Reviewed by:    zbb
Reported by:    x90c <geinblues@gmail.com>
MFC after:      2 days
2013-11-20 11:10:23 +00:00
..
aac Change the cap_rights_t type from uint64_t to a structure that we can extend 2013-09-05 00:09:56 +00:00
aacraid Update aacraid to version 3.2.5. 2013-11-08 13:23:26 +00:00
acpi_support Consistently cast ACPICA 64-bit integer types when we print them. 2013-06-26 23:52:10 +00:00
acpica Handle case when ACPI reports HPET device, but does not provide memory 2013-11-15 11:32:19 +00:00
adb Return NOKEY instead of 0 if there are no more key presses queued. This 2013-10-29 00:53:17 +00:00
adlink
advansys Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCI 2013-08-12 23:30:01 +00:00
ae The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
age The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
agp Remove the deprecated VM_ALLOC_RETRY flag for the vm_page_grab(9). 2013-08-22 07:39:53 +00:00
aha Fix memory and references leak due to unfreed path. 2013-10-22 12:42:49 +00:00
ahb
ahci Add few more minor parts of DevSleep support from AHCI 1.3.1 proposal. 2013-11-15 15:14:07 +00:00
aic
aic7xxx Rework the aicasm build machinery so that it gets built along with toolchain 2013-11-04 15:55:04 +00:00
alc The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
ale The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
altera These nexus attachments do not execute a real probe and so need 2013-10-29 13:48:41 +00:00
amdsbwd
amdtemp Add support for my: 2013-08-26 17:38:36 +00:00
amr Change the cap_rights_t type from uint64_t to a structure that we can extend 2013-09-05 00:09:56 +00:00
an The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
arcmsr Adjust various SCSI drivers to handle either a 32-bit or 64-bit lun_id_t, 2013-10-30 14:04:47 +00:00
asmc
asr Adjust various SCSI drivers to handle either a 32-bit or 64-bit lun_id_t, 2013-10-30 14:04:47 +00:00
ata Add some more IDs for Intel ATA, AHCI and USB controllers. 2013-11-15 10:28:59 +00:00
ath - Provide necessary includes, that before came via if.h pollution. 2013-10-28 22:26:03 +00:00
atkbdc Revert r255152: 2013-09-04 18:42:05 +00:00
auxio
bce Fix regression introduced in r235816. 2013-10-29 06:37:27 +00:00
bfe The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
bge The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
bktr Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCI 2013-08-12 23:30:01 +00:00
bm The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
buslogic Fix memory and references leak due to unfreed path. 2013-10-22 13:52:20 +00:00
bvm
bwi Include necessary headers that now are available due to pollution 2013-10-28 07:29:16 +00:00
bwn The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
bxe Fixed a tx watchdog chip reset that could occur on mostly idle links. 2013-11-15 20:26:14 +00:00
cadence The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
cardbus
cas The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
ce The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
cesa Opps, my kirkwood fix for the dreamplug missed this. 2013-10-29 11:28:11 +00:00
cfe More BUS_PROBE_NOWILDCARD sweeping. Some devices here (if_ath_ahb and siba) 2013-10-29 14:19:42 +00:00
cfi Set BUS_PROBE_NOWILDCARD on this attachment as a stopgap. Unconditionally 2013-10-22 14:10:00 +00:00
ciss Update ciss(4) with new models of raid controllers from HP 2013-08-06 03:17:01 +00:00
cm Provide necessary includes that before came via if.h. 2013-10-28 23:17:41 +00:00
cmx
coretemp Mark the coretemp(4) sysctls as MPSAFE, ensuring that Giant won't be held 2013-02-18 22:47:16 +00:00
cp The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
cpuctl Call free() on the pointer returned from malloc(). 2013-09-10 05:17:53 +00:00
cpufreq Add a quirk to disable this driver for certain older laptops with an ICH2 2013-02-26 18:30:47 +00:00
cs - Provide necessary includes. 2013-10-29 11:17:49 +00:00
ct
ctau The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
cx The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
cxgb Include necessary headers that now are available due to pollution 2013-10-28 07:29:16 +00:00
cxgbe cxgbe(4): Tidy up the display for payload memory statistics (pm_stats). 2013-11-07 00:25:49 +00:00
cy
dc The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
dcons MFcalloutng: 2013-02-19 18:22:25 +00:00
de The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
digi
dpms
dpt Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCI 2013-08-12 23:30:01 +00:00
drm Replace kernel virtual address space allocation with vmem. This provides 2013-08-07 06:21:20 +00:00
drm2 drm: Support DRM_CAP_TIMESTAMP_MONOTONIC capability 2013-11-17 16:07:52 +00:00
e1000 Fix several issues with the busdma(9) KPI use in the e1000 drivers. 2013-11-02 09:16:11 +00:00
ed The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
eisa
en The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
ep - Provide necessary includes. 2013-10-29 11:17:49 +00:00
esp
et The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
etherswitch Fix the build of TP-WN1043ND kernel. Provide necessary includes and remove 2013-10-29 15:45:11 +00:00
ex The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
exca
fatm The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
fb Reduce diff against stable/9 slightly. 2013-08-28 20:10:56 +00:00
fdc Reimplement the FDOPT_NOERROR feature that was kicked out in r134081. 2013-08-26 21:15:50 +00:00
fdt Teach nexus(4) about Open Firmware (e.g. FDT) on ARM and MIPS, retiring 2013-11-05 13:48:34 +00:00
fe The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
ffec Switch to using ofw_bus_search_compatible() table-driven compat lookup. 2013-10-26 15:15:31 +00:00
filemon Change the cap_rights_t type from uint64_t to a structure that we can extend 2013-09-05 00:09:56 +00:00
firewire Adjust various SCSI drivers to handle either a 32-bit or 64-bit lun_id_t, 2013-10-30 14:04:47 +00:00
flash Fix a few typos for s25fl types. 2013-08-28 14:49:36 +00:00
fxp The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
gem The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
glxiic
glxsb Snapshot. This passes the build test, but has not yet been finished or debugged. 2013-10-04 06:55:06 +00:00
gpio Fix gpiobus to return BUS_PROBE_GENERIC insted of BUS_PROBE_SPECIFIC (0) so 2013-11-12 16:08:23 +00:00
gxemul More BUS_PROBE_NOWILDCARD sweeping. Some devices here (if_ath_ahb and siba) 2013-10-29 14:19:42 +00:00
hatm The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
hifn Snapshot. This passes the build test, but has not yet been finished or debugged. 2013-10-04 06:55:06 +00:00
hme Provide necessary includes. 2013-10-28 23:34:05 +00:00
hpt27xx Re-do r255853. Along with adding back the API/ABI changes from the 2013-09-25 17:16:21 +00:00
hptiop Adjust various SCSI drivers to handle either a 32-bit or 64-bit lun_id_t, 2013-10-30 14:04:47 +00:00
hptmv Re-do r255853. Along with adding back the API/ABI changes from the 2013-09-25 17:16:21 +00:00
hptnr Re-do r255853. Along with adding back the API/ABI changes from the 2013-09-25 17:16:21 +00:00
hptrr Re-do r255853. Along with adding back the API/ABI changes from the 2013-09-25 17:16:21 +00:00
hwpmc Remove local change leftover, this should never have been part of 2013-09-20 23:10:52 +00:00
hyperv Don't reference pointer before testing whether it is 2013-10-29 22:42:30 +00:00
ic Wait for DesignWare UART transfers completion before accessing line control 2013-10-26 17:24:59 +00:00
ichsmb Add ID for Intel Avoton SMBus controller. 2013-11-15 13:19:15 +00:00
ichwd Add new Coleto Creek device support: SATA, SMBus, and Watchdog devices. 2013-07-19 21:37:40 +00:00
ida
ie - Provide necessary includes. 2013-10-29 11:17:49 +00:00
ieee488
if_ndis Include necessary headers that now are available due to pollution 2013-10-28 07:29:16 +00:00
iicbus The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
iir Re-do r255853. Along with adding back the API/ABI changes from the 2013-09-25 17:16:21 +00:00
io
ipmi Provide a crutch that prevents watchdog to interrupt dumping 2013-10-31 05:13:53 +00:00
ips Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCI 2013-08-12 23:30:01 +00:00
ipw The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
isci Improve logging around some of the isci(4) reset and recovery paths. 2013-10-09 19:37:41 +00:00
iscsi Don't spin with mutex hold when there is not enough room in the send socket 2013-10-24 15:54:06 +00:00
iscsi_initiator Adjust various SCSI drivers to handle either a 32-bit or 64-bit lun_id_t, 2013-10-30 14:04:47 +00:00
isp Use relaxed (write-only) memory barriers when writing some of queue index 2013-11-10 23:48:16 +00:00
ispfw
iwi The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
iwn Centrino Wireless-N 2200 does not have bluetooth support. 2013-11-16 04:29:02 +00:00
ixgb The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
ixgbe - Fix link loss on vlan reconfiguration. 2013-11-05 09:46:01 +00:00
jme The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
joy
kbd
kbdmux
ksyms
le Provide necessary includes. 2013-10-28 23:34:05 +00:00
led MFcalloutng: 2013-02-19 19:25:50 +00:00
lge The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
lindev
lmc Quiesce warning -Wmissing-variable-declarations from buildworld, which is 2013-10-28 02:36:34 +00:00
malo Include necessary headers that now are available due to pollution 2013-10-28 07:29:16 +00:00
mbox Add a mailbox interface. 2013-07-07 19:47:22 +00:00
mc146818
mca
mcd The other giant locked storage drivers have removed splbio(), for the 2013-02-21 02:34:04 +00:00
md Merge GEOM direct dispatch changes from the projects/camlock branch. 2013-10-22 08:22:19 +00:00
mem Add new privileges, PRIV_KMEM_READ and PRIV_KMEM_WRITE, used in opening 2013-07-05 21:31:16 +00:00
mfi Add PCI device ID for MegaRAID Invader cards. This was the only 2013-09-25 15:48:32 +00:00
mge The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
mii Add definition for the Atheros 8021 gigabit PHY. 2013-11-06 16:28:26 +00:00
mk48txx
mlx
mly Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCI 2013-08-12 23:30:01 +00:00
mmc Don't give up so easily on failure of CMD55 to put the card into app-cmd 2013-08-23 15:07:54 +00:00
mn Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCI 2013-08-12 23:30:01 +00:00
mps Adjust various SCSI drivers to handle either a 32-bit or 64-bit lun_id_t, 2013-10-30 14:04:47 +00:00
mpt Adjust various SCSI drivers to handle either a 32-bit or 64-bit lun_id_t, 2013-10-30 14:04:47 +00:00
mse
msk Perform media change after setting IFF_DRV_RUNNING flag. Without it, 2013-11-01 05:03:47 +00:00
mvs Run mvs SATA driver on Armada XP instead of old mv_sata 2013-10-28 07:18:24 +00:00
mwl The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
mxge The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
my The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
nand Split raw reading/programming into smaller chunks to avoid allocating too 2013-11-20 11:10:23 +00:00
ncv
netmap remove a debugging message 2013-11-06 19:18:39 +00:00
nfe The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
nge The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
nmdm
nsp Fxi a bunch of typos. 2013-05-10 16:41:26 +00:00
ntb Remove contractions. 2013-09-05 23:14:27 +00:00
null
nvd Add driver-assisted striping for upcoming Intel NVMe controllers that can 2013-10-08 15:44:04 +00:00
nve The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
nvme Create a unique unit number for each controller and namespace cdev. 2013-11-01 23:30:54 +00:00
nvram
nvram2env
nxge The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
oce The previous code makes a memory allocation in size of 2013-11-14 18:53:17 +00:00
ofw Fix a typo on a comment in ofw_bus_if.m, the default method will return -1 2013-11-12 13:44:50 +00:00
patm The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
pbio
pccard
pccbb Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCI 2013-08-12 23:30:01 +00:00
pcf
pci Make pci_get_dma_tag() non-static. Since the function is only 2013-10-24 20:29:29 +00:00
pcn The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
pdq - Provide necessary includes. 2013-10-29 11:17:49 +00:00
powermac_nvram
ppbus The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
ppc Add support for SIIG x1 pci-e single parallel port card (JJ-E01211-S1) 2013-11-09 08:27:55 +00:00
pst Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCI 2013-08-12 23:30:01 +00:00
pty
puc Clean up -Wheader-guard warnings. 2013-06-17 20:11:04 +00:00
qlxgb Include necessary headers that now are available due to pollution 2013-10-28 07:29:16 +00:00
qlxgbe ql_hw.[c,h]: set minimum thresholds on pkt size for lro path. 2013-11-15 01:26:24 +00:00
qlxge Validate the buffer and its length passed to QLA_MPI_DUMP. 2013-11-15 01:44:58 +00:00
quicc
ral The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
random Convert the random entropy harvesting code to use a const void * pointer 2013-11-01 20:53:49 +00:00
rc
re update to the latest netmap snapshot. 2013-11-01 21:21:14 +00:00
rndtest Snapshot. This passes the build test, but has not yet been finished or debugged. 2013-10-04 06:55:06 +00:00
rp Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCI 2013-08-12 23:30:01 +00:00
rt More BUS_PROBE_NOWILDCARD sweeping. Some devices here (if_ath_ahb and siba) 2013-10-29 14:19:42 +00:00
safe Snapshot. This passes the build test, but has not yet been finished or debugged. 2013-10-04 06:55:06 +00:00
sbni - Provide necessary includes. 2013-10-29 11:17:49 +00:00
scc Make r253899 compile. 2013-08-03 21:24:52 +00:00
scd
sdhci Style changes and typos fixed. 2013-08-19 05:48:42 +00:00
sec
sf The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
sfxge Provide includes that are needed in these files, and before were read 2013-10-26 18:18:50 +00:00
sge The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
si Remove incorrect comment about splsoftclock. 2013-02-21 07:19:50 +00:00
siba Include necessary headers that now are available due to pollution 2013-10-28 07:29:16 +00:00
siis Merge CAM locking changes from the projects/camlock branch to radically 2013-10-21 12:00:26 +00:00
sio
sis The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
sk The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
smbus
smc The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
sn Provide includes that are needed in these files, and before were read 2013-10-26 18:18:50 +00:00
snc Include the now missing headers after untangling if.h and if_var.h. 2013-10-30 17:55:31 +00:00
snp
sound Add some more Intel HDA controller IDs and rename HDMI CODEC to Haswell. 2013-11-15 13:55:55 +00:00
speaker
spibus Add an OFW SPI compatible bus. Fix the spibus probe to return 2013-10-24 16:56:38 +00:00
ste The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
stg Fxi a bunch of typos. 2013-05-10 16:41:26 +00:00
stge The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
streams Restore the previous sendfile(2) behaviour on the block devices. 2013-08-16 14:22:20 +00:00
sym Update PCI drivers to no longer look at the MEMIO-enabled bit in the PCI 2013-08-12 23:30:01 +00:00
syscons Snapshot. This passes the build test, but has not yet been finished or debugged. 2013-10-04 06:55:06 +00:00
tdfx Change the cap_rights_t type from uint64_t to a structure that we can extend 2013-09-05 00:09:56 +00:00
terasic Hints-only devices should have BUS_PROBE_NOWILDCARD set. We probably need 2013-10-29 13:43:09 +00:00
ti The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
tl The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
tpm
trm
tsec Make tsec work with the device tree present on the RB800. The previous code 2013-11-11 15:43:21 +00:00
twa Adjust various SCSI drivers to handle either a 32-bit or 64-bit lun_id_t, 2013-10-30 14:04:47 +00:00
twe
tws Re-do r255853. Along with adding back the API/ABI changes from the 2013-09-25 17:16:21 +00:00
tx The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
txp The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
uart Add support for Freescale Vybrid Family VF600 heterogeneous 2013-11-12 18:02:56 +00:00
ubsec Snapshot. This passes the build test, but has not yet been finished or debugged. 2013-10-04 06:55:06 +00:00
usb Add alternate ID for Novatel MiFi 2200 CDMA, which is used by my 2013-11-20 02:16:47 +00:00
utopia
vge The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
viawd
virtio Include necessary headers that now are available due to pollution 2013-10-28 07:29:16 +00:00
vkbd - Use make_dev_credf(MAKEDEV_REF) instead of the race-prone make_dev()+ 2013-09-07 13:45:44 +00:00
vmware/vmxnet3 Include necessary headers that now are available due to pollution 2013-10-28 07:29:16 +00:00
vr The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
vte The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
vx - Provide necessary includes. 2013-10-29 11:17:49 +00:00
vxge Clean up -Wheader-guard warnings. 2013-06-17 20:11:04 +00:00
watchdog Fix watchdog pretimeout. 2013-07-27 20:47:01 +00:00
wb The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
wbwd
wds Adjust various SCSI drivers to handle either a 32-bit or 64-bit lun_id_t, 2013-10-30 14:04:47 +00:00
wi The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
wl The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
wpi The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
wtap
xe Provide includes that are needed in these files, and before were read 2013-10-26 18:18:50 +00:00
xen Improve robustness of the Xen balloon driver. 2013-11-15 16:35:28 +00:00
xl The MII layer shouldn't care about administrative status of an 2013-10-26 18:40:17 +00:00