From: Julia Lawall Date: Sat, 15 May 2010 09:46:12 +0000 (+0200) Subject: SCSI: aacraid: Eliminate use after free X-Git-Tag: v2.6.27.49~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cccc4c16363508973bf6197cabd66291d2a3423;p=pandora-kernel.git SCSI: aacraid: Eliminate use after free commit 8a52da632ceb9d8b776494563df579e87b7b586b 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/) // @free@ expression E; position p; @@ kfree@p(E) @@ expression free.E, subE<=free.E, E1; position free.p; @@ kfree@p(E) ... ( subE = E1 | * E ) // Signed-off-by: Julia Lawall Signed-off-by: James Bottomley --- Reading git-diff-tree failed