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

race in ldiskfs_destroy_inode()

    XMLWordPrintable

Details

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

    Description

      static void ext4_destroy_inode(struct inode *inode)
      {                           
              call_rcu(&inode->i_rcu, ext4_i_callback);
      
              if (EXT4_I(inode)->i_reserved_data_blocks)
                      ext4_msg(inode->i_sb, KERN_ERR,
                               "Inode %lu (%p): i_reserved_data_blocks (%u) not cleared!",
                               inode->i_ino, EXT4_I(inode),
                               EXT4_I(inode)->i_reserved_data_blocks);
      }       
      

      on a preemption-enabled kernel ext4_i_callback() can race with the access to i_reserved_data_blocks a line below.

      Attachments

        Activity

          People

            bzzz Alex Zhuravlev
            bzzz Alex Zhuravlev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: