Re: fanotify use after free.
From: Linus Torvalds
Date: Wed Jan 22 2014 - 19:09:01 EST
On Wed, Jan 22, 2014 at 3:36 PM, Jan Kara <jack@xxxxxxx> wrote:
> But refcounting seems like an overkill for this - there is exactly one
> fanotify_response_event structure iff it is a permission event. So
> something like the (completely untested) attached patch should fix the
> problem. But I agree it's a bit ugly so we might want something different.
> I'll try to think about something better tomorrow.
Ok, In the meantime, Dave, can you verify whether this hacky patch
fixes your problem?
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/