Re: [patch V4 2/8] mm/highmem: Provide CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP

From: Mel Gorman
Date: Thu Nov 19 2020 - 03:46:06 EST


On Wed, Nov 18, 2020 at 01:13:57PM -0800, Linus Torvalds wrote:
> On Wed, Nov 18, 2020 at 12:58 PM Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
> >
> > Provide CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP which forces the temporary
> > mapping even for lowmem pages. This needs to be a seperate config switch
> > because this only works on architectures which do not have cache aliasing
> > problems.
>
> Very good. And you made sure to have a comment to not enable it for
> production systems.
>
> Hopefully people will even read it ;)
>

And not start thinking it as a security hardening option.

--
Mel Gorman
SUSE Labs