opnsense-src/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 Remove references to MAKEDEV(8) 2010-11-15 05:25:51 +00:00
firewire.c FireWire: Don't allow a tlabel to reference an xfer after free. 2013-04-08 23:16:42 +00:00
firewire.h Introduce 1394a-2000 extended PHY Self ID packets. 2009-02-17 19:37:04 +00:00
firewire_phy.h
firewirereg.h Protect transaction labels by its own lock to reduce lock contention. 2007-07-20 03:42:57 +00:00
fwcrom.c Revert previous commit and add myself to the list of people who should 2009-09-08 13:19:05 +00:00
fwdev.c Update d_mmap() to accept vm_ooffset_t and vm_memattr_t. 2009-12-29 21:51:28 +00:00
fwdma.c MFp4: MPSAFE firewire stack. 2007-06-06 14:31:36 +00:00
fwdma.h
fwmem.c Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs. 2011-11-07 15:43:11 +00:00
fwmem.h
fwohci.c Mechanically substitute flags from historic mbuf allocator with 2012-12-04 09:32:43 +00:00
fwohci_pci.c - There's no need to overwrite the default device method with the default 2011-11-22 21:28:20 +00:00
fwohcireg.h Update comments around various structs. 2009-02-12 03:05:42 +00:00
fwohcivar.h Delete fwohci_filt() as it is now unused 2009-02-03 17:13:37 +00:00
fwphyreg.h Update comments around various structs. 2009-02-12 03:05:42 +00:00
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 MFp4: MPSAFE firewire stack. 2007-06-06 14:31:36 +00:00
if_fwip.c Mechanically substitute flags from historic mbuf allocator with 2012-12-04 09:32:43 +00:00
if_fwipvar.h MFp4: MPSAFE firewire stack. 2007-06-06 14:31:36 +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 Minor updates as a precursor to fixing sbp_targ 2009-04-07 02:33:46 +00:00
sbp_targ.c Fix an issue that caused the kernel to panic inside CTL when trying 2012-06-26 14:51:35 +00:00