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

ll_revalidate_dentry unsafe usage of parent inode

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      Al Viro advises us that we cannot just use parent inode like that unguarded.

      There are two problems.
      First, by the time we get to ll_Revalidate, the parent might change since nothing locks it, but there's nothing we could do about it.
      But the other problem - the parent inode could be freed while we are there and we do not hold a reference - so this should be fixed.
      We should convert to something like dget_parent.

        Attachments

          Activity

            People

            • Assignee:
              green Oleg Drokin
              Reporter:
              green Oleg Drokin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: