NetBSD/sys/dev/scsipi
tsutsui 92b50ccb27 Don't allocate data buffer on stack in sd_read_capacity().
If data buffer is allocated on stack at the end of CPU cacheline,
the same cacheline region might be accessed via kernel stack even
after bus_dmamap_sync(9) against the data buffer in lower scsi drivers
so that read data via DMA could be lost.

Fixes occasional readdisklabel(9) failure at boot on ews4800mips
with osiop(4) driver and 128byte cacheline.

XXX: Other functions/drivers might have the similar problem.
2007-08-03 13:56:37 +00:00
..
atapi_base.c
atapi_tape.h
atapi_wdc.c Fix for atapi devices that have 32 bit databusses selected. The devices 2007-01-23 20:10:06 +00:00
atapiconf.c
atapiconf.h
cd.c It's not a good idea for device drivers to modify b_flags, as they don't 2007-07-29 12:50:17 +00:00
cdvar.h Replace some uses of lockmgr(). 2007-07-21 19:51:47 +00:00
ch.c Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
files.scsipi
if_se.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
Makefile
scsi_all.h
scsi_base.c
scsi_changer.h
scsi_ctron_ether.h
scsi_disk.h
scsi_iu.h
scsi_message.h
scsi_scanner.h
scsi_spc.h
scsi_tape.h
scsiconf.c Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
scsiconf.h
scsipi_all.h On Christos' request, reinstantiate the packed->__packed__ part of the 2006-12-01 21:36:56 +00:00
scsipi_base.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
scsipi_base.h
scsipi_cd.h On Christos' request, reinstantiate the packed->__packed__ part of the 2006-12-01 21:36:56 +00:00
scsipi_debug.h
scsipi_disk.h Add __attribute__((__packed__)) to all command structures. 2007-07-01 05:17:28 +00:00
scsipi_ioctl.c It's not a good idea for device drivers to modify b_flags, as they don't 2007-07-29 12:50:17 +00:00
scsipi_verbose.c
scsipiconf.c Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
scsipiconf.h Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
sd.c Don't allocate data buffer on stack in sd_read_capacity(). 2007-08-03 13:56:37 +00:00
sdvar.h Merge some of the less invasive changes from the vmlocking branch: 2007-07-09 20:51:58 +00:00
ses.c Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
ses.h
ss_mustek.c Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
ss_mustek.h
ss_scanjet.c
ss.c It's not a good idea for device drivers to modify b_flags, as they don't 2007-07-29 12:50:17 +00:00
ssvar.h
st_atapi.c
st_scsi.c
st.c It's not a good idea for device drivers to modify b_flags, as they don't 2007-07-29 12:50:17 +00:00
stvar.h
uk.c Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00