Re: [PATCH v2] fs: Replace kmap{,_atomic}() with kmap_local_page()

From: Kees Cook
Date: Tue Aug 16 2022 - 15:13:27 EST


On Wed, 3 Aug 2022 20:28:56 +0200, Fabio M. De Francesco wrote:
> The use of kmap() and kmap_atomic() are being deprecated in favor of
> kmap_local_page().
>
> There are two main problems with kmap(): (1) It comes with an overhead as
> mapping space is restricted and protected by a global lock for
> synchronization and (2) it also requires global TLB invalidation when the
> kmap’s pool wraps and it might block when the mapping space is fully
> utilized until a slot becomes available.
>
> [...]

Applied to for-next/execve, thanks!

[1/1] fs: Replace kmap{,_atomic}() with kmap_local_page()
https://git.kernel.org/kees/c/3a608cfee97e

--
Kees Cook