[PATCH 0/2] reposition free_irq to avoid access to invalid data

From: Julia Lawall
Date: Mon Jan 07 2013 - 04:00:19 EST

The data referenced by an interrupt handler should not be freed before the
interrupt is ended.

The semantic match that finds this problem is as follows
(http://coccinelle.lip6.fr/). The basic idea behind this semantic match is
to find cases where the order of the call to free_irq is different than its
order in some error-handling code. This semantic match, however, has a
high rate of false positives, because most of the time the order doesn't
seem to matter.

// <smpl>
@fn exists@
expression list es;
expression a,b;
identifier f;

if (...) {
... when any
... when any
... when any
return ...;

expression list fn.es;
expression fn.a,fn.b;
identifier fn.f;

... when any
// </smpl>

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/