]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Merge tag 'mm-nonmm-stable-2025-08-03-12-47' of git://git.kernel.org/pub/scm/linux...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 3 Aug 2025 23:23:09 +0000 (16:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 3 Aug 2025 23:23:09 +0000 (16:23 -0700)
Pull non-MM updates from Andrew Morton:
 "Significant patch series in this pull request:

   - "squashfs: Remove page->mapping references" (Matthew Wilcox) gets
     us closer to being able to remove page->mapping

   - "relayfs: misc changes" (Jason Xing) does some maintenance and
     minor feature addition work in relayfs

   - "kdump: crashkernel reservation from CMA" (Jiri Bohac) switches
     us from static preallocation of the kdump crashkernel's working
     memory over to dynamic allocation. So the difficulty of a-priori
     estimation of the second kernel's needs is removed and the first
     kernel obtains extra memory

   - "generalize panic_print's dump function to be used by other
     kernel parts" (Feng Tang) implements some consolidation and
     rationalization of the various ways in which a failing kernel
     splats information at the operator

* tag 'mm-nonmm-stable-2025-08-03-12-47' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm: (80 commits)
  tools/getdelays: add backward compatibility for taskstats version
  kho: add test for kexec handover
  delaytop: enhance error logging and add PSI feature description
  samples: Kconfig: fix spelling mistake "instancess" -> "instances"
  fat: fix too many log in fat_chain_add()
  scripts/spelling.txt: add notifer||notifier to spelling.txt
  xen/xenbus: fix typo "notifer"
  net: mvneta: fix typo "notifer"
  drm/xe: fix typo "notifer"
  cxl: mce: fix typo "notifer"
  KVM: x86: fix typo "notifer"
  MAINTAINERS: add maintainers for delaytop
  ucount: use atomic_long_try_cmpxchg() in atomic_long_inc_below()
  ucount: fix atomic_long_inc_below() argument type
  kexec: enable CMA based contiguous allocation
  stackdepot: make max number of pools boot-time configurable
  lib/xxhash: remove unused functions
  init/Kconfig: restore CONFIG_BROKEN help text
  lib/raid6: update recov_rvv.c zero page usage
  docs: update docs after introducing delaytop
  ...

28 files changed:
1  2 
.mailmap
Documentation/admin-guide/kernel-parameters.txt
Documentation/admin-guide/sysctl/kernel.rst
MAINTAINERS
arch/powerpc/kernel/fadump.c
arch/riscv/Kconfig
arch/x86/kernel/setup.c
arch/x86/kvm/i8254.c
drivers/gpu/drm/xe/xe_vm_types.h
drivers/net/ethernet/marvell/mvneta.c
fs/ocfs2/aops.c
include/linux/rwsem.h
include/xen/xenbus.h
init/Kconfig
init/main.c
kernel/events/uprobes.c
kernel/exit.c
kernel/fork.c
kernel/kexec_core.c
kernel/kexec_file.c
kernel/locking/rwsem.c
kernel/panic.c
kernel/trace/blktrace.c
lib/Kconfig.debug
lib/Makefile
lib/raid6/recov_s390xc.c
scripts/checkpatch.pl
scripts/gdb/linux/constants.py.in

diff --cc .mailmap
Simple merge
diff --cc MAINTAINERS
Simple merge
Simple merge
index e5668d9de58be0708b3287be18adc183e43d7874,1736768426ecb0c36693c2e6b50e52c90d64f33b..a4b233a0659ed80c0eb6b118ea8c8db81ed3fdba
@@@ -93,8 -97,8 +93,9 @@@ config RISC
        select CLINT_TIMER if RISCV_M_MODE
        select CLONE_BACKWARDS
        select COMMON_CLK
+       select CPU_NO_EFFICIENT_FFS if !RISCV_ISA_ZBB
        select CPU_PM if CPU_IDLE || HIBERNATION || SUSPEND
 +      select DYNAMIC_FTRACE if FUNCTION_TRACER
        select EDAC_SUPPORT
        select FRAME_POINTER if PERF_EVENTS || (FUNCTION_TRACER && !DYNAMIC_FTRACE)
        select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY if DYNAMIC_FTRACE
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc fs/ocfs2/aops.c
Simple merge
Simple merge
Simple merge
diff --cc init/Kconfig
Simple merge
diff --cc init/main.c
Simple merge
Simple merge
diff --cc kernel/exit.c
Simple merge
diff --cc kernel/fork.c
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc kernel/panic.c
index 43817111c97937ec23c68ac8213fe7873be423ee,bb16f254cd023015d5fc9cd6a4f13ec058e57c9d..72fcbb5a071badba7769087f56d906ad90fbd6c3
@@@ -84,50 -78,13 +78,57 @@@ ATOMIC_NOTIFIER_HEAD(panic_notifier_lis
  EXPORT_SYMBOL(panic_notifier_list);
  
  #ifdef CONFIG_SYSCTL
 +
 +/*
 + * Taint values can only be increased
 + * This means we can safely use a temporary.
 + */
 +static int proc_taint(const struct ctl_table *table, int write,
 +                             void *buffer, size_t *lenp, loff_t *ppos)
 +{
 +      struct ctl_table t;
 +      unsigned long tmptaint = get_taint();
 +      int err;
 +
 +      if (write && !capable(CAP_SYS_ADMIN))
 +              return -EPERM;
 +
 +      t = *table;
 +      t.data = &tmptaint;
 +      err = proc_doulongvec_minmax(&t, write, buffer, lenp, ppos);
 +      if (err < 0)
 +              return err;
 +
 +      if (write) {
 +              int i;
 +
 +              /*
 +               * If we are relying on panic_on_taint not producing
 +               * false positives due to userspace input, bail out
 +               * before setting the requested taint flags.
 +               */
 +              if (panic_on_taint_nousertaint && (tmptaint & panic_on_taint))
 +                      return -EINVAL;
 +
 +              /*
 +               * Poor man's atomic or. Not worth adding a primitive
 +               * to everyone's atomic.h for this
 +               */
 +              for (i = 0; i < TAINT_FLAGS_COUNT; i++)
 +                      if ((1UL << i) & tmptaint)
 +                              add_taint(i, LOCKDEP_STILL_OK);
 +      }
 +
 +      return err;
 +}
 +
+ static int sysctl_panic_print_handler(const struct ctl_table *table, int write,
+                          void *buffer, size_t *lenp, loff_t *ppos)
+ {
+       pr_info_once("Kernel: 'panic_print' sysctl interface will be obsoleted by both 'panic_sys_info' and 'panic_console_replay'\n");
+       return proc_doulongvec_minmax(table, write, buffer, lenp, ppos);
+ }
  static const struct ctl_table kern_panic_table[] = {
  #ifdef CONFIG_SMP
        {
                .mode           = 0644,
                .proc_handler   = proc_douintvec,
        },
 +#if (defined(CONFIG_X86_32) || defined(CONFIG_PARISC)) && \
 +      defined(CONFIG_DEBUG_STACKOVERFLOW)
 +      {
 +              .procname       = "panic_on_stackoverflow",
 +              .data           = &sysctl_panic_on_stackoverflow,
 +              .maxlen         = sizeof(int),
 +              .mode           = 0644,
 +              .proc_handler   = proc_dointvec,
 +      },
 +#endif
+       {
+               .procname       = "panic_sys_info",
+               .data           = &panic_print,
+               .maxlen         = sizeof(panic_print),
+               .mode           = 0644,
+               .proc_handler   = sysctl_sys_info_handler,
+       },
  };
  
  static __init int kernel_panic_sysctls_init(void)
Simple merge
index 53332a1d8af4857093425590f109206ab7244367,4f82d38e3c4559054844994fa5c266522a67c117..dc0e0c6ed075e98346c874ab6170640482e816f3
@@@ -3214,16 -3225,26 +3214,36 @@@ config TEST_OBJPOO
  
          If unsure, say N.
  
+ config TEST_KEXEC_HANDOVER
+       bool "Test for Kexec HandOver"
+       default n
+       depends on KEXEC_HANDOVER
+       help
+         This option enables test for Kexec HandOver (KHO).
+         The test consists of two parts: saving kernel data before kexec and
+         restoring the data after kexec and verifying that it was properly
+         handed over. This test module creates and saves data on the boot of
+         the first kernel and restores and verifies the data on the boot of
+         kexec'ed kernel.
+         For detailed documentation about KHO, see Documentation/core-api/kho.
+         To run the test run:
+         tools/testing/selftests/kho/vmtest.sh -h
+         If unsure, say N.
 +config RATELIMIT_KUNIT_TEST
 +      tristate "KUnit Test for correctness and stress of ratelimit" if !KUNIT_ALL_TESTS
 +      depends on KUNIT
 +      default KUNIT_ALL_TESTS
 +      help
 +        This builds the "test_ratelimit" module that should be used
 +        for correctness verification and concurrent testings of rate
 +        limiting.
 +
 +        If unsure, say N.
  
  config INT_POW_KUNIT_TEST
        tristate "Integer exponentiation (int_pow) test" if !KUNIT_ALL_TESTS
diff --cc lib/Makefile
Simple merge
Simple merge
Simple merge
Simple merge