Re: [PATCH] do not try to sync identity map for non-mapped pages

Borislav Petkov
2013-04-07T17:25:55Z

On Sun, Apr 07, 2013 at 09:34:07AM -0700, H. Peter Anvin wrote:
> We shouldn't, no. /dev/mem really needs to be fixed along a bunch of
> axes. Yes, it is privileged and extra creepy, but it should either
> work or it should fail cleanly.

Can't we filter out accesses through /dev/mem and not BUG_ON in
__phys_addr() if they come through /dev/mem? Simply fail cleanly. No
idea whether we'll break something still reading /dev/mem though.

--
Regards/Gruss,
Boris.

Sent from a fat crate under my desk. Formatting is fine.
--