lkml.org 
[lkml]   [2006]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Remapping pages mapped to userspace (was: [PATCH 10 of 20] ipath - support for userspace apps using core driver)
From
Date
On Fri, 2006-03-17 at 17:13 +0000, Hugh Dickins wrote:

> You seem to be asking to "revoke" an mmap:

Yes. We'd like this ability, too.

> Though it looks like subsequent userspace accesses will then go to
> do_anonymous_page, giving ZERO_PAGE to read faults or a fresh anon
> page to write faults: I think I'd prefer it if pte_none accesses in
> a VM_PFNMAP area gave SIGBUS, but unsure if we can change that now.

It would be unfortunate if userspace were spinning on a chip register,
waiting for the register to transition from zero to non-zero, and we
replaced that mapping with an anonymous page. In that case, userspace
could potentially spin forever, having no way to detect the demise of
the device.

<b

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

\
 
 \ /
  Last update: 2006-03-17 18:19    [W:0.143 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site