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

Broken error fs handling in llapi_hsm_action_{begin,end}

    XMLWordPrintable

Details

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

    Description

      Both llapi_hsm_action_begin/end have this code in error handling:

      err_out:
              if (!(hcp->source_fd < 0))
                      close(hcp->source_fd);
      

      The problem is source_fd is unsigned, so it could never be less than zero.

      Attachments

        Activity

          People

            paf0186 Patrick Farrell
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: