lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6f75ef86-29fd-41a1-95ba-f42f7c3bd6ce@redhat.com>
Date: Wed, 30 Apr 2025 23:48:57 +0200
From: David Hildenbrand <david@...hat.com>
To: "Vishal Moola (Oracle)" <vishal.moola@...il.com>, linux-mm@...ck.org
Cc: linux-kernel@...r.kernel.org, Vivek Kasireddy
 <vivek.kasireddy@...el.com>, Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH 1/2] mm/gup: Remove unnecessary check in
 memfd_pin_folios()

On 30.04.25 03:00, Vishal Moola (Oracle) wrote:
> Commit 89c1905d9c14 ("mm/gup: introduce memfd_pin_folios() for pinning memfd folios")
> checks if filemap_get_folios_contig() returned duplicate folios to
> prevent multiple attempts at pinning the same folio.
> 
> Commit 8ab1b1602396 ("mm: fix filemap_get_folios_contig returning batches of identical folios")
> ensures that filemap_get_folios_contig() returns a batch of distinct folios.
> 
> We can remove the duplicate folio check to simplify the code and save
> 58 bytes of text.
> 
> Signed-off-by: Vishal Moola (Oracle) <vishal.moola@...il.com>
> ---

Acked-by: David Hildenbrand <david@...hat.com>

-- 
Cheers,

David / dhildenb


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