Commit 509d3f45 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'mm-nonmm-stable-2025-12-06-11-14' of...

Merge tag 'mm-nonmm-stable-2025-12-06-11-14' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

Pull non-MM updates from Andrew Morton:

 - "panic: sys_info: Refactor and fix a potential issue" (Andy Shevchenko)
   fixes a build issue and does some cleanup in ib/sys_info.c

 - "Implement mul_u64_u64_div_u64_roundup()" (David Laight)
   enhances the 64-bit math code on behalf of a PWM driver and beefs up
   the test module for these library functions

 - "scripts/gdb/symbols: make BPF debug info available to GDB" (Ilya Leoshkevich)
   makes BPF symbol names, sizes, and line numbers available to the GDB
   debugger

 - "Enable hung_task and lockup cases to dump system info on demand" (Feng Tang)
   adds a sysctl which can be used to cause additional info dumping when
   the hung-task and lockup detectors fire

 - "lib/base64: add generic encoder/decoder, migrate users" (Kuan-Wei Chiu)
   adds a general base64 encoder/decoder to lib/ and migrates several
   users away from their private implementations

 - "rbree: inline rb_first() and rb_last()" (Eric Dumazet)
   makes TCP a little faster

 - "liveupdate: Rework KHO for in-kernel users" (Pasha Tatashin)
   reworks the KEXEC Handover interfaces in preparation for Live Update
   Orchestrator (LUO), and possibly for other future clients

 - "kho: simplify state machine and enable dynamic updates" (Pasha Tatashin)
   increases the flexibility of KEXEC Handover. Also preparation for LUO

 - "Live Update Orchestrator" (Pasha Tatashin)
   is a major new feature targeted at cloud environments. Quoting the
   cover letter:

      This series introduces the Live Update Orchestrator, a kernel
      subsystem designed to facilitate live kernel updates using a
      kexec-based reboot. This capability is critical for cloud
      environments, allowing hypervisors to be updated with minimal
      downtime for running virtual machines. LUO achieves this by
      preserving the state of selected resources, such as memory,
      devices and their dependencies, across the kernel transition.

      As a key feature, this series includes support for preserving
      memfd file descriptors, which allows critical in-memory data, such
      as guest RAM or any other large memory region, to be maintained in
      RAM across the kexec reboot.

   Mike Rappaport merits a mention here, for his extensive review and
   testing work.

 - "kexec: reorganize kexec and kdump sysfs" (Sourabh Jain)
   moves the kexec and kdump sysfs entries from /sys/kernel/ to
   /sys/kernel/kexec/ and adds back-compatibility symlinks which can
   hopefully be removed one day

 - "kho: fixes for vmalloc restoration" (Mike Rapoport)
   fixes a BUG which was being hit during KHO restoration of vmalloc()
   regions

* tag 'mm-nonmm-stable-2025-12-06-11-14' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm: (139 commits)
  calibrate: update header inclusion
  Reinstate "resource: avoid unnecessary lookups in find_next_iomem_res()"
  vmcoreinfo: track and log recoverable hardware errors
  kho: fix restoring of contiguous ranges of order-0 pages
  kho: kho_restore_vmalloc: fix initialization of pages array
  MAINTAINERS: TPM DEVICE DRIVER: update the W-tag
  init: replace simple_strtoul with kstrtoul to improve lpj_setup
  KHO: fix boot failure due to kmemleak access to non-PRESENT pages
  Documentation/ABI: new kexec and kdump sysfs interface
  Documentation/ABI: mark old kexec sysfs deprecated
  kexec: move sysfs entries to /sys/kernel/kexec
  test_kho: always print restore status
  kho: free chunks using free_page() instead of kfree()
  selftests/liveupdate: add kexec test for multiple and empty sessions
  selftests/liveupdate: add simple kexec-based selftest for LUO
  selftests/liveupdate: add userspace API selftests
  docs: add documentation for memfd preservation via LUO
  mm: memfd_luo: allow preserving memfd
  liveupdate: luo_file: add private argument to store runtime state
  mm: shmem: export some functions to internal.h
  ...
