Re: [PATCH/RFC] Futex mmap_sem deadlock
From: Linus Torvalds
Date: Tue Feb 22 2005 - 17:00:04 EST
On Tue, 22 Feb 2005, Andrew Morton wrote:
>
> However the pte can get unmapped by memory reclaim so we could still take a
> minor fault, and hit the same deadlock, yes?
You _could_ fix that by getting the pagetable spinlock, I guess. Which
check_user_page_readable() assumes you'd be holding anyway (not holding it
would appear to be a bug).
At which point you might as well just walk the tables by hand and just do
the read that way. Of course, then you have virtual aliasing issues etc.
Insane, but possible.
Linus
-
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/