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

irqbalance: Check API command length, allow up to 16384

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.5
    • irqbalance
    • None
    • No
    • None
    • 105b155
    • rhel-sst-kernel-debug
    • ssg_core_kernel
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • x86_64
    • None

      The customers have a containerd NRI plugin that uses the irqbalance API to dynamically ban irqs. When they reache the irqbalance API limit our NRI plugin error out and they can't launch new containers.

      The irqbalance API uses a fixed buffer that is way too small, truncating the commands.

      The customer sent a fix upstream that got accepted, and they need it backported to RHEL 9.5:

      https://github.com/Irqbalance/irqbalance/commit/105b155545e00560a55d34b160324910586ae74c

      Commit 105b155

      Check API command length, allow up to 16384
      When using the API to ban cpus or irqs, the command can easily be longer
      than 500, so increase the buffer to 16384, which fits ~3250 cpus
      or irqs, and add a check to log and exit if it is still not enough.

      Signed-off-by: Etienne Champetier <e.champetier@ateme.com>

              ltao@redhat.com Liu Tao
              rhn-support-kyin Kenneth Yin
              Liu Tao Liu Tao
              Jiri Dluhos Jiri Dluhos
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: