1. 14 Jan, 2016 2 commits
  2. 12 Dec, 2015 1 commit
  3. 08 Dec, 2015 1 commit
    • Al Viro's avatar
      don't put symlink bodies in pagecache into highmem · 21fc61c7
      Al Viro authored
      kmap() in page_follow_link_light() needed to go - allowing to hold
      an arbitrary number of kmaps for long is a great way to deadlocking
      the system.
      
      new helper (inode_nohighmem(inode)) needs to be used for pagecache
      symlinks inodes; done for all in-tree cases.  page_follow_link_light()
      instrumented to yell about anything missed.
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      21fc61c7
  4. 20 Nov, 2015 1 commit
  5. 05 Nov, 2015 2 commits
  6. 04 Sep, 2015 4 commits
  7. 23 Jul, 2015 1 commit
  8. 24 Jun, 2015 2 commits
  9. 15 Apr, 2015 1 commit
  10. 14 Apr, 2015 2 commits
  11. 16 Feb, 2015 2 commits
  12. 08 Jan, 2015 1 commit
  13. 29 Oct, 2014 1 commit
  14. 23 Jun, 2014 3 commits
  15. 03 Apr, 2014 4 commits
  16. 10 Feb, 2014 1 commit
    • Xue jiufei's avatar
      ocfs2: check existence of old dentry in ocfs2_link() · 0e048316
      Xue jiufei authored
      System call linkat first calls user_path_at(), check the existence of
      old dentry, and then calls vfs_link()->ocfs2_link() to do the actual
      work.  There may exist a race when Node A create a hard link for file
      while node B rm it.
      
               Node A                          Node B
      user_path_at()
        ->ocfs2_lookup(),
      find old dentry exist
                                      rm file, add inode say inodeA
                                      to orphan_dir
      
      call ocfs2_link(),create a
      hard link for inodeA.
      
                                      rm the link, add inodeA to orphan_dir
                                      again
      
      When orphan_scan work start, it calls ocfs2_queue_orphans() to do the
      main work.  It first tranverses entrys in orphan_dir, linking all inodes
      in this orphan_dir to a list look like this:
      
      	inodeA->inodeB->...->inodeA
      
      When tranvering this list, it will fall into loop, calling iput() again
      and again.  And finally trigger BUG_ON(inode->i_state & I_CLEAR).
      Signed-off-by: default avatarjoyce <xuejiufei@huawei.com>
      Reviewed-by: default avatarMark Fasheh <mfasheh@suse.com>
      Cc: Joel Becker <jlbec@evilplan.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      0e048316
  17. 27 Jan, 2014 1 commit
  18. 25 Jan, 2014 1 commit
  19. 12 Nov, 2013 1 commit
  20. 03 Jul, 2013 3 commits
  21. 12 Jun, 2013 2 commits
  22. 13 Feb, 2013 1 commit
  23. 14 Jul, 2012 2 commits