Bryan> Why would you not want accesses to explode? Exploding Bryan> seems like the right behaviour to me, since there's no Bryan> hardware for userspace to talk to any more. Oh yeah... but getting rid of the mapping so userspace gets a segfault might be a good idea too. However, leaving the old PCI mapping there seems rather risky to me: I think it's entirely possible that accesses to that area after the device is gone could trigger machine checks or worse. So what's the right way for a driver to get rid of a remap_pfn_range() mapping into userspace? - R. - 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/
- Follow-Ups:
- Re: Remapping pages mapped to userspace
- From: Alan Cox <alan@lxorguk.ukuu.org.uk>
- Re: Remapping pages mapped to userspace
- References:
- Re: [PATCH 10 of 20] ipath - support for userspace apps using core driver
- From: Roland Dreier <rdreier@cisco.com>
- Re: [PATCH 10 of 20] ipath - support for userspace apps using core driver
- From: "Bryan O'Sullivan" <bos@pathscale.com>
- Re: [PATCH 10 of 20] ipath - support for userspace apps using core driver
- From: Roland Dreier <rdreier@cisco.com>
- Re: [PATCH 10 of 20] ipath - support for userspace apps using core driver
- From: "Bryan O'Sullivan" <bos@pathscale.com>
- Re: [PATCH 10 of 20] ipath - support for userspace apps using core driver
- From: Andrew Morton <akpm@osdl.org>
- Re: [PATCH 10 of 20] ipath - support for userspace apps using core driver
- From: "Bryan O'Sullivan" <bos@pathscale.com>
- Re: [PATCH 10 of 20] ipath - support for userspace apps using core driver
- From: Roland Dreier <rdreier@cisco.com>
- Re: [PATCH 10 of 20] ipath - support for userspace apps using core driver
- From: "Bryan O'Sullivan" <bos@pathscale.com>
- Re: [PATCH 10 of 20] ipath - support for userspace apps using core driver
- From: Roland Dreier <rdreier@cisco.com>
- Re: [PATCH 10 of 20] ipath - support for userspace apps using core driver
- From: "Bryan O'Sullivan" <bos@pathscale.com>
- Re: [PATCH 10 of 20] ipath - support for userspace apps using core driver
- From: Andrew Morton <akpm@osdl.org>
- Re: [PATCH 10 of 20] ipath - support for userspace apps using core driver
- From: "Bryan O'Sullivan" <bos@pathscale.com>
- Re: [PATCH 10 of 20] ipath - support for userspace apps using core driver
- From: Andrew Morton <akpm@osdl.org>
- Re: [PATCH 10 of 20] ipath - support for userspace apps using core driver
- From: Hugh Dickins <hugh@veritas.com>
- Remapping pages mapped to userspace (was: [PATCH 10 of 20] ipath - support for userspace apps using core driver)
- From: Roland Dreier <rdreier@cisco.com>
- Re: Remapping pages mapped to userspace (was: [PATCH 10 of 20] ipath - support for userspace apps using core driver)
- From: "Bryan O'Sullivan" <bos@pathscale.com>
- Re: [PATCH 10 of 20] ipath - support for userspace apps using core driver
- Prev by Date: Re: [PATCH] unshare: Cleanup up the sys_unshare interface before we are committed.
- Next by Date: Re: [PATCH] (-mm) drivers/pci/msi: explicit declaration of msi_register
- Previous by thread: Re: Remapping pages mapped to userspace
- Next by thread: Re: Remapping pages mapped to userspace
- Index(es):
![]() |