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

potential null pointer access in osc_prep_async_page

Details

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

    Description

      Introduced by https://review.whamcloud.com/44338

       

              while (--max_scans > 0 &&
                     (cli = list_first_entry_or_null(&cache->ccc_lru,
                                                     struct client_obd,
                                                     cl_lru_osc)) != NULL) {
      ...
                      }
              }
              spin_unlock(&cache->ccc_lru_lock);out:
              cl_env_put(env, &refcheck);
              CDEBUG(D_CACHE, "%s: cli %p freed %ld pages.\n",
                      cli_name(cli), cli, rc); 

      So now once that cli is NULL we exit and cli_name dereference will get us if +cache is in the debug flags.

      Attachments

        Activity

          [LU-15013] potential null pointer access in osc_prep_async_page

          "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44966/
          Subject: LU-15013 osc: use original cli for osc_lru_reclaim for debug msg
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 3c6a1e94c652685fac7c69bf530e05d27b7f477c

          gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44966/ Subject: LU-15013 osc: use original cli for osc_lru_reclaim for debug msg Project: fs/lustre-release Branch: master Current Patch Set: Commit: 3c6a1e94c652685fac7c69bf530e05d27b7f477c

          "James Simmons <jsimmons@infradead.org>" uploaded a new patch: https://review.whamcloud.com/44966
          Subject: LU-15013 osc: use original cli for osc_lru_reclaim for debug msg
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 3f7f4b722b4bbcaa4f0fdf5bd1fbc58f00a0604d

          gerrit Gerrit Updater added a comment - "James Simmons <jsimmons@infradead.org>" uploaded a new patch: https://review.whamcloud.com/44966 Subject: LU-15013 osc: use original cli for osc_lru_reclaim for debug msg Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 3f7f4b722b4bbcaa4f0fdf5bd1fbc58f00a0604d

          Oh I can do a quick fix.

          simmonsja James A Simmons added a comment - Oh I can do a quick fix.
          pjones Peter Jones added a comment -

          James

          Can this be fixed in place quickly or should we revert the change?

          Peter

          pjones Peter Jones added a comment - James Can this be fixed in place quickly or should we revert the change? Peter

          People

            simmonsja James A Simmons
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: