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

osd-ldiskfs: Null pointer may be passed to function that may dereference it

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • None
    • None
    • 3
    • 15335

    Description

      Null pointer 'hlock' that comes from line 3617 may be passed to function and can be dereferenced there by passing argument 4 to function 'ldiskfs_find_entry' at line 3648.

      Null pointer 'hlock' that comes from line 4151 may be passed to function and can be dereferenced there by passing argument 4 to function 'ldiskfs_find_entry' at line 4169.

      Null pointer 'hlock' that comes from line 4009 may be passed to function and can be dereferenced there by passing argument 6 to function '__osd_ea_add_rec' at line 4037. Also there is one similar error on line 4040.

      TRACEBACK
      osd_handler.c:3617: 'hlock' has been assigned a NULL value.
      osd_handler.c:3640: obj->oo_hl_head!= ( (void* )0) is false
      osd_handler.c:3648: 'hlock' is dereferenced by passing argument 4 to function 'ldiskfs_find_entry'.
      namei.c:1230: 'lck' is passed to function 'ldiskfs_find_entry'.
      namei.c:1251: 'lck' is dereferenced by passing argument 4 to function 'ldiskfs_dx_find_entry'.
      namei.c:1342: 'lck' is passed to function 'ldiskfs_dx_find_entry'.
      namei.c:1358: 'lck' is dereferenced by passing argument 5 to function 'dx_probe'.
      namei.c:609: 'lck' is passed to function 'dx_probe'.
      namei.c:633: hinfo->hash_version<=2 is true
      namei.c:705: 0 is false
      namei.c:742: ldiskfs_htree_node_locked(lck, LDISKFS_LB_DX) is false
      namei.c:751: 'lck' is dereferenced by passing argument 1 to function 'dx_probe_hash_collision'.
      namei.c:581: 'lck' is passed to function 'dx_probe_hash_collision'.
      namei.c:585: 'lck' is explicitly dereferenced.

      Attachments

        Issue Links

          Activity

            People

              dmiter Dmitry Eremin (Inactive)
              dmiter Dmitry Eremin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: