linux-uconsole/drivers/scsi/aacraid
Julia Lawall de40885b3c SCSI: aacraid: Eliminate use after free
commit 8a52da632c upstream.

The debugging code using the freed structure is moved before the kfree.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@free@
expression E;
position p;
@@
kfree@p(E)

@@
expression free.E, subE<=free.E, E1;
position free.p;
@@

  kfree@p(E)
  ...
(
  subE = E1
|
* E
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-08-02 10:20:50 -07:00
..
aachba.c Replace all DMA_nBIT_MASK macro with DMA_BIT_MASK(n) 2009-04-13 15:04:33 -07:00
aacraid.h [SCSI] aacraid driver update 2009-04-03 09:23:11 -05:00
commctrl.c SCSI: aacraid: Eliminate use after free 2010-08-02 10:20:50 -07:00
comminit.c [SCSI] aacraid driver update 2009-04-03 09:23:11 -05:00
commsup.c dma-mapping: replace all DMA_31BIT_MASK macro with DMA_BIT_MASK(31) 2009-04-07 08:31:11 -07:00
dpcsup.c [SCSI] Clean up my email address and use a single standard address for everything 2008-12-29 11:24:12 -06:00
linit.c dma-mapping: replace all DMA_31BIT_MASK macro with DMA_BIT_MASK(31) 2009-04-07 08:31:11 -07:00
Makefile [SCSI] aacraid: Begin adding support for new adapter type 2007-01-27 09:27:31 -06:00
nark.c [SCSI] aacraid: draw line in sand, sundry cleanup and version update 2007-07-27 09:13:28 -04:00
rkt.c [SCSI] Clean up my email address and use a single standard address for everything 2008-12-29 11:24:12 -06:00
rx.c [SCSI] Clean up my email address and use a single standard address for everything 2008-12-29 11:24:12 -06:00
sa.c [SCSI] Clean up my email address and use a single standard address for everything 2008-12-29 11:24:12 -06:00
TODO