]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/vma: Fix null pointer dereference in vms_abort_munmap_vmas()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 27 Aug 2024 16:46:51 +0000 (12:46 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 27 Aug 2024 16:46:51 +0000 (12:46 -0400)
commit1931b24e8d4c1d3c33e974c8761cb804a4e2e2b7
treef4a2c9b6276f3e35546c0cd2cbc96798fc246768
parent026193ec5e58873dc0da73995884ad8ff5ecfaa0
mm/vma: Fix null pointer dereference in vms_abort_munmap_vmas()

Don't pass a NULL vma to the vma_iter_store(), instead set up the maple
state for the store and do it manually.  vma_iter_clear() cannot be used
as it needs preallocations.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
mm/vma.h