mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-07-14 21:43:02 +02:00
The backport of commit091c1dd2d4("mm/mempolicy: fix migrate_to_node() assuming there is at least one VMA in a MM") contains an error: migrate_to_node() does not lock the mmap_lock itself, that is handled by the caller instead. So let's drop the wrong mmap_read_unlock(). Fortunately, this path is very hard to hit in practice. Fixes:a13b2b9b0b("mm/mempolicy: fix migrate_to_node() assuming there is at least one VMA in a MM") Reported-by: Li Ying <liying3@sungrowpower.com> Closes: https://lore.kernel.org/r/aaZgUNxAyKC2IwuG@casper.infradead.org Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Matthew Wilcox <willy@infradead.org> Cc: Christoph Lameter <cl@linux.com> Cc: <stable@vger.kernel.org> Reviewed-by: Gregory Price <gourry@gourry.net> Reviewed-by: Liam R. Howlett <Liam.Howlett@Oracle.com> Signed-off-by: David Hildenbrand (Arm) <david@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>