NetBSD/sys
tsutsui 7bb48ed5ab Don't call bus_dmamap_load(9) and bus_dmamap_sync(9) on command xfers
if (AT_READ|AT_WRITE) in ata_c->flags is set but ata_c->bcount is zero.
Someone actually tries to put such a command and it causes
DIAGNOSTIC panic in x86/bus_dma.c:_bus_dmamap_sync().
I think bus_dma(9) API itself may allow calls with mapsize==0
but there are many MD code that asserts offset>=mapsize or len==0.

The problem is reported and fix is confirmed by Takuro KUBOTA
with XEN DOM0 kernel (which has options DIAGNOSTIC).
2011-01-10 11:18:14 +00:00
..
altq
arch fix typo in ioctl definition 2011-01-10 11:13:03 +00:00
coda Abolish the SAVENAME and HASBUF flags. There is now always a buffer, 2010-11-30 10:43:01 +00:00
common/bus_dma
compat Fix the build breakage, at least on amd64 2011-01-04 20:23:40 +00:00
conf reserve a major number for kmixer 2011-01-05 22:35:08 +00:00
crypto
ddb fix extern/static inconsistency 2010-09-13 08:42:04 +00:00
dev Don't call bus_dmamap_load(9) and bus_dmamap_sync(9) on command xfers 2011-01-10 11:18:14 +00:00
dist ip_randomid: make mechanism MP-safe and more modular. 2010-11-05 01:35:57 +00:00
external recognize Radeon HD 4200. This lets radeondrm(4) attach. 2011-01-06 11:07:48 +00:00
fs destroy mutex/cv before freeing the struct holding them, fixes 2011-01-03 13:12:40 +00:00
gdbscripts
ipkdb
kern regen 2011-01-10 04:42:24 +00:00
lib Pacify Clang -Wformat-security. 2011-01-06 02:45:13 +00:00
miscfs Add layer_revoke() that adjusts the lower vnode use count to be at least as 2011-01-10 11:11:03 +00:00
modules Add a dummy-driver for ACPI fans. 2011-01-09 15:12:33 +00:00
net kern/44310: Alexander Nasonov: write to /dev/bpf truncates size_t to int 2011-01-02 21:03:45 +00:00
net80211 From: Anon Ymous 2010-11-03 20:05:21 +00:00
netatalk
netbt upon device initialisation, query and cache the device features, 2010-11-22 19:56:51 +00:00
netinet Back out rev that shouldn't have been committed. 2010-12-13 14:18:50 +00:00
netinet6 Add routines to calculate a checkesum if the driver concludes that the 2010-12-11 22:37:46 +00:00
netipsec Fix ipcomp input counter 2010-09-21 13:41:18 +00:00
netisdn
netiso
netkey fix two bugs in the PFKEY interface: 2010-09-05 06:52:53 +00:00
netmpls
netnatm
netsmb * remove #ifdef nonsense (which caused the lossage in the first place) 2010-12-17 14:27:34 +00:00
nfs Remove remaining references to SAVESTART. 2011-01-02 05:12:33 +00:00
opencrypto Keep condvar wmesg within 8 char limit. 2010-08-11 11:49:09 +00:00
rump regen 2011-01-10 04:42:24 +00:00
secmodel
stand
sys regen 2011-01-10 04:42:24 +00:00
ufs Avoid NULL deref inside a KASSERT, as discussed on tech-kern. 2011-01-05 19:34:27 +00:00
uvm Fix bugs introduced by previous commit; allocated page needs to be bound 2011-01-06 05:51:57 +00:00
Makefile