1. 14 9月, 2009 1 次提交
    • F
      kill-the-bkl/reiserfs: acquire the inode mutex safely · c72e0575
      Frederic Weisbecker 提交于
      While searching a pathname, an inode mutex can be acquired
      in do_lookup() which calls reiserfs_lookup() which in turn
      acquires the write lock.
      
      On the other side reiserfs_fill_super() can acquire the write_lock
      and then call reiserfs_lookup_privroot() which can acquire an
      inode mutex (the root of the mount point).
      
      So we theoretically risk an AB - BA lock inversion that could lead
      to a deadlock.
      
      As for other lock dependencies found since the bkl to mutex
      conversion, the fix is to use reiserfs_mutex_lock_safe() which
      drops the lock dependency to the write lock.
      
      [ Impact: fix a possible deadlock with reiserfs ]
      
      Cc: Jeff Mahoney <jeffm@suse.com>
      Cc: Chris Mason <chris.mason@oracle.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Alexander Beregalov <a.beregalov@gmail.com>
      Signed-off-by: NFrederic Weisbecker <fweisbec@gmail.com>
      c72e0575
  2. 13 7月, 2009 1 次提交
  3. 12 6月, 2009 1 次提交
  4. 18 5月, 2009 3 次提交
  5. 09 5月, 2009 4 次提交
  6. 31 3月, 2009 16 次提交
  7. 28 3月, 2009 1 次提交
  8. 17 10月, 2008 1 次提交
  9. 27 7月, 2008 1 次提交
    • A
      [PATCH] sanitize ->permission() prototype · e6305c43
      Al Viro 提交于
      * kill nameidata * argument; map the 3 bits in ->flags anybody cares
        about to new MAY_... ones and pass with the mask.
      * kill redundant gfs2_iop_permission()
      * sanitize ecryptfs_permission()
      * fix remaining places where ->permission() instances might barf on new
        MAY_... found in mask.
      
      The obvious next target in that direction is permission(9)
      
      folded fix for nfs_permission() breakage from Miklos Szeredi <mszeredi@suse.cz>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      e6305c43
  10. 19 4月, 2008 1 次提交
  11. 19 3月, 2008 1 次提交
  12. 08 2月, 2008 1 次提交
  13. 07 2月, 2008 1 次提交
  14. 20 10月, 2007 1 次提交
  15. 17 10月, 2007 1 次提交
  16. 08 5月, 2007 1 次提交
  17. 01 5月, 2007 1 次提交
  18. 24 4月, 2007 1 次提交
    • J
      reiserfs: fix xattr root locking/refcount bug · 9b7f3755
      Jeff Mahoney 提交于
      The listxattr() and getxattr() operations are only protected by a read
      lock.  As a result, if either of these operations run in parallel, a race
      condition exists where the xattr_root will end up being cached twice, which
      results in the leaking of a reference and a BUG() on umount.
      
      This patch refactors get_xa_root(), __get_xa_root(), and create_xa_root(),
      into one get_xa_root() function that takes the appropriate locking around
      the entire critical section.
      
      Reported, diagnosed and tested by Andrea Righi <a.righi@cineca.it>
      Signed-off-by: NJeff Mahoney <jeffm@suse.com>
      Cc: Andrea Righi <a.righi@cineca.it>
      Cc: "Vladimir V. Saveliev" <vs@namesys.com>
      Cc: Edward Shishkin <edward@namesys.com>
      Cc: Alex Zarochentsev <zam@namesys.com>
      Cc: <stable@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9b7f3755
  19. 09 12月, 2006 1 次提交
  20. 03 12月, 2006 1 次提交