RHEL-kernel-ark/mm/kmsan
Guo Weikang c6f239796b mm/memblock: add memblock_alloc_or_panic interface
Before SLUB initialization, various subsystems used memblock_alloc to
allocate memory.  In most cases, when memory allocation fails, an
immediate panic is required.  To simplify this behavior and reduce
repetitive checks, introduce `memblock_alloc_or_panic`.  This function
ensures that memory allocation failures result in a panic automatically,
improving code readability and consistency across subsystems that require
this behavior.

[guoweikang.kernel@gmail.com: arch/s390: save_area_alloc default failure behavior changed to panic]
  Link: https://lkml.kernel.org/r/20250109033136.2845676-1-guoweikang.kernel@gmail.com
  Link: https://lore.kernel.org/lkml/Z2fknmnNtiZbCc7x@kernel.org/
Link: https://lkml.kernel.org/r/20250102072528.650926-1-guoweikang.kernel@gmail.com
Signed-off-by: Guo Weikang <guoweikang.kernel@gmail.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>	[m68k]
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>	[s390]
Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-01-25 20:22:38 -08:00
..
Makefile kmsan: disable ftrace in kmsan core code 2023-02-20 12:46:16 -08:00
core.c kmsan: add missing __user tags 2024-07-03 19:30:26 -07:00
hooks.c kmsan: do not pass NULL pointers as 0 2024-07-03 19:30:26 -07:00
init.c kmsan: accept ranges starting with 0 on s390 2024-07-03 19:30:23 -07:00
instrumentation.c kmsan: do not pass NULL pointers as 0 2024-07-03 19:30:26 -07:00
kmsan.h kmsan: add missing __user tags 2024-07-03 19:30:26 -07:00
kmsan_test.c mm, kasan, kmsan: instrument copy_from/to_kernel_nofault 2024-11-06 20:11:14 -08:00
report.c kmsan: add missing __user tags 2024-07-03 19:30:26 -07:00
shadow.c mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00