Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
3
-
9223372036854775807
Description
mdd_object_type() calls lu_object_attr() and hence it asserts that the object exists. We need to audit the callers to ensure that a non-existing object is not passed. For example in mdd_migrate_entries() we have:
child = mdd_object_find(env, mdd, &ent->lde_fid);
if (IS_ERR(child))
GOTO(out, rc = PTR_ERR(child));
mdd_write_lock(env, child, MOR_SRC_CHILD);
is_dir = S_ISDIR(mdd_object_type(child));