Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-103429

[RHEL-9] Disable Kfence in kdump kernel

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.7
    • rhel-9.7
    • kexec-tools
    • kexec-tools-2.0.29-10.el9
    • Moderate
    • 1
    • rhel-kernel-debug
    • 24
    • 26
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • CK Parent Issues In Progress
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      It doesn't make sense to have Kfence functionality in kdump kernel, hence disabling it in kdump kernel can reduce memory usage accordingly.

      In the current fedora and RHEL, below config items related to kfence feature are set by default:
          
          ===
          CONFIG_HAVE_ARCH_KFENCE=y
          CONFIG_KFENCE=y
          CONFIG_KFENCE_SAMPLE_INTERVAL=100
          CONFIG_KFENCE_NUM_OBJECTS=255
          CONFIG_KFENCE_STRESS_TEST_FAULTS=0
          CONFIG_KFENCE_KUNIT_TEST=m
          ===
         

      With them set, on x86_64, it will cost 2M extra memory used for kfence when page size if 4K; while on arm64 with 64K page size, it will cost 32M extra memory.

              bhe@redhat.com Baoquan He
              bhe@redhat.com Baoquan He
              Baoquan He Baoquan He
              Jie Li Jie Li
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: