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

modprobe --remove --remove-holders is removing same module multiple times

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.1
    • kmod
    • None
    • No
    • None
    • rhel-kernel-maint
    • 0
    • False
    • False
    • Hide

      None

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

      What were you trying to do that didn't work?

      "modprobe --remove --remove-holders ..." to unload modules with dependencies on each other is failing with an error:

      [root@prereserve-1mt-rhel-10 ~]# modprobe bnx2i
      [root@prereserve-1mt-rhel-10 ~]# lsmod | grep -e bnx2i -e cnic
      bnx2i                  94208  0
      libiscsi               94208  1 bnx2i
      cnic                   90112  1 bnx2i
      scsi_transport_iscsi   196608  2 bnx2i,libiscsi
      uio                    32768  1 cnic
      [root@prereserve-1mt-rhel-10 ~]# modprobe --remove --remove-holders cnic bnx2i
      modprobe: ERROR: libkmod/libkmod-module.c:856 kmod_module_remove_module() could not remove 'cnic': No such file or directory
      [root@prereserve-1mt-rhel-10 ~]# echo $?
      1
      [root@prereserve-1mt-rhel-10 ~]# lsmod | grep -e bnx2i -e cnic
      [root@prereserve-1mt-rhel-10 ~]#
      

      From jstancek@redhat.com, bug RHEL-111601:

      > modprobe: ERROR: libkmod/libkmod-module.c:856 kmod_module_remove_module() could not remove 'cnic': No such file or directory

      This looks like something that could be improved, it's removing same module two times, second one fails with ENOENT.

      Please provide the package NVR for which the bug is seen:

      kmod-31-12.el10

      Expected results

      Modules removed without errors.

      Actual results

      [root@prereserve-1mt-rhel-10 ~]# modprobe --remove --remove-holders cnic bnx2i
      modprobe: ERROR: libkmod/libkmod-module.c:856 kmod_module_remove_module() could not remove 'cnic': No such file or directory
      [root@prereserve-1mt-rhel-10 ~]# echo $?
      1
      [root@prereserve-1mt-rhel-10 ~]#
      

              jstancek@redhat.com Jan Stancek
              jstodola@redhat.com Jan Stodola
              Jan Stancek Jan Stancek
              Ziqian (Zamir) SUN Ziqian (Zamir) SUN
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: