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

Issue with /proc/cmdline when adding memory reservation in PerformanceProfile

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • rhel-9.6.z
    • rhel-9.4.z, rhel-9.6
    • grub2
    • None
    • grub2-2.06-105.el9_6
    • No
    • Moderate
    • rhel-bootloader
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Description of problem:

      Update with PerformanceProfile (4.14) with memmap reservations, 
      
      - The issue is that when the profile got updated the entries in /proc/cmdline got compressed as one entry.
      
      spec:
        additionalKernelArgs:
        - memmap=0x80000000\$0x10000000
        - devmem.restricted=0
        
      
      The error in /proc/cmdline is like this:
        memmap=0x80000000devmem.restricted=0
        
      but the correct entries should be like:
        memmap=0x80000000$0x100000000 devmem.restricted=0
      
      There's a bug with the way it escapes the $ character when generating the cmdline boot command.

      Version-Release number of selected component (if applicable):

       

      How reproducible:

      Re-create the PerformanceProfile with the memmap and devmem values in spec part in the additionalKernelArgs, just like below.
      
      spec: 
        additionalKernelArgs: 
        - memmap=0x80000000\$0x10000000 
        - devmem.restricted=0
      
      
      

      Steps to Reproduce:

      1. Create the PerfomanceProfile with the additionalKernelArgs values.
      2. Apply the created performanceprofile and wait for a few minutes to take effect. (Faster on worker nodes)
      3. Enter the debug mode in one node and check the generated values in /proc/cmdline.
      
      The incorrect entry usually looks like this.
      
      memmap=0x80000000devmem.restricted=0 
      
      but the correct one should be like this.
      
      memmap=0x80000000$0x100000000 devmem.restricted=0
      
      

      Actual results:

       

      Expected results:

       

      Additional info:

       

              bootloader-eng-team bootloader -eng-team
              rhn-support-emagtala Eduardo Magtalas
              bootloader -eng-team bootloader -eng-team
              Release Test Team Release Test Team
              Votes:
              0 Vote for this issue
              Watchers:
              17 Start watching this issue

                Created:
                Updated: