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

Memory corruption due to MMP (1.8.5)

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • Lustre 2.1.0, Lustre 1.8.6
    • Lustre 1.8.6
    • None
    • 3
    • 5072

    Description

      I have been chasing a weird bug with MMP on 2.6.39-rc1 (i want to push MMP upstream) and it turns out to be an horrible memory corruption which can impact any kernels.

      +       mmpd_data = kmalloc(sizeof(struct mmpd_data *), GFP_KERNEL);
                                         ^^^^^^^^^^^^^^^^^^^
                                      OUCH!!! should be sizeof(struct mmpd_data)
      +       if (!mmpd_data) {
      +               ext3_warning(sb, KERN_ERR, "not enough memory for mmpd_data");
      +               goto failed;
      +       }   
      +       mmpd_data->sb = sb; 
      +       mmpd_data->bh = bh; 
      

      The memory corruption was introduced by bugzilla ticket 22117 in 1.8.5.
      This issue can cause all sorts of oops everywhere in the kernel.

      Attachments

        Issue Links

          Activity

            [LU-206] Memory corruption due to MMP (1.8.5)

            Integrated in lustre-b1_8 » i686,server,el5,inkernel #17
            LU-206 Memory corruption due to MMP (1.8.5)

            Johann Lombardi : bb1e78ac1673eb95bfe91d7dbbd729dc6cd48c32
            Files :

            • ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch
            • ldiskfs/kernel_patches/patches/ext4-mmp-sles11.patch
            • ldiskfs/kernel_patches/patches/ext3-mmp-2.6-sles10.patch
            • ldiskfs/kernel_patches/patches/ext3-mmp-2.6.18-vanilla.patch
            hudson Build Master (Inactive) added a comment - Integrated in lustre-b1_8 » i686,server,el5,inkernel #17 LU-206 Memory corruption due to MMP (1.8.5) Johann Lombardi : bb1e78ac1673eb95bfe91d7dbbd729dc6cd48c32 Files : ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch ldiskfs/kernel_patches/patches/ext4-mmp-sles11.patch ldiskfs/kernel_patches/patches/ext3-mmp-2.6-sles10.patch ldiskfs/kernel_patches/patches/ext3-mmp-2.6.18-vanilla.patch

            Integrated in lustre-b1_8 » i686,client,el5,inkernel #17
            LU-206 Memory corruption due to MMP (1.8.5)

            Johann Lombardi : bb1e78ac1673eb95bfe91d7dbbd729dc6cd48c32
            Files :

            • ldiskfs/kernel_patches/patches/ext3-mmp-2.6.18-vanilla.patch
            • ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch
            • ldiskfs/kernel_patches/patches/ext4-mmp-sles11.patch
            • ldiskfs/kernel_patches/patches/ext3-mmp-2.6-sles10.patch
            hudson Build Master (Inactive) added a comment - Integrated in lustre-b1_8 » i686,client,el5,inkernel #17 LU-206 Memory corruption due to MMP (1.8.5) Johann Lombardi : bb1e78ac1673eb95bfe91d7dbbd729dc6cd48c32 Files : ldiskfs/kernel_patches/patches/ext3-mmp-2.6.18-vanilla.patch ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch ldiskfs/kernel_patches/patches/ext4-mmp-sles11.patch ldiskfs/kernel_patches/patches/ext3-mmp-2.6-sles10.patch

            Integrated in lustre-b1_8 » i686,server,el5,ofa #17
            LU-206 Memory corruption due to MMP (1.8.5)

            Johann Lombardi : bb1e78ac1673eb95bfe91d7dbbd729dc6cd48c32
            Files :

            • ldiskfs/kernel_patches/patches/ext4-mmp-sles11.patch
            • ldiskfs/kernel_patches/patches/ext3-mmp-2.6-sles10.patch
            • ldiskfs/kernel_patches/patches/ext3-mmp-2.6.18-vanilla.patch
            • ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch
            hudson Build Master (Inactive) added a comment - Integrated in lustre-b1_8 » i686,server,el5,ofa #17 LU-206 Memory corruption due to MMP (1.8.5) Johann Lombardi : bb1e78ac1673eb95bfe91d7dbbd729dc6cd48c32 Files : ldiskfs/kernel_patches/patches/ext4-mmp-sles11.patch ldiskfs/kernel_patches/patches/ext3-mmp-2.6-sles10.patch ldiskfs/kernel_patches/patches/ext3-mmp-2.6.18-vanilla.patch ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch

            Integrated in lustre-b1_8 » x86_64,server,el5,ofa #17
            LU-206 Memory corruption due to MMP (1.8.5)

            Johann Lombardi : bb1e78ac1673eb95bfe91d7dbbd729dc6cd48c32
            Files :

            • ldiskfs/kernel_patches/patches/ext4-mmp-sles11.patch
            • ldiskfs/kernel_patches/patches/ext3-mmp-2.6-sles10.patch
            • ldiskfs/kernel_patches/patches/ext3-mmp-2.6.18-vanilla.patch
            • ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch
            hudson Build Master (Inactive) added a comment - Integrated in lustre-b1_8 » x86_64,server,el5,ofa #17 LU-206 Memory corruption due to MMP (1.8.5) Johann Lombardi : bb1e78ac1673eb95bfe91d7dbbd729dc6cd48c32 Files : ldiskfs/kernel_patches/patches/ext4-mmp-sles11.patch ldiskfs/kernel_patches/patches/ext3-mmp-2.6-sles10.patch ldiskfs/kernel_patches/patches/ext3-mmp-2.6.18-vanilla.patch ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch

            Integrated in lustre-b1_8 » i686,client,el5,ofa #17
            LU-206 Memory corruption due to MMP (1.8.5)

            Johann Lombardi : bb1e78ac1673eb95bfe91d7dbbd729dc6cd48c32
            Files :

            • ldiskfs/kernel_patches/patches/ext3-mmp-2.6.18-vanilla.patch
            • ldiskfs/kernel_patches/patches/ext3-mmp-2.6-sles10.patch
            • ldiskfs/kernel_patches/patches/ext4-mmp-sles11.patch
            • ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch
            hudson Build Master (Inactive) added a comment - Integrated in lustre-b1_8 » i686,client,el5,ofa #17 LU-206 Memory corruption due to MMP (1.8.5) Johann Lombardi : bb1e78ac1673eb95bfe91d7dbbd729dc6cd48c32 Files : ldiskfs/kernel_patches/patches/ext3-mmp-2.6.18-vanilla.patch ldiskfs/kernel_patches/patches/ext3-mmp-2.6-sles10.patch ldiskfs/kernel_patches/patches/ext4-mmp-sles11.patch ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch

            Integrated in lustre-b1_8 » x86_64,client,el5,ofa #17
            LU-206 Memory corruption due to MMP (1.8.5)

            Johann Lombardi : bb1e78ac1673eb95bfe91d7dbbd729dc6cd48c32
            Files :

            • ldiskfs/kernel_patches/patches/ext3-mmp-2.6.18-vanilla.patch
            • ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch
            • ldiskfs/kernel_patches/patches/ext4-mmp-sles11.patch
            • ldiskfs/kernel_patches/patches/ext3-mmp-2.6-sles10.patch
            hudson Build Master (Inactive) added a comment - Integrated in lustre-b1_8 » x86_64,client,el5,ofa #17 LU-206 Memory corruption due to MMP (1.8.5) Johann Lombardi : bb1e78ac1673eb95bfe91d7dbbd729dc6cd48c32 Files : ldiskfs/kernel_patches/patches/ext3-mmp-2.6.18-vanilla.patch ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch ldiskfs/kernel_patches/patches/ext4-mmp-sles11.patch ldiskfs/kernel_patches/patches/ext3-mmp-2.6-sles10.patch

            Integrated in lustre-b1_8 » x86_64,server,el5,inkernel #17
            LU-206 Memory corruption due to MMP (1.8.5)

            Johann Lombardi : bb1e78ac1673eb95bfe91d7dbbd729dc6cd48c32
            Files :

            • ldiskfs/kernel_patches/patches/ext4-mmp-sles11.patch
            • ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch
            • ldiskfs/kernel_patches/patches/ext3-mmp-2.6.18-vanilla.patch
            • ldiskfs/kernel_patches/patches/ext3-mmp-2.6-sles10.patch
            hudson Build Master (Inactive) added a comment - Integrated in lustre-b1_8 » x86_64,server,el5,inkernel #17 LU-206 Memory corruption due to MMP (1.8.5) Johann Lombardi : bb1e78ac1673eb95bfe91d7dbbd729dc6cd48c32 Files : ldiskfs/kernel_patches/patches/ext4-mmp-sles11.patch ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch ldiskfs/kernel_patches/patches/ext3-mmp-2.6.18-vanilla.patch ldiskfs/kernel_patches/patches/ext3-mmp-2.6-sles10.patch

            Integrated in lustre-b1_8 » x86_64,client,el6,inkernel #17
            LU-206 Memory corruption due to MMP (1.8.5)

            Johann Lombardi : bb1e78ac1673eb95bfe91d7dbbd729dc6cd48c32
            Files :

            • ldiskfs/kernel_patches/patches/ext4-mmp-sles11.patch
            • ldiskfs/kernel_patches/patches/ext3-mmp-2.6-sles10.patch
            • ldiskfs/kernel_patches/patches/ext3-mmp-2.6.18-vanilla.patch
            • ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch
            hudson Build Master (Inactive) added a comment - Integrated in lustre-b1_8 » x86_64,client,el6,inkernel #17 LU-206 Memory corruption due to MMP (1.8.5) Johann Lombardi : bb1e78ac1673eb95bfe91d7dbbd729dc6cd48c32 Files : ldiskfs/kernel_patches/patches/ext4-mmp-sles11.patch ldiskfs/kernel_patches/patches/ext3-mmp-2.6-sles10.patch ldiskfs/kernel_patches/patches/ext3-mmp-2.6.18-vanilla.patch ldiskfs/kernel_patches/patches/ext4-mmp-rhel5.patch
            bobijam Zhenyu Xu made changes -
            Fix Version/s New: Lustre 1.8.6 [ 10022 ]
            Fix Version/s New: Lustre 2.1.0 [ 10021 ]
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            bobijam Zhenyu Xu added a comment -

            landed on b1_8 and master.

            bobijam Zhenyu Xu added a comment - landed on b1_8 and master.

            People

              bobijam Zhenyu Xu
              johann Johann Lombardi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: