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

Broken error fs handling in llapi_hsm_action_{begin,end}

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 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

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

            Dates

              Created:
              Updated: