[PATCH v5 16/21] mm/mmap: Use vms accounted pages in mmap_region()
Paul Moore
paul at paul-moore.com
Wed Jul 24 20:23:16 UTC 2024
On Wed, Jul 17, 2024 at 4:11 PM Liam R. Howlett <Liam.Howlett at oracle.com> wrote:
>
> From: "Liam R. Howlett" <Liam.Howlett at Oracle.com>
>
> Change from nr_pages variable to vms.nr_accounted for the charged pages
> calculation. This is necessary for a future patch.
>
> This also avoids checking security_vm_enough_memory_mm() if the amount
> of memory won't change.
>
> Signed-off-by: Liam R. Howlett <Liam.Howlett at Oracle.com>
> Cc: Kees Cook <kees at kernel.org>
> Cc: linux-security-module at vger.kernel.org
> Reviewed-by: Kees Cook <kees at kernel.org>
> Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes at oracle.com>
> Reviewed-by: Suren Baghdasaryan <surenb at google.com>
> ---
> mm/mmap.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
Acked-by: Paul Moore <paul at paul-moore.com> (LSM)
--
paul-moore.com
More information about the Linux-security-module-archive
mailing list