parents 09670b8c aa514a29
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -303,6 +303,7 @@ Hans de Goede <hansg@kernel.org> <hdegoede@redhat.com>
Hans Verkuil <hverkuil@kernel.org> <hverkuil@xs4all.nl>
Hans Verkuil <hverkuil@kernel.org> <hverkuil-cisco@xs4all.nl>
Hans Verkuil <hverkuil@kernel.org> <hansverk@cisco.com>
Hao Ge <hao.ge@linux.dev> <gehao@kylinos.cn>
Harry Yoo <harry.yoo@oracle.com> <42.hyeyoo@gmail.com>
Heiko Carstens <hca@linux.ibm.com> <h.carstens@de.ibm.com>
Heiko Carstens <hca@linux.ibm.com> <heiko.carstens@de.ibm.com>
@@ -503,9 +504,7 @@ Mark Brown <broonie@sirena.org.uk>
Mark Starovoytov <mstarovo@pm.me> <mstarovoitov@marvell.com>
Markus Schneider-Pargmann <msp@baylibre.com> <mpa@pengutronix.de>
Mark Yao <markyao0591@gmail.com> <mark.yao@rock-chips.com>
Martin Kepplinger <martink@posteo.de> <martin.kepplinger@ginzinger.com>
Martin Kepplinger <martink@posteo.de> <martin.kepplinger@puri.sm>
Martin Kepplinger <martink@posteo.de> <martin.kepplinger@theobroma-systems.com>
Martin Kepplinger-Novakovic <martink@posteo.de> <martin.kepplinger-novakovic@ginzinger.com>
Martyna Szapar-Mudlaw <martyna.szapar-mudlaw@linux.intel.com> <martyna.szapar-mudlaw@intel.com>
Mathieu Othacehe <othacehe@gnu.org> <m.othacehe@gmail.com>
Mat Martineau <martineau@kernel.org> <mathew.j.martineau@linux.intel.com>
@@ -856,6 +855,9 @@ Vivien Didelot <vivien.didelot@gmail.com> <vivien.didelot@savoirfairelinux.com>
Vlad Dogaru <ddvlad@gmail.com> <vlad.dogaru@intel.com>
Vladimir Davydov <vdavydov.dev@gmail.com> <vdavydov@parallels.com>
Vladimir Davydov <vdavydov.dev@gmail.com> <vdavydov@virtuozzo.com>
WangYuli <wangyuli@aosc.io> <wangyl5933@chinaunicom.cn>
WangYuli <wangyuli@aosc.io> <wangyuli@deepin.org>
WangYuli <wangyuli@aosc.io> <wangyuli@uniontech.com>
Weiwen Hu <huweiwen@linux.alibaba.com> <sehuww@mail.scut.edu.cn>
WeiXiong Liao <gmpy.liaowx@gmail.com> <liaoweixiong@allwinnertech.com>
Wen Gong <quic_wgong@quicinc.com> <wgong@codeaurora.org>
@@ -867,6 +869,7 @@ Yakir Yang <kuankuan.y@gmail.com> <ykk@rock-chips.com>
Yanteng Si <si.yanteng@linux.dev> <siyanteng@loongson.cn>
Ying Huang <huang.ying.caritas@gmail.com> <ying.huang@intel.com>
Yosry Ahmed <yosry.ahmed@linux.dev> <yosryahmed@google.com>
Yu-Chun Lin <eleanor.lin@realtek.com> <eleanor15x@gmail.com>
Yusuke Goda <goda.yusuke@renesas.com>
Zack Rusin <zack.rusin@broadcom.com> <zackr@vmware.com>
Zhu Yanjun <zyjzyj2000@gmail.com> <yanjunz@nvidia.com>
+4 −5
Original line number Diff line number Diff line
@@ -2056,16 +2056,15 @@ S: Korte Heul 95
S: 1403 ND  BUSSUM
S: The Netherlands

N: Martin Kepplinger
N: Martin Kepplinger-Novakovic
E: martink@posteo.de
E: martin.kepplinger@puri.sm
W: http://www.martinkepplinger.com
P: 4096R/5AB387D3 F208 2B88 0F9E 4239 3468  6E3F 5003 98DF 5AB3 87D3
D: mma8452 accelerators iio driver
D: pegasus_notetaker input driver
D: imx8m media and hi846 sensor driver
D: Kernel fixes and cleanups
S: Garnisonstraße 26
S: 4020 Linz
S: Keplerstr. 6
S: 4050 Traun
S: Austria

N: Karl Keyte
+71 −0
Original line number Diff line number Diff line
NOTE: all the ABIs listed in this file are deprecated and will be removed after 2028.

Here are the alternative ABIs:
+------------------------------------+-----------------------------------------+
| Deprecated                         | Alternative                             |
+------------------------------------+-----------------------------------------+
| /sys/kernel/kexec_loaded           | /sys/kernel/kexec/loaded                |
+------------------------------------+-----------------------------------------+
| /sys/kernel/kexec_crash_loaded     | /sys/kernel/kexec/crash_loaded          |
+------------------------------------+-----------------------------------------+
| /sys/kernel/kexec_crash_size       | /sys/kernel/kexec/crash_size            |
+------------------------------------+-----------------------------------------+
| /sys/kernel/crash_elfcorehdr_size  | /sys/kernel/kexec/crash_elfcorehdr_size |
+------------------------------------+-----------------------------------------+
| /sys/kernel/kexec_crash_cma_ranges | /sys/kernel/kexec/crash_cma_ranges      |
+------------------------------------+-----------------------------------------+


What:		/sys/kernel/kexec_loaded
Date:		Jun 2006
Contact:	kexec@lists.infradead.org
Description:	read only
		Indicates whether a new kernel image has been loaded
		into memory using the kexec system call. It shows 1 if
		a kexec image is present and ready to boot, or 0 if none
		is loaded.
