Re: [PATCH] restore protections after forced fault in get_user_pages
From: Linus Torvalds
Date: Mon Feb 02 2004 - 18:11:50 EST
On Mon, 2 Feb 2004, Andrew Morton wrote:
>
> One way to handle that would be to give the `write' arg to
> handle_mm_fault() a third value which means "give us a writeable page, but
> don't make the pte writeable". Maybe that isn't warranted for this special
> case. But it would be better, really.
I agree - it would be a "fault for an exclusive write, but don't do the
writability part". I don't think any of the low-level filesystems would
even know about that flag, since the actual page table accesses are done
by the generic VM.
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/