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

potential null pointer access in osc_prep_async_page

    XMLWordPrintable

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: