Remove the graceful exit for kernel version 7.0.14 and above

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0, 9.0.0-rc1, 8.3.9, 8.0.30
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • v9.0, v8.3, v8.0
    • Programmability 2026-04-28, Programmability 2026-05-26, Programmability 2026-07-07
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Issue Status as of August 24, 2026

      Issue Description:

      Certain 8.X versions of MongoDB will exit during startup when running on Linux kernel versions 6.19 and later.

      This behavior was introduced to mitigate the impact of userspace breaking changes in the linux kernel which impacted the tcmalloc memory allocator. These changes negatively impacted MongoDB's stability and correctness, and caused MongoDB to crash after ~60 seconds.

      Linux kernel versions 7.0.14+ and 7.1.0+ (inclusive) restore previous userspace behavior.

      This ticket (SERVER-125742) removes this graceful exit on Linux kernel versions containing the kernel fixes referenced above. This change will be released in the coming weeks in versions 8.0.30, 8.3.9, and 9.X+.

      Please see the table below for the expected behavior of different versions of MongoDB on different versions of the Linux kernel.

      Compatibility Matrix:

      • Fully supported
      • Impacted - see comment
      MongoDB Version Linux Kernel < 6.19 Linux Kernel 6.19 - 7.0.13 Linux Kernel 7.0.14+ / 7.1.0+ (inclusive)
      • 7.0 (All versions)
      • 8.0.0 - 8.0.20
      DO NOT USE - MongoDB crashes after ~60 seconds, potential corruption
      • 8.0.21 - 8.0.29
      • 8.3.0 - 8.3.8
      MongoDB exits during startup MongoDB exits during startup
      • 8.0.30+
      • 8.3.9+
      • 9.0 (All versions)
      MongoDB exits during startup

      Root cause:

      Changes to rseq behavior in the Linux Kernel impact the tcmalloc memory allocator, resulting in instability in MongoDB.

      Fix or Remediations:

      We recommend using the latest maintenance release of MongoDB for your respective major version.

      This ticket (SERVER-125742) removes this graceful exit on Linux kernel versions containing the kernel fixes referenced above. This change will be released in the coming weeks in versions 8.0.30, 8.3.9, and 9.X+.


      With the approval of a RESQ fix to the Linux Kernel 7.0 and later, the current graceful exit for kernel 6.19 and later needs to be updated. Pending how far back the patch to the Linux kernel is backported, we either can completely remove the block or only block version 6.19 specifically. 

      The patch for restoring the RESQ capability for both x86 and arm64 was completed with Linux kernel 7.0.14.

            Assignee:
            Guillaume Racicot
            Reporter:
            Matt Usher
            Votes:
            11 Vote for this issue
            Watchers:
            32 Start watching this issue

              Created:
              Updated:
              Resolved: