mm-vmalloc-replace-bug_on-by-warn_on_once.patch removed from -mm tree
The quilt patch titled
Subject: mm: vmalloc: replace BUG_ON() by WARN_ON_ONCE()
has been removed from the -mm tree. Its filename was
mm-vmalloc-replace-bug_on-by-warn_on_once.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: "Uladzislau Rezki (Sony)" <[email protected]>
Subject: mm: vmalloc: replace BUG_ON() by WARN_ON_ONCE()
Date: Thu, 22 Dec 2022 20:00:22 +0100
Currently a vm_unmap_ram() functions triggers a BUG() if an area is not found. Replace it by the WARN_ON_ONCE() error message and keep machine alive instead of stopping it.
The worst case is a memory leaking.
---
mm/vmalloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
mm/vmalloc.c renamed from mm/vmalloc.c~mm-vmalloc-replace-bug_on-by-warn_on_once +3 -1
@@ -2253,7 +2253,9 @@ void vm_unmap_ram(const void *mem, unsig } va =find_unlink_vmap_area (addr); -BUG_ON (!va); +if (WARN_ON_ONCE (!va)) +return ; +debug_check_no_locks_freed ((void *)va->va_start, (va->va_end - va->va_start));free_unmap_vmap_area (va);
_
Patches currently in -mm which might be from [email protected] are