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

A invalid memory write in llapi_layout_to_lum

Details

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

    Description

      valgrind found a bug in llapi_layout_to_lum()

       

      ==8402== Invalid write of size 4
      ==8402==    at 0x41AA66: llapi_layout_to_lum (liblustreapi_layout.c:620)
      ==8402==    by 0x41AE2C: llapi_layout_file_open (liblustreapi_layout.c:1460)
      ==8402==    by 0x408F4A: lfs_component_create (lfs.c:728)
      ==8402==    by 0x40B8BB: lfs_setstripe (lfs.c:1301)
      ==8402==    by 0x41F17E: Parser_execarg (parser.c:115)
      ==8402==    by 0x409A37: main (lfs.c:5467)
      ==8402==  Address 0x4e56a60 is 32 bytes inside a block of size 176 free'd
      ==8402==    at 0x4A06C20: realloc (vg_replace_malloc.c:662)
      ==8402==    by 0x41A91B: llapi_layout_to_lum (liblustreapi_layout.c:559)
      ==8402==    by 0x41AE2C: llapi_layout_file_open (liblustreapi_layout.c:1460)
      ==8402==    by 0x408F4A: lfs_component_create (lfs.c:728)
      ==8402==    by 0x40B8BB: lfs_setstripe (lfs.c:1301)
      ==8402==    by 0x41F17E: Parser_execarg (parser.c:115)
      ==8402==    by 0x409A37: main (lfs.c:5467)
      
      

      Attachments

        Activity

          [LU-9412] A invalid memory write in llapi_layout_to_lum
          pjones Peter Jones added a comment -

          Landed for 2.10

          pjones Peter Jones added a comment - Landed for 2.10

          Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26858/
          Subject: LU-9412 lfs: A invalid memory write in llapi_layout_to_lum
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 2270ad3c85802d5fcd3cfcbd8bd109991d8d686f

          gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/26858/ Subject: LU-9412 lfs: A invalid memory write in llapi_layout_to_lum Project: fs/lustre-release Branch: master Current Patch Set: Commit: 2270ad3c85802d5fcd3cfcbd8bd109991d8d686f

          Andreas Dilger (andreas.dilger@intel.com) merged in patch https://review.whamcloud.com/27118/
          Subject: LU-9412 lfs: A invalid memory write in llapi_layout_to_lum
          Project: fs/lustre-release
          Branch: pfl
          Current Patch Set:
          Commit: 150fe4b002df23275de4b49b97cb8e4a7f3cd6f0

          gerrit Gerrit Updater added a comment - Andreas Dilger (andreas.dilger@intel.com) merged in patch https://review.whamcloud.com/27118/ Subject: LU-9412 lfs: A invalid memory write in llapi_layout_to_lum Project: fs/lustre-release Branch: pfl Current Patch Set: Commit: 150fe4b002df23275de4b49b97cb8e4a7f3cd6f0

          Jinshan Xiong (jinshan.xiong@intel.com) uploaded a new patch: https://review.whamcloud.com/27118
          Subject: LU-9412 lfs: A invalid memory write in llapi_layout_to_lum
          Project: fs/lustre-release
          Branch: pfl
          Current Patch Set: 1
          Commit: b99a171da41ded0748d0246f959def2955ad943d

          gerrit Gerrit Updater added a comment - Jinshan Xiong (jinshan.xiong@intel.com) uploaded a new patch: https://review.whamcloud.com/27118 Subject: LU-9412 lfs: A invalid memory write in llapi_layout_to_lum Project: fs/lustre-release Branch: pfl Current Patch Set: 1 Commit: b99a171da41ded0748d0246f959def2955ad943d

          Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/26858
          Subject: LU-9412 lfs: A invalid memory write in llapi_layout_to_lum
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: a35ada7011c8272ebfebe498d75b0a95bd71533a

          gerrit Gerrit Updater added a comment - Bobi Jam (bobijam@hotmail.com) uploaded a new patch: https://review.whamcloud.com/26858 Subject: LU-9412 lfs: A invalid memory write in llapi_layout_to_lum Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: a35ada7011c8272ebfebe498d75b0a95bd71533a

          People

            bobijam Zhenyu Xu
            bobijam Zhenyu Xu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: