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 <daniel.vet...@intel.com> > Cc: Jason Gunthorpe <j...@ziepe.ca> > Cc: Kees Cook <keesc...@chromium.org> > Cc: Dan Williams <dan.j.willi...@intel.com> > Cc: Andrew Morton <a...@linux-foundation.org> > Cc: John Hubbard <jhubb...@nvidia.com> > Cc: Jérôme Glisse <jgli...@redhat.com> > Cc: Jan Kara <j...@suse.cz> > Cc: Dan Williams <dan.j.willi...@intel.com> > Cc: linux...@kvack.org > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-samsung-...@vger.kernel.org > Cc: linux-me...@vger.kernel.org > Cc: Arnd Bergmann <a...@arndb.de> > Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> > Cc: Daniel Vetter <daniel.vet...@ffwll.ch> > Cc: David Hildenbrand <da...@redhat.com> > Cc: "Rafael J. Wysocki" <rafael.j.wyso...@intel.com>
Reviewed-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>