User:		kexec tools, kdump service

What:		/sys/kernel/kexec_crash_loaded
Date:		Jun 2006
Contact:	kexec@lists.infradead.org
Description:	read only
		Indicates whether a crash (kdump) kernel is currently
		loaded into memory. It shows 1 if a crash kernel has been
		successfully loaded for panic handling, or 0 if no crash
		kernel is present.
User:		Kexec tools, Kdump service

What:		/sys/kernel/kexec_crash_size
Date:		Dec 2009
Contact:	kexec@lists.infradead.org
Description:	read/write
		Shows the amount of memory reserved for loading the crash
		(kdump) kernel. It reports the size, in bytes, of the
		crash kernel area defined by the crashkernel= parameter.
		This interface also allows reducing the crashkernel
		reservation by writing a smaller value, and the reclaimed
		space is added back to the system RAM.
User:		Kdump service

What:		/sys/kernel/crash_elfcorehdr_size
Date:		Aug 2023
Contact:	kexec@lists.infradead.org
Description:	read only
		Indicates the preferred size of the memory buffer for the
		ELF core header used by the crash (kdump) kernel. It defines
		how much space is needed to hold metadata about the crashed
		system, including CPU and memory information. This information
		is used by the user space utility kexec to support updating the
		in-kernel kdump image during hotplug operations.
User:		Kexec tools

What:		/sys/kernel/kexec_crash_cma_ranges
Date:		Nov 2025
Contact:	kexec@lists.infradead.org
Description:	read only
		Provides information about the memory ranges reserved from
		the Contiguous Memory Allocator (CMA) area that are allocated
		to the crash (kdump) kernel. It lists the start and end physical
		addresses of CMA regions assigned for crashkernel use.
User:		kdump service
+61 −0
Original line number Diff line number Diff line
What:		/sys/kernel/kexec/*
Date:		Nov 2025
Contact:	kexec@lists.infradead.org
Description:
		The /sys/kernel/kexec/* directory contains sysfs files
		that provide information about the configuration status
		of kexec and kdump.

What:		/sys/kernel/kexec/loaded
Date:		Nov 2025
Contact:	kexec@lists.infradead.org
Description:	read only
		Indicates whether a new kernel image has been loaded
		into memory using the kexec system call. It shows 1 if
		a kexec image is present and ready to boot, or 0 if none
		is loaded.
User:		kexec tools, kdump service

What:		/sys/kernel/kexec/crash_loaded
Date:		Nov 2025
Contact:	kexec@lists.infradead.org
Description:	read only
		Indicates whether a crash (kdump) kernel is currently
		loaded into memory. It shows 1 if a crash kernel has been
		successfully loaded for panic handling, or 0 if no crash
		kernel is present.
User:		Kexec tools, Kdump service

What:		/sys/kernel/kexec/crash_size
Date:		Nov 2025
Contact:	kexec@lists.infradead.org
Description:	read/write
		Shows the amount of memory reserved for loading the crash
		(kdump) kernel. It reports the size, in bytes, of the
		crash kernel area defined by the crashkernel= parameter.
		This interface also allows reducing the crashkernel
		reservation by writing a smaller value, and the reclaimed
		space is added back to the system RAM.
User:		Kdump service

What:		/sys/kernel/kexec/crash_elfcorehdr_size
Date:		Nov 2025
Contact:	kexec@lists.infradead.org
Description:	read only
		Indicates the preferred size of the memory buffer for the
		ELF core header used by the crash (kdump) kernel. It defines
		how much space is needed to hold metadata about the crashed
		system, including CPU and memory information. This information
		is used by the user space utility kexec to support updating the
		in-kernel kdump image during hotplug operations.
User:		Kexec tools

What:		/sys/kernel/kexec/crash_cma_ranges
Date:		Nov 2025
Contact:	kexec@lists.infradead.org
Description:	read only
		Provides information about the memory ranges reserved from
		the Contiguous Memory Allocator (CMA) area that are allocated
		to the crash (kdump) kernel. It lists the start and end physical
		addresses of CMA regions assigned for crashkernel use.
User:		kdump service
+3 −2
Original line number Diff line number Diff line
@@ -223,12 +223,13 @@ The flags are::
  f    Include the function name
  s    Include the source file name
  l    Include line number
  d    Include call trace

For ``print_hex_dump_debug()`` and ``print_hex_dump_bytes()``, only
the ``p`` flag has meaning, other flags are ignored.

Note the regexp ``^[-+=][fslmpt_]+$`` matches a flags specification.
To clear all flags at once, use ``=_`` or ``-fslmpt``.
Note the regexp ``^[-+=][fslmptd_]+$`` matches a flags specification.
To clear all flags at once, use ``=_`` or ``-fslmptd``.


Debug messages during Boot Process
Loading