Files
linux/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
..
2009-04-03 09:23:11 -05:00
2009-04-03 09:23:11 -05:00