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

lgss_sk crash because of freeing twice

    XMLWordPrintable

Details

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

    Description

      When a key "xxx" alreasy exists, following command would crash:

      # /usr/sbin/lgss_sk -t client -f lustre0 -w xxx
      Reading random data for shared key from '/dev/random'
      Generating DH parameters, this can take a while...
      error: opening 'xxx': File exists
      *** Error in `/usr/sbin/lgss_sk': free(): invalid size: 0x000000000226ff90 ***
      ======= Backtrace: =========
      /lib64/libc.so.6(+0x81329)[0x7fc28d9e4329]
      /lib64/libcrypto.so.10(CRYPTO_free+0x1d)[0x7fc28e51780d]
      /lib64/libcrypto.so.10(BN_clear_free+0x50)[0x7fc28e575a20]
      /lib64/libcrypto.so.10(DH_free+0x75)[0x7fc28e5ba125]
      /usr/sbin/lgss_sk[0x402caa]
      /lib64/libc.so.6(__libc_start_main+0xf5)[0x7fc28d985555]
      /usr/sbin/lgss_sk[0x4031f3]
      ======= Memory map: ========
      

      This is caused by calling DH_free() on the same address for twice.

      Attachments

        Activity

          People

            flei Feng Lei
            lixi_wc Li Xi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: