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

obd_connect_data handling must account for clients that send obd_connect_data_v1

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Lustre 2.9.0
    • Fix Version/s: Lustre 2.9.0
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      Before 2.7.50 clients will send a struct obd_connect_data_v1 rather than a
      full struct obd_connect_data. So care must be taken when accessing fields
      that are not present in struct obd_connect_data_v1. For example in mdt_connect_internal() when we clear ocd_connect_flags2 we may be writing past the end of the request field buffer:

              data->ocd_connect_flags &= MDT_CONNECT_SUPPORTED;
              data->ocd_connect_flags2 &= MDT_CONNECT_SUPPORTED2;
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jhammond John Hammond
                Reporter:
                jhammond John Hammond
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: