freebsd-nq/sys/dev/firewire
Will Andrews d6738ada26 FireWire: Don't allow a tlabel to reference an xfer after free.
sys/dev/firewire/firewire.c:
- fw_xfer_unload(): Since we are about to free this xfer, call fw_tl_free()
  to remove the xfer from its tlabel's list, if it has a tlabel.
- In every occasion when a xfer is removed from a tlabel's list, reset
  xfer->tl to -1 while holding fc->tlabel_lock, so that the xfer isn't
  mis-identified as belonging to a tlabel.

This doesn't fix all the use-after-free problems for M_FWMEM, but is an
incremental towards that goal.

Reviewed by:	kan, sbruno
Sponsored by:	Spectra Logic
2013-04-08 23:16:42 +00:00
..
00README
firewire_phy.h
firewire.c FireWire: Don't allow a tlabel to reference an xfer after free. 2013-04-08 23:16:42 +00:00
firewire.h
firewirereg.h
fwcrom.c
fwdev.c
fwdma.c
fwdma.h
fwmem.c
fwmem.h
fwohci_pci.c
fwohci.c Mechanically substitute flags from historic mbuf allocator with 2012-12-04 09:32:43 +00:00
fwohcireg.h
fwohcivar.h
fwphyreg.h
iec13213.h
iec68113.h
if_fwe.c Mechanically substitute flags from historic mbuf allocator with 2012-12-04 09:32:43 +00:00
if_fwevar.h
if_fwip.c Mechanically substitute flags from historic mbuf allocator with 2012-12-04 09:32:43 +00:00
if_fwipvar.h
sbp_targ.c Fix an issue that caused the kernel to panic inside CTL when trying 2012-06-26 14:51:35 +00:00
sbp.c bus_dmamap_load_ccb doesn't exist on earlier versions of FreeBSD or 2013-02-21 17:50:21 +00:00
sbp.h