]> www.infradead.org Git - users/dwmw2/linux.git/commit
mm/rmap: sanity check that zeropages are not passed to RMAP
authorDavid Hildenbrand <david@redhat.com>
Wed, 22 May 2024 12:57:13 +0000 (14:57 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 4 Jul 2024 02:29:56 +0000 (19:29 -0700)
commit6ad28e7e52e2bae76b1d3eb4466999d04d50db92
tree7b0c5f9a48051272b7f3486092bef1dae0646353
parentfce831c92092ad898d559e8657ec3e84e281160b
mm/rmap: sanity check that zeropages are not passed to RMAP

Using insert_page() we might have previously ended up passing the zeropage
into rmap code.  Make sure that won't happen again.

Note that we won't check the huge zeropage for now, which might still end
up in RMAP code.

Link: https://lkml.kernel.org/r/20240522125713.775114-4-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Vincent Donnefort <vdonnefort@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/rmap.h