Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-8629

Error exit path doing wrong cleanup in cl_env_percpu_init

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.9.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Upstream kernel guys found a bug in cl_env_percpu_init:

              if (rc != 0) {
                      /* Indices 0 to i (excluding i) were correctly initialized,
                       * thus we must uninitialize up to i, the rest are undefined. */
                      for (j = 0; j < i; j++) {
                              cle = &cl_env_percpu[i];
                              lu_context_exit(&cle->ce_ses);
                              lu_context_fini(&cle->ce_ses);
                              lu_env_fini(&cle->ce_lu);
                      }
              }
      

      Here clearly cle = &cl_env_percpu[i] should be cle = &cl_env_percpu[j];

      Attachments

        Issue Links

          Activity

            [LU-8629] Error exit path doing wrong cleanup in cl_env_percpu_init
            pjones Peter Jones added a comment -

            Landed for 2.9

            pjones Peter Jones added a comment - Landed for 2.9

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/22635/
            Subject: LU-8629 obdclass: Fix error exit loop in cl_env_percpu_init
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: cf5882e6d381c18ec07d53a38010fcf2eb0d754d

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/22635/ Subject: LU-8629 obdclass: Fix error exit loop in cl_env_percpu_init Project: fs/lustre-release Branch: master Current Patch Set: Commit: cf5882e6d381c18ec07d53a38010fcf2eb0d754d

            Thanks Oleg for porting this fix.

            simmonsja James A Simmons added a comment - Thanks Oleg for porting this fix.

            Oleg Drokin (oleg.drokin@intel.com) uploaded a new patch: http://review.whamcloud.com/22635
            Subject: LU-8629 Fix error exit loop in cl_env_percpu_init
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 7e28f55d06c565624ddb90d4cc569c206a6c9feb

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) uploaded a new patch: http://review.whamcloud.com/22635 Subject: LU-8629 Fix error exit loop in cl_env_percpu_init Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 7e28f55d06c565624ddb90d4cc569c206a6c9feb

            People

              wc-triage WC Triage
              green Oleg Drokin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: