Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

[LibOS] Do not reuse dentries after removing a file (fixes mknod crash) #2499

Closed
wants to merge 3 commits into from

Commits on Jul 2, 2021

  1. [LibOS] Do not reuse dentries after removing a file

    This change ensures that dentries for removed files are not reused.
    Instead of marking a dentry as negative, we mark it as invalid, and make
    sure that a new one is created during next lookup.
    
    This fixes a crash where we create a named pipe, remove it, and then
    reuse the same object for a normal file. More generally, it ensures that
    filesystems always receive a dentry in a consistent state.
    
    Several unused dentry flags are also removed.
    
    Signed-off-by: Paweł Marczewski <pawel@invisiblethingslab.com>
    pwmarcz committed Jul 2, 2021
    Configuration menu
    Copy the full SHA
    824ab13 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2021

  1. fixup! [LibOS] Do not reuse dentries after removing a file

    Signed-off-by: Paweł Marczewski <pawel@invisiblethingslab.com>
    pwmarcz committed Jul 5, 2021
    Configuration menu
    Copy the full SHA
    8019b9a View commit details
    Browse the repository at this point in the history
  2. fixup! [LibOS] Do not reuse dentries after removing a file

    Signed-off-by: Paweł Marczewski <pawel@invisiblethingslab.com>
    pwmarcz committed Jul 5, 2021
    Configuration menu
    Copy the full SHA
    0bd1d75 View commit details
    Browse the repository at this point in the history