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

Pass buflen to swabbing functions to avoid memory corruption

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Buflen should be passed to those swabbing functions who need to avoid memory corruption (Please see LU-12811).

      Attachments

        Issue Links

          Activity

            [LU-13592] Pass buflen to swabbing functions to avoid memory corruption
            emoly.liu Emoly Liu added a comment -

            Functions lustre_swab_lmv_mds_md() and lustre_swab_lmv_user_md() are not defined in request fields, so they can't use swabber_dumper_helper() to pass buflen. Instead, they are called by ll_dir_get_default_layout().

            Let's keep this ticket open for some time for a double check in case of any memory corruption.

            emoly.liu Emoly Liu added a comment - Functions lustre_swab_lmv_mds_md() and lustre_swab_lmv_user_md() are not defined in request fields, so they can't use swabber_dumper_helper() to pass buflen. Instead, they are called by ll_dir_get_default_layout(). Let's keep this ticket open for some time for a double check in case of any memory corruption.

            People

              emoly.liu Emoly Liu
              emoly.liu Emoly Liu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: