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

page leak on cfs_crypto_hash_init() error path in tgt_checksum_niobuf_t10pi

    XMLWordPrintable

Details

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

    Description

      seems to be leaking allocated page if there was crypto init error:

       

              __page = alloc_page(GFP_KERNEL);
              if (__page == NULL)
                      return -ENOMEM;
              req = cfs_crypto_hash_init(cfs_alg, NULL, 0);
              if (IS_ERR(req)) {
                      CERROR("%s: unable to initialize checksum hash %s\n",
                             tgt_name(tgt), cfs_crypto_hash_name(cfs_alg));
                      return PTR_ERR(req);
              }
       

      Attachments

        Issue Links

          Activity

            People

              adilger Andreas Dilger
              green Oleg Drokin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: