On Fri, Oct 09, 2020 at 09:59:31AM +0200, Daniel Vetter wrote: > We want all iomem mmaps to consistently revoke ptes when the kernel > takes over and CONFIG_IO_STRICT_DEVMEM is enabled. This includes the > pci bar mmaps available through procfs and sysfs, which currently do > not revoke mappings. > > To prepare for this, move the code from the /dev/kmem driver to > kernel/resource.c. > > Signed-off-by: Daniel Vetter <[email protected]> > Cc: Jason Gunthorpe <[email protected]> > Cc: Kees Cook <[email protected]> > Cc: Dan Williams <[email protected]> > Cc: Andrew Morton <[email protected]> > Cc: John Hubbard <[email protected]> > Cc: Jérôme Glisse <[email protected]> > Cc: Jan Kara <[email protected]> > Cc: Dan Williams <[email protected]> > Cc: [email protected] > Cc: [email protected] > Cc: [email protected] > Cc: [email protected] > Cc: Arnd Bergmann <[email protected]> > Cc: Greg Kroah-Hartman <[email protected]> > Cc: Daniel Vetter <[email protected]> > Cc: David Hildenbrand <[email protected]> > Cc: "Rafael J. Wysocki" <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>

