HardenedBSD/sys
Justin T. Gibbs 70351c9a14 Store a pointer to our softc in the kernel's SCB structure. In the
past we stored this data in the CCB and attained the CCB via a pointer
in the SCB.  In ahc_timeout(), however, the timedout SCB may have already
been completed (inherent race), meaning that the CCB could have been recycled,
and the ahc pointer reset.

Clean up the logic in ahc_search_qinfifo that deals with the busy device
table.  For some reason it assumed that the only valid time to search
to see if additional lun entries should be checked was if lun 0 matched.
Now we properly itterate through the necessary luns.  The busy device
table is used to detect invalid reselections, so a device would have had
to perform an unexpected reselection for this to cause problems.  Further,
all luns are collapsed to a single entry unless we have external ram
with large SCBs (3940AU models) so the chance of this happening was
rather remote.

Clean up the logic for dealing with the untagged queues.  We now set a
flag in the SCB that indicates that it is on the untagged queue instead
of inferring this from the type and setup of the CCB pased into us by
CAM.

In ahc_timeout(), don't print the path of the SCB until the controller
is paused and we are sure that it has not completed yet.  This, in
conjunction with referencing the ahc pointer in the SCB rather than
the CCB in the SCB avoids panics in the case of a timedout scb completing
just before the timeout handler runs.  This turns out to be guaranteed
if interrupt delivery is failing, as we run our interrupt handler to
flush any "just missed events" when a timeout occurs.  Mention the
likelyhood of broken interrupts if a timedout SCB is completed by
our call to ahc_intr().
2000-10-11 23:46:34 +00:00
..
alpha kmem transfers were being double-counted due to a missing continue. 2000-10-11 01:01:54 +00:00
amd64 When testing for PCI bus overlap with another enumerator, make sure we 2000-10-11 23:03:11 +00:00
boot
cam Add a quirk entry for the USB Sony DSC drive. 2000-10-10 13:12:11 +00:00
coda
compat Mark directories as directories, not as regular files. 2000-10-10 12:32:44 +00:00
compile
conf correct "device iwic0" to "device iwic" 2000-10-10 14:23:04 +00:00
contrib/dev o Change TX_BUFFER_LEN from 512 to 2048. 2000-10-10 00:54:02 +00:00
crypto Fix broken const'ness in declaration of sha1_loop(). 2000-10-09 18:49:14 +00:00
ddb
dev Store a pointer to our softc in the kernel's SCB structure. In the 2000-10-11 23:46:34 +00:00
fs o Move from Alfred Perstein's "exclusion" technique of handling special 2000-10-09 20:06:13 +00:00
geom
gnu Blow away the v_specmountpoint define, replacing it with what it was 2000-10-09 17:31:39 +00:00
i4b fix conflicting types for ng_ing_rcvmsg() and ng_ing_rcvdata(). 2000-10-10 15:22:00 +00:00
i386 When testing for PCI bus overlap with another enumerator, make sure we 2000-10-11 23:03:11 +00:00
ia64 * Add rudimentary DDB support (no kgdb, no backtrace, no single step). 2000-10-10 14:57:10 +00:00
isa Add MAE0021 - Jetstream Int V.90 56k Voice Series 2. 2000-10-10 10:06:26 +00:00
isofs/cd9660 Blow away the v_specmountpoint define, replacing it with what it was 2000-10-09 17:31:39 +00:00
kern Blow away the v_specmountpoint define, replacing it with what it was 2000-10-09 17:31:39 +00:00
libkern
miscfs o Move from Alfred Perstein's "exclusion" technique of handling special 2000-10-09 20:06:13 +00:00
modules
msdosfs Blow away the v_specmountpoint define, replacing it with what it was 2000-10-09 17:31:39 +00:00
net Don't make_dev() in bpfopen() unless we need to. 2000-10-09 14:19:09 +00:00
netatalk
netatm
netgraph Calling untimeout(9) leads to a race window where memory could be leaked. 2000-10-11 20:29:12 +00:00
netinet
netinet6 Fix broken const'ness in declaration of sha1_loop(). 2000-10-09 18:49:14 +00:00
netipx
netkey
netnatm
netncp
netns
nfs
nfsclient
nfsserver
ntfs Blow away the v_specmountpoint define, replacing it with what it was 2000-10-09 17:31:39 +00:00
nwfs
pc98
pccard
pci
posix4
powerpc
rpc
sys Blow away the v_specmountpoint define, replacing it with what it was 2000-10-09 17:31:39 +00:00
tools
ufs o Sanity check was inverted, resulting in a possible spurious panic 2000-10-09 20:04:39 +00:00
vm
Makefile