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

ksocklnd: positive EALREADY after retry cap crashes node

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • Lustre 2.18.0
    • None
    • 3
    • 9223372036854775807

      After SOCKNAL_MAX_RETRIES refused connects, ksocknal_connect() fails with rc = +EALREADY and completes the queued txs with that positive status. lnet_ping() returns it as a NID count, and lnet_ping_show_dump() dereferences NULL:

      BUG: kernel NULL pointer dereference, address: 0000000000000001
      RIP: lnet_ping_show_dump+0x3dc
      

      Reproduced 3/3 by sanity-lnet test_239 on a tree without the LU-21218 fix.

      Fixes: d4c52652c357 ("LU-19225 socklnd: cap the number of retries")

      Fix: use -EALREADY when failing; lnet_ping() returns only negative errors.

            wc-triage WC Triage
            jinshanx Jinshan Xiong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: